Home
last modified time | relevance | path

Searched refs:kernelOffset (Results 1 – 11 of 11) sorted by relevance

/external/skia/gm/
Dmatrixconvolution.cpp72 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 …]
Dimagefiltersgraph.cpp118 SkIPoint kernelOffset = SkIPoint::Make(1, 1); in onDraw() local
121 kernelSize, kernel, gain, bias, kernelOffset, SkTileMode::kClamp, convolveAlpha, in onDraw()
Dimagefilters.cpp211 SkIPoint kernelOffset = SkIPoint::Make(1, 1); variable
217 kernelSize, kernel, 1.f, 0.f, kernelOffset, SkTileMode::kClamp, false, nullptr);
Dimagemakewithfilter.cpp109 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/
DSkMatrixConvolutionImageFilter.cpp55 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/
DMatrixConvolutionBench.cpp32 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/
DGrMatrixConvolutionEffect.cpp221 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()
DGrMatrixConvolutionEffect.h34 const SkIPoint& kernelOffset,
104 const SkIPoint& kernelOffset,
/external/skia/tests/
DImageFilterTest.cpp1161 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/
DSkImageFilters.h264 SkScalar bias, const SkIPoint& kernelOffset,
/external/skia/src/core/
DSkGpuBlurUtils.cpp134 SkIPoint kernelOffset = SkIPoint::Make(radiusX, radiusY); in convolve_gaussian_2d() local
150 kernelOffset, in convolve_gaussian_2d()