Searched refs:YUV_HALF (Results 1 – 5 of 5) sorted by relevance
/external/webp/src/dsp/ |
D | yuv.c | 38 VP8kVToR[i] = (89858 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit() 39 VP8kUToG[i] = -22014 * (i - 128) + YUV_HALF; in VP8YUVInit() 41 VP8kUToB[i] = (113618 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit() 44 const int k = ((i - 16) * 76283 + YUV_HALF) >> YUV_FIX; in VP8YUVInit() 50 VP8kVToR[i] = (91881 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit() 51 VP8kUToG[i] = -22554 * (i - 128) + YUV_HALF; in VP8YUVInit() 53 VP8kUToB[i] = (116130 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit() 176 YUV_HALF); in ConvertARGBToY() 193 const int tmp_u = VP8RGBToU(r, g, b, YUV_HALF << 2); in WebPConvertARGBToUV_C() 194 const int tmp_v = VP8RGBToV(r, g, b, YUV_HALF << 2); in WebPConvertARGBToUV_C() [all …]
|
D | yuv_sse2.c | 520 const __m128i kHALF_Y = _mm_set1_epi32((16 << YUV_FIX) + YUV_HALF); in ConvertRGBToY() 537 const __m128i kHALF_UV = _mm_set1_epi32(((128 << YUV_FIX) + YUV_HALF) << 2); in ConvertRGBToUV() 582 y[i] = VP8RGBToY(rgb[0], rgb[1], rgb[2], YUV_HALF); in ConvertRGB24ToY() 616 y[i] = VP8RGBToY(bgr[2], bgr[1], bgr[0], YUV_HALF); in ConvertBGR24ToY() 633 YUV_HALF); in ConvertARGBToY()
|
D | yuv.h | 60 YUV_HALF = 1 << (YUV_FIX - 1), enumerator
|
/external/webp/src/enc/ |
D | picture_tools_enc.c | 159 const int Y0 = VP8RGBToY(red, green, blue, YUV_HALF); in WebPBlendAlpha() 161 const int U0 = VP8RGBToU(4 * red, 4 * green, 4 * blue, 4 * YUV_HALF); in WebPBlendAlpha() 162 const int V0 = VP8RGBToV(4 * red, 4 * green, 4 * blue, 4 * YUV_HALF); in WebPBlendAlpha()
|
D | picture_csp_enc.c | 141 return (rg == NULL) ? VP8RGBToY(r, g, b, YUV_HALF) in RGBToY() 146 return (rg == NULL) ? VP8RGBToU(r, g, b, YUV_HALF << 2) in RGBToU() 151 return (rg == NULL) ? VP8RGBToV(r, g, b, YUV_HALF << 2) in RGBToV() 253 const int luma = 13933 * r + 46871 * g + 4732 * b + YUV_HALF; in RGBToGray()
|