Home
last modified time | relevance | path

Searched refs:YUV_HALF (Results 1 – 5 of 5) sorted by relevance

/external/webp/src/dsp/
Dyuv.c36 VP8kVToR[i] = (89858 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit()
37 VP8kUToG[i] = -22014 * (i - 128) + YUV_HALF; 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()
49 VP8kUToG[i] = -22554 * (i - 128) + YUV_HALF; in VP8YUVInit()
51 VP8kUToB[i] = (116130 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit()
Dyuv.h64 YUV_HALF = 1 << (YUV_FIX - 1), enumerator
/external/webp/src/enc/
Dpicture_tools.c139 const int Y0 = VP8RGBToY(red, green, blue, YUV_HALF); in WebPBlendAlpha()
141 const int U0 = VP8RGBToU(4 * red, 4 * green, 4 * blue, 4 * YUV_HALF); in WebPBlendAlpha()
142 const int V0 = VP8RGBToV(4 * red, 4 * green, 4 * blue, 4 * YUV_HALF); in WebPBlendAlpha()
Dpicture_csp.c145 return (rg == NULL) ? VP8RGBToY(r, g, b, YUV_HALF) in RGBToY()
150 return (rg == NULL) ? VP8RGBToU(r, g, b, YUV_HALF << 2) in RGBToU()
155 return (rg == NULL) ? VP8RGBToV(r, g, b, YUV_HALF << 2) in RGBToV()
274 const int luma = 19595 * r + 38470 * g + 7471 * b + YUV_HALF; in RGBToGray()
/external/webp/src/dec/
Dvp8l.c489 YUV_HALF); in ConvertToYUVA()
508 u[i] = VP8RGBToU(r, g, b, YUV_HALF << 2); in ConvertToYUVA()
509 v[i] = VP8RGBToV(r, g, b, YUV_HALF << 2); in ConvertToYUVA()
511 const int tmp_u = VP8RGBToU(r, g, b, YUV_HALF << 2); in ConvertToYUVA()
512 const int tmp_v = VP8RGBToV(r, g, b, YUV_HALF << 2); in ConvertToYUVA()
524 u[i] = VP8RGBToU(r, g, b, YUV_HALF << 2); in ConvertToYUVA()
525 v[i] = VP8RGBToV(r, g, b, YUV_HALF << 2); in ConvertToYUVA()
527 const int tmp_u = VP8RGBToU(r, g, b, YUV_HALF << 2); in ConvertToYUVA()
528 const int tmp_v = VP8RGBToV(r, g, b, YUV_HALF << 2); in ConvertToYUVA()