Home
last modified time | relevance | path

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

/external/skia/src/opts/
DSkBitmapProcState_opts_SSE2.cpp239 unsigned i = SkClampMax(f >> 16, max); in ClampX_ClampY_pack_filter()
241 return (i << 14) | SkClampMax((f + one) >> 16, max); in ClampX_ClampY_pack_filter()
376 *xy++ = SkClampMax(mapper.intY(), maxY); in ClampX_ClampY_nofilter_scale_SSE2()
434 *xy++ = pack_two_shorts(SkClampMax((fx + dx) >> 16, maxX), in ClampX_ClampY_nofilter_scale_SSE2()
435 SkClampMax(fx >> 16, maxX)); in ClampX_ClampY_nofilter_scale_SSE2()
474 *xx++ = SkClampMax(fx >> 16, maxX); in ClampX_ClampY_nofilter_scale_SSE2()
569 *xy++ = (SkClampMax(fy >> 16, maxY) << 16) | in ClampX_ClampY_nofilter_affine_SSE2()
570 SkClampMax(fx >> 16, maxX); in ClampX_ClampY_nofilter_affine_SSE2()
616 *xy++ = (SkClampMax(fy >> 16, maxY) << 16) | in ClampX_ClampY_nofilter_affine_SSE2()
617 SkClampMax(fx >> 16, maxX); in ClampX_ClampY_nofilter_affine_SSE2()
DSkBitmapProcState_matrixProcs_neon.cpp122 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max)
123 #define TILEY_PROCF(fy, max) SkClampMax((fy) >> 16, max)
/external/skia/src/core/
DSkBitmapProcState_matrixProcs.cpp61 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max)
62 #define TILEY_PROCF(fy, max) SkClampMax((fy) >> 16, max)
69 return SkClampMax(fx >> 16, max); in X()
72 return SkClampMax(fy >> 16, max); in Y()
DSkBitmapProcState.cpp374 int iy = SkClampMax(s.fFilterOneY + y, maxY); in Clamp_S32_D32_nofilter_trans_shaderproc()
499 iY0 = SkClampMax(yTemp, stopY-1); in S32_D32_constX_shaderproc()
525 iY2 = SkClampMax(iY2, stopY-1); in S32_D32_constX_shaderproc()
771 dstY = SkClampMax(mapper.intY(), maxY); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
803 dst[i] = src[SkClampMax(SkFractionalIntToInt(fx), maxX)]; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
DSkBitmapProcState_procs.h236 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max)
237 #define TILEY_PROCF(fy, max) SkClampMax((fy) >> 16, max)
DSkShadowShader.cpp765 int shX = SkClampMax(x + i + xOffset, light.getShadowMap()->width() - 1); in shadeSpan()
766 int shY = SkClampMax(y + yOffset, light.getShadowMap()->height() - 1); in shadeSpan()
/external/skia/src/effects/
DSkMatrixConvolutionImageFilter.cpp193 ? SkClampMax(SkScalarFloorToInt(sumA * fGain + fBias), 255) in filterPixels()
195 int r = SkClampMax(SkScalarFloorToInt(sumR * fGain + fBias), a); in filterPixels()
196 int g = SkClampMax(SkScalarFloorToInt(sumG * fGain + fBias), a); in filterPixels()
197 int b = SkClampMax(SkScalarFloorToInt(sumB * fGain + fBias), a); in filterPixels()
DSkEmbossMask.cpp138 hilite = SkClampMax(hilite, 255); in Emboss()
DSkLightingImageFilter.cpp90 SkClampMax(SkScalarRoundToInt(color.fX), 255), in light()
91 SkClampMax(SkScalarRoundToInt(color.fY), 255), in light()
92 SkClampMax(SkScalarRoundToInt(color.fZ), 255)); in light()
114 return SkPackARGB32(SkClampMax(SkScalarRoundToInt(max_component(color)), 255), in light()
115 SkClampMax(SkScalarRoundToInt(color.fX), 255), in light()
116 SkClampMax(SkScalarRoundToInt(color.fY), 255), in light()
117 SkClampMax(SkScalarRoundToInt(color.fZ), 255)); in light()
DSkBlurMask.cpp961 *outPixel = SkClampMax( SkClampPos(integerPixel), 255 ); in BlurGroundTruth()
/external/skia/include/core/
DSkMath.h77 static inline int SkClampMax(int value, int max) { in SkClampMax() function
/external/skia/src/effects/gradients/
DSkGradientShaderPriv.h51 return SkClampMax(x, 0xFFFF); in clamp_tileproc()
DSkTwoPointConicalGradient.cpp145 SkFixed index = SkClampMax(t, 0xFFFF); in twopoint_clamp()
/external/skia/gm/
Dall_bitmap_configs.cpp137 *bm.getAddr8(x, y) = SkClampMax(idx, SK_ARRAY_COUNT(pmColors) - 1); in indexed_bitmap()
/external/skia/tests/
DBlurTest.cpp220 result[i] = SkClampMax(SkClampPos(int(sum + 0.5f)), 255); in brute_force_1d()
DMathTest.cpp541 int clamp = SkClampMax(value, max); in DEF_TEST()