Searched refs:YUV_FIX (Results 1 – 3 of 3) sorted by relevance
/external/webp/src/dsp/ |
D | yuv.h | 63 YUV_FIX = 16, // fixed-point precision for RGB->YUV enumerator 64 YUV_HALF = 1 << (YUV_FIX - 1), 65 YUV_MASK = (256 << YUV_FIX) - 1, 165 const int g_off = (VP8kVToG[v] + VP8kUToG[u]) >> YUV_FIX; in VP8YuvToRgb() 175 const int g_off = (VP8kVToG[v] + VP8kUToG[u]) >> YUV_FIX; in VP8YuvToBgr() 185 const int g_off = (VP8kVToG[v] + VP8kUToG[u]) >> YUV_FIX; in VP8YuvToRgb565() 203 const int g_off = (VP8kVToG[v] + VP8kUToG[u]) >> YUV_FIX; in VP8YuvToRgba4444() 274 uv = (uv + rounding + (128 << (YUV_FIX + 2))) >> (YUV_FIX + 2); in VP8ClipUV() 282 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip in VP8RGBToY() 302 return (luma + rounding) >> YUV_FIX; // no need to clip in VP8RGBToY()
|
D | yuv.c | 36 VP8kVToR[i] = (89858 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit() 39 VP8kUToB[i] = (113618 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit() 42 const int k = ((i - 16) * 76283 + YUV_HALF) >> YUV_FIX; in VP8YUVInit() 48 VP8kVToR[i] = (91881 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit() 51 VP8kUToB[i] = (116130 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit()
|
/external/webp/src/enc/ |
D | picture_csp.c | 146 : VP8RGBToY(r, g, b, VP8RandomBits(rg, YUV_FIX)); in RGBToY() 151 : VP8RGBToU(r, g, b, VP8RandomBits(rg, YUV_FIX + 2)); in RGBToU() 156 : VP8RGBToV(r, g, b, VP8RandomBits(rg, YUV_FIX + 2)); in RGBToV() 177 #define TROUNDER (1 << (YUV_FIX + TFIX - 1)) 275 return (luma >> YUV_FIX); in RGBToGray() 404 return clip_8b(16 + (luma >> (YUV_FIX + TFIX))); in ConvertRGBToY() 409 return clip_8b(128 + (u >> (YUV_FIX + TFIX))); in ConvertRGBToU() 414 return clip_8b(128 + (v >> (YUV_FIX + TFIX))); in ConvertRGBToV()
|