Home
last modified time | relevance | path

Searched refs:kernelSize (Results 1 – 16 of 16) sorted by relevance

/external/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.cpp44 fKernelSize = m.kernelSize(); in GrGLMatrixConvolutionEffect()
117 SkASSERT(m.kernelSize().width() <= 0x7FFF && m.kernelSize().height() <= 0xFFFF); in GenKey()
118 uint32_t key = m.kernelSize().width() << 16 | m.kernelSize().height(); in GenKey()
129 SkASSERT(conv.kernelSize() == fKernelSize); in setData()
144 const SkISize& kernelSize, in GrMatrixConvolutionEffect() argument
152 fKernelSize(kernelSize), in GrMatrixConvolutionEffect()
158 for (int i = 0; i < kernelSize.width() * kernelSize.height(); i++) { in GrMatrixConvolutionEffect()
179 return fKernelSize == s.kernelSize() && in onIsEqual()
193 const SkISize& kernelSize, in CreateGaussian() argument
202 int width = kernelSize.width(); in CreateGaussian()
[all …]
DGrMatrixConvolutionEffect.h23 const SkISize& kernelSize, in Create() argument
32 kernelSize, in Create()
43 const SkISize& kernelSize,
55 const SkISize& kernelSize() const { return fKernelSize; } in kernelSize() function
72 const SkISize& kernelSize,
/external/skia/src/effects/
DSkMatrixConvolutionImageFilter.cpp25 const SkISize& kernelSize, in SkMatrixConvolutionImageFilter() argument
35 fKernelSize(kernelSize), in SkMatrixConvolutionImageFilter()
44 SkASSERT(kernelSize.fWidth >= 1 && kernelSize.fHeight >= 1); in SkMatrixConvolutionImageFilter()
45 SkASSERT(kernelOffset.fX >= 0 && kernelOffset.fX < kernelSize.fWidth); in SkMatrixConvolutionImageFilter()
46 SkASSERT(kernelOffset.fY >= 0 && kernelOffset.fY < kernelSize.fHeight); in SkMatrixConvolutionImageFilter()
50 const SkISize& kernelSize, in Create() argument
59 if (kernelSize.width() < 1 || kernelSize.height() < 1) { in Create()
62 if (gMaxKernelSize / kernelSize.fWidth < kernelSize.fHeight) { in Create()
68 if ((kernelOffset.fX < 0) || (kernelOffset.fX >= kernelSize.fWidth) || in Create()
69 (kernelOffset.fY < 0) || (kernelOffset.fY >= kernelSize.fHeight)) { in Create()
[all …]
DSkBlurImageFilter.cpp78 static void boxBlur(const SkPMColor* src, int srcStride, SkPMColor* dst, int kernelSize, in boxBlur() argument
86 uint32_t scale = (1 << 24) / kernelSize; in boxBlur()
131 static void getBox3Params(SkScalar s, int *kernelSize, int* kernelSize3, int *lowOffset, in getBox3Params() argument
136 *kernelSize = d; in getBox3Params()
DSkBlurMask.cpp84 int kernelSize = diameter + 1; in boxBlur() local
86 uint32_t scale = (1 << 24) / kernelSize; in boxBlur()
286 int kernelSize = diameter + 1; in boxBlurInterp() local
291 uint32_t outer_scale = (outer_weight << 16) / kernelSize; in boxBlurInterp()
292 uint32_t inner_scale = (inner_weight << 16) / (kernelSize - 2); in boxBlurInterp()
/external/skia/src/opts/
DSkBlurImage_opts_neon.cpp58 void SkDoubleRowBoxBlur_NEON(const SkPMColor** src, int srcStride, SkPMColor** dst, int kernelSize, in SkDoubleRowBoxBlur_NEON() argument
66 const uint16x8_t scale = vdupq_n_u16((1 << 15) / kernelSize); in SkDoubleRowBoxBlur_NEON()
115 void SkBoxBlur_NEON(const SkPMColor* src, int srcStride, SkPMColor* dst, int kernelSize, in SkBoxBlur_NEON() argument
123 const uint32x4_t scale = vdupq_n_u32((1 << 24) / kernelSize); in SkBoxBlur_NEON()
126 if (1 < kernelSize && kernelSize < 128) in SkBoxBlur_NEON()
128 SkDoubleRowBoxBlur_NEON<srcDirection, dstDirection>(&src, srcStride, &dst, kernelSize, in SkBoxBlur_NEON()
DSkBlurImage_opts_SSE4.cpp38 void SkBoxBlur_SSE4(const SkPMColor* src, int srcStride, SkPMColor* dst, int kernelSize, in SkBoxBlur_SSE4() argument
46 const __m128i scale = _mm_set1_epi32((1 << 24) / kernelSize); in SkBoxBlur_SSE4()
DSkBlurImage_opts_SSE2.cpp36 void SkBoxBlur_SSE2(const SkPMColor* src, int srcStride, SkPMColor* dst, int kernelSize, in SkBoxBlur_SSE2() argument
44 const __m128i scale = _mm_set1_epi32((1 << 24) / kernelSize); in SkBoxBlur_SSE2()
DSkBlurImage_opts.h13 typedef void (*SkBoxBlurProc)(const SkPMColor* src, int srcStride, SkPMColor* dst, int kernelSize,
/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/SSAO/
DssaoBlur.frag36 const int kernelSize=7;
46 for(int i = -(kernelSize-1); i <= (kernelSize-1); i+=2) {
47 for(int j = -(kernelSize-1); j <= (kernelSize-1); j+=2) {
DssaoBlur15.frag37 const int kernelSize=7;
47 for(int i = -(kernelSize-1); i <= (kernelSize-1); i+=2) {
48 for(int j = -(kernelSize-1); j <= (kernelSize-1); j+=2) {
/external/skia/bench/
DMatrixConvolutionBench.cpp18 SkISize kernelSize = SkISize::Make(3, 3); in MatrixConvolutionBench() local
26 …fFilter = SkMatrixConvolutionImageFilter::Create(kernelSize, kernel, gain, bias, kernelOffset, til… in MatrixConvolutionBench()
/external/skia/include/effects/
DSkMatrixConvolutionImageFilter.h55 static SkMatrixConvolutionImageFilter* Create(const SkISize& kernelSize,
69 SkMatrixConvolutionImageFilter(const SkISize& kernelSize,
/external/skia/gm/
Dmatrixconvolution.cpp58 SkISize kernelSize = SkISize::Make(3, 3); in draw() local
62 SkMatrixConvolutionImageFilter::Create(kernelSize, in draw()
/external/skia/tests/
DImageFilterTest.cpp289 SkISize kernelSize = SkISize::Make(3, 3); in test_crop_rects() local
303 …SkMatrixConvolutionImageFilter::Create(kernelSize, kernel, gain, bias, SkIPoint::Make(1, 1), SkMat… in test_crop_rects()
421 SkISize kernelSize = SkISize::Make(3, 3); in DEF_TEST() local
464 kernelSize, kernel, gain, bias, SkIPoint::Make(1, 1), in DEF_TEST()
710 SkISize kernelSize = SkISize::Make(1, 3); in DEF_TEST() local
716 kernelSize, kernel, gain, bias, kernelOffset, in DEF_TEST()
737 SkISize kernelSize = SkISize::Make(3, 1); in DEF_TEST() local
743 kernelSize, kernel, gain, bias, kernelOffset, in DEF_TEST()
/external/mesa3d/src/gallium/state_trackers/vega/
Dapi_filters.c274 static VGfloat texture_offset(VGfloat width, VGint kernelSize, VGint current, VGint shift) in texture_offset() argument