/third_party/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()
|
/third_party/flutter/skia/gm/ |
D | matrixconvolution.cpp | 64 void draw(SkCanvas* canvas, int x, int y, const SkIPoint& kernelOffset, in draw() argument 76 kernelOffset, tileMode, in draw() 97 SkIPoint kernelOffset = SkIPoint::Make(1, 0); in onDraw() local 100 this->draw(canvas, x, 10, kernelOffset, SkTileMode::kClamp, true, &rect); in onDraw() 101 this->draw(canvas, x, 110, kernelOffset, SkTileMode::kDecal, true, &rect); in onDraw() 102 this->draw(canvas, x, 210, kernelOffset, SkTileMode::kRepeat, true, &rect); in onDraw() 103 kernelOffset.fY++; in onDraw() 105 kernelOffset.fY = 1; in onDraw() 107 this->draw(canvas, 310, 10, kernelOffset, SkTileMode::kClamp, true, &smallRect); in onDraw() 108 this->draw(canvas, 310, 110, kernelOffset, SkTileMode::kDecal, true, &smallRect); in onDraw() [all …]
|
D | imagefiltersgraph.cpp | 119 SkIPoint kernelOffset = SkIPoint::Make(1, 1); in onDraw() local 122 kernelSize, kernel, gain, bias, kernelOffset, SkTileMode::kClamp, convolveAlpha, in onDraw()
|
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()
|
/third_party/flutter/skia/src/gpu/effects/ |
D | GrMatrixConvolutionEffect.h | 25 const SkIPoint& kernelOffset, in Make() argument 30 gain, bias, kernelOffset, tileMode, convolveAlpha)); in Make() 38 const SkIPoint& kernelOffset, 46 const float* kernelOffset() const { return fKernelOffset; } in kernelOffset() function 66 const SkIPoint& kernelOffset,
|
D | GrMatrixConvolutionEffect.cpp | 59 const char* kernelOffset = uniformHandler->getUniformCStr(fKernelOffsetUni); in emitCode() local 68 … fragBuilder->codeAppendf("float2 coord = %s - %s * %s;", coords2D.c_str(), kernelOffset, imgInc); in emitCode() 136 pdman.set2fv(fKernelOffsetUni, 1, conv.kernelOffset()); in onSetData() 152 const SkIPoint& kernelOffset, in GrMatrixConvolutionEffect() argument 171 fKernelOffset[0] = static_cast<float>(kernelOffset.x()); in GrMatrixConvolutionEffect() 172 fKernelOffset[1] = static_cast<float>(kernelOffset.y()); in GrMatrixConvolutionEffect() 210 !memcmp(fKernelOffset, s.kernelOffset(), sizeof(fKernelOffset)) && in onIsEqual() 302 const SkIPoint& kernelOffset, in MakeGaussian() argument 313 gain, bias, kernelOffset, tileMode, convolveAlpha)); in MakeGaussian() 333 SkIPoint kernelOffset = SkIPoint::Make(d->fRandom->nextRangeU(0, kernelSize.width()), in TestCreate() local [all …]
|
/third_party/flutter/skia/src/effects/imagefilters/ |
D | SkMatrixConvolutionImageFilter.cpp | 31 SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, in SkMatrixConvolutionImageFilterImpl() argument 38 , fKernelOffset(kernelOffset) in SkMatrixConvolutionImageFilterImpl() 45 SkASSERT(kernelOffset.fX >= 0 && kernelOffset.fX < kernelSize.fWidth); in SkMatrixConvolutionImageFilterImpl() 46 SkASSERT(kernelOffset.fY >= 0 && kernelOffset.fY < kernelSize.fHeight); in SkMatrixConvolutionImageFilterImpl() 161 const SkIPoint& kernelOffset, in Make() argument 166 return Make(kernelSize, kernel, gain, bias, kernelOffset, to_sktilemode(tileMode), in Make() 174 const SkIPoint& kernelOffset, in Make() argument 192 if ((kernelOffset.fX < 0) || (kernelOffset.fX >= kernelSize.fWidth) || in Make() 193 (kernelOffset.fY < 0) || (kernelOffset.fY >= kernelSize.fHeight)) { in Make() 197 kernelSize, kernel, gain, bias, kernelOffset, tileMode, convolveAlpha, in Make() [all …]
|
D | SkImageFilters.cpp | 149 const SkIPoint& kernelOffset, SkTileMode tileMode, bool convolveAlpha, in MatrixConvolution() argument 152 return SkMatrixConvolutionImageFilter::Make(kernelSize, kernel, gain, bias, kernelOffset, in MatrixConvolution()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkMatrixConvolutionImageFilter.cpp | 32 SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, in SkMatrixConvolutionImageFilter() argument 39 , fKernelOffset(kernelOffset) in SkMatrixConvolutionImageFilter() 46 SkASSERT(kernelOffset.fX >= 0 && kernelOffset.fX < kernelSize.fWidth); in SkMatrixConvolutionImageFilter() 47 SkASSERT(kernelOffset.fY >= 0 && kernelOffset.fY < kernelSize.fHeight); in SkMatrixConvolutionImageFilter() 149 const SkIPoint& kernelOffset, in MatrixConvolution() argument 167 if ((kernelOffset.fX < 0) || (kernelOffset.fX >= kernelSize.fWidth) || in MatrixConvolution() 168 (kernelOffset.fY < 0) || (kernelOffset.fY >= kernelSize.fHeight)) { in MatrixConvolution() 172 kernelSize, kernel, gain, bias, kernelOffset, tileMode, convolveAlpha, in MatrixConvolution() 204 SkIPoint kernelOffset; in CreateProc() local 205 kernelOffset.fX = buffer.readInt(); in CreateProc() [all …]
|
/third_party/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()
|
/third_party/skia/src/gpu/effects/ |
D | GrMatrixConvolutionEffect.cpp | 219 const char* kernelOffset = uniformHandler->getUniformCStr(fKernelOffsetUni); in emitCode() local 225 fragBuilder->codeAppendf("float2 coord = %s - %s;", args.fSampleCoord, kernelOffset); in emitCode() 275 const SkIPoint& kernelOffset, in GrMatrixConvolutionEffect() argument 286 fKernelOffset = {static_cast<float>(kernelOffset.x()), in GrMatrixConvolutionEffect() 287 static_cast<float>(kernelOffset.y())}; in GrMatrixConvolutionEffect() 332 const SkIPoint& kernelOffset, in Make() argument 345 gain, bias, kernelOffset, convolveAlpha)); in Make() 367 SkIPoint kernelOffset = SkIPoint::Make(kernalOffsetX, kernalOffsetY); in TestCreate() local 385 kernelOffset, in TestCreate()
|
D | GrMatrixConvolutionEffect.h | 29 const SkIPoint& kernelOffset, 99 const SkIPoint& kernelOffset,
|
/third_party/flutter/skia/include/effects/ |
D | SkMatrixConvolutionImageFilter.h | 45 const SkIPoint& kernelOffset, 76 const SkIPoint& kernelOffset,
|
D | SkImageFilters.h | 200 SkScalar bias, const SkIPoint& kernelOffset,
|
/third_party/flutter/skia/bench/ |
D | MatrixConvolutionBench.cpp | 30 SkIPoint kernelOffset = SkIPoint::Make(1, 1); in MatrixConvolutionBench() local 32 kernelOffset, tileMode, convolveAlpha, nullptr); in MatrixConvolutionBench()
|
/third_party/flutter/skia/tests/ |
D | ImageFilterTest.cpp | 995 SkIPoint kernelOffset = SkIPoint::Make(0, 0); in DEF_TEST() local 998 kernelSize, kernel, gain, bias, kernelOffset, SkTileMode::kRepeat, false, nullptr)); in DEF_TEST() 1020 SkIPoint kernelOffset = SkIPoint::Make(2, 0); in DEF_TEST() local 1023 kernelSize, kernel, gain, bias, kernelOffset, SkTileMode::kClamp, true, nullptr)); in DEF_TEST() 1055 SkIPoint kernelOffset = SkIPoint::Make(0, 0); in test_big_kernel() local 1058 kernelSize, identityKernel, gain, bias, kernelOffset, in test_big_kernel() 1225 SkIPoint kernelOffset = SkIPoint::Make(1, 1); in DEF_TEST() local 1229 SkISize::Make(1<<30, 1<<30), kernel, gain, bias, kernelOffset, in DEF_TEST() 1236 SkISize::Make(1, 1), nullptr, gain, bias, kernelOffset, in DEF_TEST() 1243 SkISize::Make(0, 1), kernel, gain, bias, kernelOffset, in DEF_TEST() [all …]
|
/third_party/skia/tests/ |
D | ImageFilterTest.cpp | 1106 SkIPoint kernelOffset = SkIPoint::Make(0, 0); in DEF_TEST() local 1109 kernelSize, kernel, gain, bias, kernelOffset, SkTileMode::kRepeat, false, nullptr)); in DEF_TEST() 1131 SkIPoint kernelOffset = SkIPoint::Make(2, 0); in DEF_TEST() local 1134 kernelSize, kernel, gain, bias, kernelOffset, SkTileMode::kClamp, true, nullptr)); in DEF_TEST() 1166 SkIPoint kernelOffset = SkIPoint::Make(0, 0); in test_big_kernel() local 1169 kernelSize, identityKernel, gain, bias, kernelOffset, in test_big_kernel() 1337 SkIPoint kernelOffset = SkIPoint::Make(1, 1); in DEF_TEST() local 1341 SkISize::Make(1<<30, 1<<30), kernel, gain, bias, kernelOffset, in DEF_TEST() 1348 SkISize::Make(1, 1), nullptr, gain, bias, kernelOffset, in DEF_TEST() 1355 SkISize::Make(0, 1), kernel, gain, bias, kernelOffset, in DEF_TEST() [all …]
|
/third_party/flutter/skia/src/core/ |
D | SkGpuBlurUtils.cpp | 144 SkIPoint kernelOffset = SkIPoint::Make(radiusX, radiusY); in convolve_gaussian_2d() local 147 kernelOffset, mode, true, sigmaX, sigmaY); in convolve_gaussian_2d()
|
/third_party/skia/include/effects/ |
D | SkImageFilters.h | 261 SkScalar bias, const SkIPoint& kernelOffset,
|
/third_party/skia/src/core/ |
D | SkGpuBlurUtils.cpp | 125 SkIPoint kernelOffset = SkIPoint::Make(radiusX, radiusY); in convolve_gaussian_2d() local 135 size, kernel, 1.0f, 0.0f, kernelOffset, wm, true, in convolve_gaussian_2d()
|