Home
last modified time | relevance | path

Searched refs:YUV_RANGE_MIN (Results 1 – 2 of 2) sorted by relevance

/external/webp/src/dsp/
Dyuv.h66 YUV_RANGE_MIN = -227, // min value of r/g/b output enumerator
159 extern uint8_t VP8kClip[YUV_RANGE_MAX - YUV_RANGE_MIN];
160 extern uint8_t VP8kClip4Bits[YUV_RANGE_MAX - YUV_RANGE_MIN];
167 rgb[0] = VP8kClip[y + r_off - YUV_RANGE_MIN]; in VP8YuvToRgb()
168 rgb[1] = VP8kClip[y + g_off - YUV_RANGE_MIN]; in VP8YuvToRgb()
169 rgb[2] = VP8kClip[y + b_off - YUV_RANGE_MIN]; in VP8YuvToRgb()
177 bgr[0] = VP8kClip[y + b_off - YUV_RANGE_MIN]; in VP8YuvToBgr()
178 bgr[1] = VP8kClip[y + g_off - YUV_RANGE_MIN]; in VP8YuvToBgr()
179 bgr[2] = VP8kClip[y + r_off - YUV_RANGE_MIN]; in VP8YuvToBgr()
187 const int rg = ((VP8kClip[y + r_off - YUV_RANGE_MIN] & 0xf8) | in VP8YuvToRgb565()
[all …]
Dyuv.c26 uint8_t VP8kClip[YUV_RANGE_MAX - YUV_RANGE_MIN];
27 uint8_t VP8kClip4Bits[YUV_RANGE_MAX - YUV_RANGE_MIN];
41 for (i = YUV_RANGE_MIN; i < YUV_RANGE_MAX; ++i) { in VP8YUVInit()
43 VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255); in VP8YUVInit()
44 VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15); in VP8YUVInit()
53 for (i = YUV_RANGE_MIN; i < YUV_RANGE_MAX; ++i) { in VP8YUVInit()
55 VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255); in VP8YUVInit()
56 VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15); in VP8YUVInit()