Home
last modified time | relevance | path

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

/external/skia/src/opts/
DSkBitmapProcState_opts_SSE2.cpp238 unsigned i = SkClampMax(f >> 16, max); in ClampX_ClampY_pack_filter()
240 return (i << 14) | SkClampMax((f + one) >> 16, max); in ClampX_ClampY_pack_filter()
383 *xy++ = SkClampMax(fx >> 16, maxY); in ClampX_ClampY_nofilter_scale_SSE2()
441 *xy++ = pack_two_shorts(SkClampMax((fx + dx) >> 16, maxX), in ClampX_ClampY_nofilter_scale_SSE2()
442 SkClampMax(fx >> 16, maxX)); in ClampX_ClampY_nofilter_scale_SSE2()
481 *xx++ = SkClampMax(fx >> 16, maxX); in ClampX_ClampY_nofilter_scale_SSE2()
582 *xy++ = (SkClampMax(fy >> 16, maxY) << 16) | in ClampX_ClampY_nofilter_affine_SSE2()
583 SkClampMax(fx >> 16, maxX); in ClampX_ClampY_nofilter_affine_SSE2()
629 *xy++ = (SkClampMax(fy >> 16, maxY) << 16) | in ClampX_ClampY_nofilter_affine_SSE2()
630 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.cpp52 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max)
53 #define TILEY_PROCF(fy, max) SkClampMax((fy) >> 16, max)
61 return SkClampMax(fx >> 16, max); in X()
64 return SkClampMax(fy >> 16, max); in Y()
DSkBitmapProcState.cpp546 int iy = SkClampMax(s.fFilterOneY + y, maxY); in Clamp_S32_D32_nofilter_trans_shaderproc()
552 int iy2 = SkClampMax(SkScalarFloorToInt(pt.fY), maxY); in Clamp_S32_D32_nofilter_trans_shaderproc()
696 iY0 = SkClampMax(yTemp, stopY-1); in S32_D32_constX_shaderproc()
723 iY2 = SkClampMax(SkScalarFloorToInt(pt.fY), stopY-1); in S32_D32_constX_shaderproc()
968 dstY = SkClampMax(SkFractionalIntToInt(fx), maxY); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
1000 dst[i] = src[SkClampMax(SkFractionalIntToInt(fx), maxX)]; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
DSkBitmapProcState_procs.h320 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max)
321 #define TILEY_PROCF(fy, max) SkClampMax((fy) >> 16, max)
346 #define TILEX_PROCF(fx, max) SkClampMax((fx) >> 16, max)
347 #define TILEY_PROCF(fy, max) SkClampMax((fy) >> 16, max)
/external/skia/src/effects/
DSkMatrixConvolutionImageFilter.cpp191 ? SkClampMax(SkScalarFloorToInt(SkScalarMul(sumA, fGain) + fBias), 255) in filterPixels()
193 int r = SkClampMax(SkScalarFloorToInt(SkScalarMul(sumR, fGain) + fBias), a); in filterPixels()
194 int g = SkClampMax(SkScalarFloorToInt(SkScalarMul(sumG, fGain) + fBias), a); in filterPixels()
195 int b = SkClampMax(SkScalarFloorToInt(SkScalarMul(sumB, fGain) + fBias), a); in filterPixels()
DSkEmbossMask.cpp138 hilite = SkClampMax(hilite, 255); in Emboss()
DSkLightingImageFilter.cpp71 SkClampMax(SkScalarRoundToInt(color.fX), 255), in light()
72 SkClampMax(SkScalarRoundToInt(color.fY), 255), in light()
73 SkClampMax(SkScalarRoundToInt(color.fZ), 255)); in light()
92 return SkPackARGB32(SkClampMax(SkScalarRoundToInt(color.maxComponent()), 255), in light()
93 SkClampMax(SkScalarRoundToInt(color.fX), 255), in light()
94 SkClampMax(SkScalarRoundToInt(color.fY), 255), in light()
95 SkClampMax(SkScalarRoundToInt(color.fZ), 255)); in light()
DSkBlurMask.cpp964 *outPixel = SkClampMax( SkClampPos(integerPixel), 255 ); in BlurGroundTruth()
/external/skia/include/core/
DSkMath.h113 static inline int SkClampMax(int value, int max) { in SkClampMax() function
/external/skia/gm/
Dall_bitmap_configs.cpp138 *bm.getAddr8(x, y) = SkClampMax(idx, SK_ARRAY_COUNT(pmColors) - 1); in indexed_bitmap()
/external/skia/src/effects/gradients/
DSkGradientShaderPriv.h44 return SkClampMax(x, 0xFFFF); in clamp_tileproc()
DSkTwoPointConicalGradient.cpp146 SkFixed index = SkClampMax(t, 0xFFFF); in twopoint_clamp()
/external/skia/src/animator/
DSkAnimatorScript2.cpp292 result |= SkClampMax(params->begin()[index].fS32, 255) << shift; in invoke()
DSkAnimatorScript.cpp213 result |= SkClampMax(valuePtr->fOperand.fS32, 255) << shift; in EvalRGB()
/external/skia/tests/
DBlurTest.cpp222 result[i] = SkClampMax(SkClampPos(int(sum + 0.5f)), 255); in brute_force_1d()
DMathTest.cpp494 int clamp = SkClampMax(value, max); in DEF_TEST()
/external/skia/src/utils/
DSkTextureCompressor_ASTC.cpp393 return SkClampMax(x, 255); in clamp_byte()