Home
last modified time | relevance | path

Searched refs:YUV_FIX (Results 1 – 6 of 6) sorted by relevance

/external/opencv3/3rdparty/libwebp/dsp/
Dyuv.h59 enum { YUV_FIX = 16, // fixed-point precision enumerator
60 YUV_HALF = 1 << (YUV_FIX - 1),
61 YUV_MASK = (256 << YUV_FIX) - 1,
76 const int g_off = (VP8kVToG[v] + VP8kUToG[u]) >> YUV_FIX; in VP8YuvToRgb()
86 const int g_off = (VP8kVToG[v] + VP8kUToG[u]) >> YUV_FIX; in VP8YuvToBgr()
96 const int g_off = (VP8kVToG[v] + VP8kUToG[u]) >> YUV_FIX; in VP8YuvToRgb565()
114 const int g_off = (VP8kVToG[v] + VP8kUToG[u]) >> YUV_FIX; in VP8YuvToRgba4444()
141 return ((v & ~YUV_MASK) == 0) ? (uint8_t)(v >> YUV_FIX) in VP8Clip8()
146 return ((v & ~YUV_MASK) == 0) ? (uint8_t)(v >> (YUV_FIX + (8 - N))) in VP8ClipN()
235 v = (v + (257 << (YUV_FIX + 2 - 1))) >> (YUV_FIX + 2); in VP8ClipUV()
[all …]
Dyuv.c40 VP8kVToR[i] = (89858 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit()
43 VP8kUToB[i] = (113618 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit()
46 const int k = ((i - 16) * 76283 + YUV_HALF) >> YUV_FIX; in VP8YUVInit()
52 VP8kVToR[i] = (91881 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit()
55 VP8kUToB[i] = (116130 * (i - 128) + YUV_HALF) >> YUV_FIX; in VP8YUVInit()
/external/webp/src/dsp/
Dyuv.h59 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()
Dyuv.c36 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()
Dyuv_sse2.c547 const __m128i kHALF_Y = _mm_set1_epi32((16 << YUV_FIX) + YUV_HALF); in ConvertRGBToY()
553 TRANSFORM(RG_lo, RG_hi, GB_lo, GB_hi, kRG_y, kGB_y, kHALF_Y, YUV_FIX, *Y); in ConvertRGBToY()
564 const __m128i kHALF_UV = _mm_set1_epi32(((128 << YUV_FIX) + YUV_HALF) << 2); in ConvertRGBToUV()
571 kHALF_UV, YUV_FIX + 2, *U); in ConvertRGBToUV()
573 kHALF_UV, YUV_FIX + 2, *V); in ConvertRGBToUV()
/external/webp/src/enc/
Dpicture_csp.c142 : 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))
239 return (luma >> YUV_FIX); in RGBToGray()
371 return clip_8b(16 + (luma >> (YUV_FIX + SFIX))); in ConvertRGBToY()
376 return clip_8b(128 + (u >> (YUV_FIX + SFIX))); in ConvertRGBToU()
381 return clip_8b(128 + (v >> (YUV_FIX + SFIX))); in ConvertRGBToV()