Lines Matching refs:clamp255
30 static __inline int32 clamp255(int32 v) { in clamp255() function
36 return (uint32)(clamp255(v)); in Clamp()
48 static __inline int32 clamp255(int32 v) {
54 return (uint32)(clamp255(v));
234 uint8 b0 = clamp255(src_argb[0] + dither0) >> 3; in ARGBToRGB565DitherRow_C()
235 uint8 g0 = clamp255(src_argb[1] + dither0) >> 2; in ARGBToRGB565DitherRow_C()
236 uint8 r0 = clamp255(src_argb[2] + dither0) >> 3; in ARGBToRGB565DitherRow_C()
237 uint8 b1 = clamp255(src_argb[4] + dither1) >> 3; in ARGBToRGB565DitherRow_C()
238 uint8 g1 = clamp255(src_argb[5] + dither1) >> 2; in ARGBToRGB565DitherRow_C()
239 uint8 r1 = clamp255(src_argb[6] + dither1) >> 3; in ARGBToRGB565DitherRow_C()
247 uint8 b0 = clamp255(src_argb[0] + dither0) >> 3; in ARGBToRGB565DitherRow_C()
248 uint8 g0 = clamp255(src_argb[1] + dither0) >> 2; in ARGBToRGB565DitherRow_C()
249 uint8 r0 = clamp255(src_argb[2] + dither0) >> 3; in ARGBToRGB565DitherRow_C()
678 dst_argb[1] = clamp255(sg); in ARGBSepiaRow_C()
679 dst_argb[2] = clamp255(sr); in ARGBSepiaRow_C()
822 #define SHADE(f, v) clamp255(v + f)
894 dst_sobelx[i] = (uint8)(clamp255(sobel)); in SobelXRow_C()
914 dst_sobely[i] = (uint8)(clamp255(sobel)); in SobelYRow_C()
926 int s = clamp255(r + b); in SobelRow_C()
943 int s = clamp255(r + b); in SobelToPlaneRow_C()
956 int g = clamp255(r + b); in SobelXYRow_C()
2062 dst_argb[0] = clamp255(b); in ARGBUnattenuateRow_C()
2063 dst_argb[1] = clamp255(g); in ARGBUnattenuateRow_C()
2064 dst_argb[2] = clamp255(r); in ARGBUnattenuateRow_C()