/external/skia/gm/ |
D | matrixconvolution.cpp | 72 sk_sp<SkImageFilter> makeFilter(const SkIPoint &kernelOffset, SkTileMode tileMode, in makeFilter() argument 79 …{3,3}, kernel.data(), /* gain */ 0.3f, /* bias */ SkIntToScalar(100), kernelOffset, tileMode, conv… in makeFilter() 86 …{7,7}, kernel.data(), /* gain */ 0.3f, /* bias */ SkIntToScalar(100), kernelOffset, tileMode, conv… in makeFilter() 93 void draw(SkCanvas* canvas, int x, int y, const SkIPoint& kernelOffset, in draw() argument 97 paint.setImageFilter(this->makeFilter(kernelOffset, tileMode, convolveAlpha, cropRect)); in draw() 117 SkIPoint kernelOffset = SkIPoint::Make(1, 0); in onDraw() local 120 this->draw(canvas, x, 10, kernelOffset, SkTileMode::kClamp, true, &rect); in onDraw() 121 this->draw(canvas, x, 110, kernelOffset, SkTileMode::kDecal, true, &rect); in onDraw() 122 this->draw(canvas, x, 210, kernelOffset, SkTileMode::kRepeat, true, &rect); in onDraw() 123 kernelOffset.fY++; in onDraw() [all …]
|
D | imagefiltersgraph.cpp | 118 SkIPoint kernelOffset = SkIPoint::Make(1, 1); in onDraw() local 121 kernelSize, kernel, gain, bias, kernelOffset, SkTileMode::kClamp, convolveAlpha, in onDraw()
|
D | imagefilters.cpp | 211 SkIPoint kernelOffset = SkIPoint::Make(1, 1); variable 217 kernelSize, kernel, 1.f, 0.f, kernelOffset, SkTileMode::kClamp, false, nullptr);
|
D | imagemakewithfilter.cpp | 109 SkIPoint kernelOffset = SkIPoint::Make(1, 1); in convolution_factory() local 114 return SkImageFilters::MatrixConvolution(kernelSize, kernel, 1.f, 0.f, kernelOffset, in convolution_factory()
|
/external/skia/src/effects/imagefilters/ |
D | SkMatrixConvolutionImageFilter.cpp | 55 SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, in SkMatrixConvolutionImageFilter() argument 62 , fKernelOffset(kernelOffset) in SkMatrixConvolutionImageFilter() 69 SkASSERT(kernelOffset.fX >= 0 && kernelOffset.fX < kernelSize.fWidth); in SkMatrixConvolutionImageFilter() 70 SkASSERT(kernelOffset.fY >= 0 && kernelOffset.fY < kernelSize.fHeight); in SkMatrixConvolutionImageFilter() 172 const SkIPoint& kernelOffset, in MatrixConvolution() argument 190 if ((kernelOffset.fX < 0) || (kernelOffset.fX >= kernelSize.fWidth) || in MatrixConvolution() 191 (kernelOffset.fY < 0) || (kernelOffset.fY >= kernelSize.fHeight)) { in MatrixConvolution() 195 kernelSize, kernel, gain, bias, kernelOffset, tileMode, convolveAlpha, in MatrixConvolution() 227 SkIPoint kernelOffset; in CreateProc() local 228 kernelOffset.fX = buffer.readInt(); in CreateProc() [all …]
|
/external/skia/bench/ |
D | MatrixConvolutionBench.cpp | 32 SkIPoint kernelOffset = SkIPoint::Make(4, 4); in MatrixConvolutionBench() local 34 kernelOffset, tileMode, convolveAlpha, in MatrixConvolutionBench() 44 SkIPoint kernelOffset = SkIPoint::Make(1, 1); in MatrixConvolutionBench() local 46 kernelOffset, tileMode, convolveAlpha, in MatrixConvolutionBench()
|
/external/skia/src/gpu/ganesh/effects/ |
D | GrMatrixConvolutionEffect.cpp | 221 const char* kernelOffset = uniformHandler->getUniformCStr(fKernelOffsetUni); in emitCode() local 227 fragBuilder->codeAppendf("float2 coord = %s - %s;", args.fSampleCoord, kernelOffset); in emitCode() 277 const SkIPoint& kernelOffset, in GrMatrixConvolutionEffect() argument 288 fKernelOffset = {static_cast<float>(kernelOffset.x()), in GrMatrixConvolutionEffect() 289 static_cast<float>(kernelOffset.y())}; in GrMatrixConvolutionEffect() 334 const SkIPoint& kernelOffset, in Make() argument 347 gain, bias, kernelOffset, convolveAlpha)); in Make() 369 SkIPoint kernelOffset = SkIPoint::Make(kernalOffsetX, kernalOffsetY); in GR_DEFINE_FRAGMENT_PROCESSOR_TEST() local 387 kernelOffset, in GR_DEFINE_FRAGMENT_PROCESSOR_TEST()
|
D | GrMatrixConvolutionEffect.h | 34 const SkIPoint& kernelOffset, 104 const SkIPoint& kernelOffset,
|
/external/skia/tests/ |
D | ImageFilterTest.cpp | 1161 SkIPoint kernelOffset = SkIPoint::Make(0, 0); in DEF_TEST() local 1164 kernelSize, kernel, gain, bias, kernelOffset, SkTileMode::kRepeat, false, nullptr)); in DEF_TEST() 1186 SkIPoint kernelOffset = SkIPoint::Make(2, 0); in DEF_TEST() local 1189 kernelSize, kernel, gain, bias, kernelOffset, SkTileMode::kClamp, true, nullptr)); in DEF_TEST() 1221 SkIPoint kernelOffset = SkIPoint::Make(0, 0); in test_big_kernel() local 1224 kernelSize, identityKernel, gain, bias, kernelOffset, in test_big_kernel() 1400 SkIPoint kernelOffset = SkIPoint::Make(1, 1); in DEF_TEST() local 1404 SkISize::Make(1<<30, 1<<30), kernel, gain, bias, kernelOffset, in DEF_TEST() 1411 SkISize::Make(1, 1), nullptr, gain, bias, kernelOffset, in DEF_TEST() 1418 SkISize::Make(0, 1), kernel, gain, bias, kernelOffset, in DEF_TEST() [all …]
|
/external/skia/include/effects/ |
D | SkImageFilters.h | 264 SkScalar bias, const SkIPoint& kernelOffset,
|
/external/skia/src/core/ |
D | SkGpuBlurUtils.cpp | 134 SkIPoint kernelOffset = SkIPoint::Make(radiusX, radiusY); in convolve_gaussian_2d() local 150 kernelOffset, in convolve_gaussian_2d()
|