Searched refs:YUV_FIX (Results 1 – 4 of 4) sorted by relevance
/external/webp/src/dsp/ |
D | yuv.h | 59 YUV_FIX = 16, // fixed-point precision for RGB->YUV enumerator 60 YUV_HALF = 1 << (YUV_FIX - 1), 61 YUV_MASK = (256 << YUV_FIX) - 1, 191 uv = (uv + rounding + (128 << (YUV_FIX + 2))) >> (YUV_FIX + 2); in VP8ClipUV() 199 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip in VP8RGBToY() 219 return (luma + rounding) >> YUV_FIX; // no need to clip in VP8RGBToY()
|
D | yuv.c | 38 VP8kVToR[i] = (89858 * (i - 128) + YUV_HALF) >> YUV_FIX; 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() 53 VP8kUToB[i] = (116130 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit()
|
D | yuv_sse2.c | 520 const __m128i kHALF_Y = _mm_set1_epi32((16 << YUV_FIX) + YUV_HALF); in ConvertRGBToY() 526 TRANSFORM(RG_lo, RG_hi, GB_lo, GB_hi, kRG_y, kGB_y, kHALF_Y, YUV_FIX, *Y); in ConvertRGBToY() 537 const __m128i kHALF_UV = _mm_set1_epi32(((128 << YUV_FIX) + YUV_HALF) << 2); in ConvertRGBToUV() 544 kHALF_UV, YUV_FIX + 2, *U); in ConvertRGBToUV() 546 kHALF_UV, YUV_FIX + 2, *V); in ConvertRGBToUV()
|
/external/webp/src/enc/ |
D | picture_csp_enc.c | 142 : VP8RGBToY(r, g, b, VP8RandomBits(rg, YUV_FIX)); in RGBToY() 147 : VP8RGBToU(r, g, b, VP8RandomBits(rg, YUV_FIX + 2)); in RGBToU() 152 : VP8RGBToV(r, g, b, VP8RandomBits(rg, YUV_FIX + 2)); in RGBToV() 169 #define SROUNDER (1 << (YUV_FIX + SFIX - 1)) 254 return (luma >> YUV_FIX); in RGBToGray() 376 return clip_8b(16 + (luma >> (YUV_FIX + SFIX))); in ConvertRGBToY() 381 return clip_8b(128 + (u >> (YUV_FIX + SFIX))); in ConvertRGBToU() 386 return clip_8b(128 + (v >> (YUV_FIX + SFIX))); in ConvertRGBToV()
|