Home
last modified time | relevance | path

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

/external/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.cpp42 int kWidth = mce.kernelSize().width(); in emitCode()
43 int kHeight = mce.kernelSize().height(); in emitCode()
126 SkASSERT(m.kernelSize().width() <= 0x7FFF && m.kernelSize().height() <= 0xFFFF); in GenKey()
127 uint32_t key = m.kernelSize().width() << 16 | m.kernelSize().height(); in GenKey()
144 int kernelCount = conv.kernelSize().width() * conv.kernelSize().height(); in onSetData()
156 const SkISize& kernelSize, in GrMatrixConvolutionEffect() argument
166 , fKernelSize(kernelSize) in GrMatrixConvolutionEffect()
172 for (int i = 0; i < kernelSize.width() * kernelSize.height(); i++) { in GrMatrixConvolutionEffect()
190 return fKernelSize == s.kernelSize() && in onIsEqual()
234 const SkISize& kernelSize, in MakeGaussian() argument
[all …]
DGrMatrixConvolutionEffect.h23 const SkISize& kernelSize, in Make() argument
31 new GrMatrixConvolutionEffect(resourceProvider, std::move(proxy), bounds, kernelSize, in Make()
38 const SkISize& kernelSize,
48 const SkISize& kernelSize() const { return fKernelSize; } in kernelSize() function
62 const SkISize& kernelSize,
/external/skia/src/effects/
DSkMatrixConvolutionImageFilter.cpp27 SkMatrixConvolutionImageFilter::SkMatrixConvolutionImageFilter(const SkISize& kernelSize, in SkMatrixConvolutionImageFilter() argument
37 , fKernelSize(kernelSize) in SkMatrixConvolutionImageFilter()
46 SkASSERT(kernelSize.fWidth >= 1 && kernelSize.fHeight >= 1); in SkMatrixConvolutionImageFilter()
47 SkASSERT(kernelOffset.fX >= 0 && kernelOffset.fX < kernelSize.fWidth); in SkMatrixConvolutionImageFilter()
48 SkASSERT(kernelOffset.fY >= 0 && kernelOffset.fY < kernelSize.fHeight); in SkMatrixConvolutionImageFilter()
51 sk_sp<SkImageFilter> SkMatrixConvolutionImageFilter::Make(const SkISize& kernelSize, in Make() argument
60 if (kernelSize.width() < 1 || kernelSize.height() < 1) { in Make()
63 if (gMaxKernelSize / kernelSize.fWidth < kernelSize.fHeight) { in Make()
69 if ((kernelOffset.fX < 0) || (kernelOffset.fX >= kernelSize.fWidth) || in Make()
70 (kernelOffset.fY < 0) || (kernelOffset.fY >= kernelSize.fHeight)) { in Make()
[all …]
DSkBlurMask.cpp83 int kernelSize = diameter + 1; in boxBlur() local
85 uint32_t scale = (1 << 24) / kernelSize; in boxBlur()
285 int kernelSize = diameter + 1; in boxBlurInterp() local
290 uint32_t outer_scale = (outer_weight << 16) / kernelSize; in boxBlurInterp()
291 uint32_t inner_scale = (inner_weight << 16) / (kernelSize - 2); in boxBlurInterp()
/external/skia/src/opts/
DSkBlurImageFilter_opts.h61 #define INIT_SCALE const __m128i scale = _mm_set1_epi32((1 << 24) / kernelSize);
92 SkPMColor** dst, int kernelSize, in box_blur_double() argument
119 const uint16x8_t scale = vdupq_n_u16((1 << 15) / kernelSize); in box_blur_double()
178 #define INIT_SCALE const uint32x4_t scale = vdupq_n_u32((1 << 24) / kernelSize);
191 if (1 < kernelSize && kernelSize < 128) { \
193 kernelSize, leftOffset, rightOffset, \
199 #define INIT_SCALE uint32_t scale = (1 << 24) / kernelSize;
228 int kernelSize, int leftOffset, int rightOffset, int width, int height) { in box_blur() argument
/external/skia/bench/
DMatrixConvolutionBench.cpp29 SkISize kernelSize = SkISize::Make(3, 3); in MatrixConvolutionBench() local
37 fFilter = SkMatrixConvolutionImageFilter::Make(kernelSize, kernel, gain, bias, in MatrixConvolutionBench()
/external/skia/include/effects/
DSkMatrixConvolutionImageFilter.h57 static sk_sp<SkImageFilter> Make(const SkISize& kernelSize,
71 SkMatrixConvolutionImageFilter(const SkISize& kernelSize,
/external/skia/gm/
Dmatrixconvolution.cpp68 SkISize kernelSize = SkISize::Make(3, 3); in draw() local
84 paint.setImageFilter(SkMatrixConvolutionImageFilter::Make(kernelSize, in draw()
Dimagefiltersgraph.cpp124 SkISize kernelSize = SkISize::Make(3, 3); in onDraw() local
129 sk_sp<SkImageFilter> convolve(SkMatrixConvolutionImageFilter::Make(kernelSize, in onDraw()
/external/skia/src/core/
DSkBlurImageFilter.cpp98 static void get_box3_params(SkScalar s, int *kernelSize, int* kernelSize3, int *lowOffset, in get_box3_params() argument
102 *kernelSize = d; in get_box3_params()
/external/skia/tests/
DImageFilterTest.cpp183 const SkISize kernelSize = SkISize::Make(3, 3); in FilterList() local
188 kernelSize, kernel, gain, bias, SkIPoint::Make(1, 1), in FilterList()
1060 SkISize kernelSize = SkISize::Make(1, 3); in DEF_TEST() local
1065 kernelSize, kernel, in DEF_TEST()
1088 SkISize kernelSize = SkISize::Make(3, 1); in DEF_TEST() local
1093 kernelSize, kernel, gain, bias, kernelOffset, in DEF_TEST()
1125 SkISize kernelSize = SkISize::Make(7, 7); in test_big_kernel() local
1130 kernelSize, identityKernel, gain, bias, kernelOffset, in test_big_kernel()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorConvolution.h564 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE int operator() (const int kernelSize) const {
565 return kernelSize;
576 const int maxX, const int kernelSize, float* buffer) {
581 const int num_x_input = last_x - first_x + GetKernelSize<StaticKernelSize>()(kernelSize);
607 for (int k = 0; k < GetKernelSize<StaticKernelSize>()(kernelSize); ++k) {
/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
/external/ImageMagick/MagickCore/
Daccelerate.c1625 kernelSize; in ComputeConvolveImage() local
1716 kernelSize = (unsigned int) (kernel->width * kernel->height); in ComputeConvolveImage()
1717 …lCreateBuffer(device->context, CL_MEM_READ_ONLY|CL_MEM_ALLOC_HOST_PTR, kernelSize * sizeof(float),… in ComputeConvolveImage()
1726 …->clEnqueueMapBuffer(queue, convolutionKernel, CL_TRUE, CL_MAP_WRITE, 0, kernelSize * sizeof(float) in ComputeConvolveImage()
1733 for (i = 0; i < kernelSize; i++) in ComputeConvolveImage()