Home
last modified time | relevance | path

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

/external/webp/src/dsp/
Dyuv.h49 YUV_FIX = 16, // fixed-point precision for RGB->YUV enumerator
50 YUV_HALF = 1 << (YUV_FIX - 1),
187 uv = (uv + rounding + (128 << (YUV_FIX + 2))) >> (YUV_FIX + 2); in VP8ClipUV()
193 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip in VP8RGBToY()
Dyuv_sse41.c375 const __m128i kHALF_Y = _mm_set1_epi32((16 << YUV_FIX) + YUV_HALF); in ConvertRGBToY_SSE41()
381 TRANSFORM(RG_lo, RG_hi, GB_lo, GB_hi, kRG_y, kGB_y, kHALF_Y, YUV_FIX, *Y); in ConvertRGBToY_SSE41()
393 const __m128i kHALF_UV = _mm_set1_epi32(((128 << YUV_FIX) + YUV_HALF) << 2); in ConvertRGBToUV_SSE41()
400 kHALF_UV, YUV_FIX + 2, *U); in ConvertRGBToUV_SSE41()
402 kHALF_UV, YUV_FIX + 2, *V); in ConvertRGBToUV_SSE41()
Dyuv_sse2.c529 const __m128i kHALF_Y = _mm_set1_epi32((16 << YUV_FIX) + YUV_HALF); in ConvertRGBToY_SSE2()
535 TRANSFORM(RG_lo, RG_hi, GB_lo, GB_hi, kRG_y, kGB_y, kHALF_Y, YUV_FIX, *Y); in ConvertRGBToY_SSE2()
547 const __m128i kHALF_UV = _mm_set1_epi32(((128 << YUV_FIX) + YUV_HALF) << 2); in ConvertRGBToUV_SSE2()
554 kHALF_UV, YUV_FIX + 2, *U); in ConvertRGBToUV_SSE2()
556 kHALF_UV, YUV_FIX + 2, *V); in ConvertRGBToUV_SSE2()
/external/webp/src/enc/
Dpicture_csp_enc.c145 : VP8RGBToY(r, g, b, VP8RandomBits(rg, YUV_FIX)); in RGBToY()
150 : VP8RGBToU(r, g, b, VP8RandomBits(rg, YUV_FIX + 2)); in RGBToU()
155 : VP8RGBToV(r, g, b, VP8RandomBits(rg, YUV_FIX + 2)); in RGBToV()
172 #define SROUNDER (1 << (YUV_FIX + SFIX - 1))
269 return (luma >> YUV_FIX); in RGBToGray()
387 return clip_8b(16 + (luma >> (YUV_FIX + SFIX))); in ConvertRGBToY()
392 return clip_8b(128 + (u >> (YUV_FIX + SFIX))); in ConvertRGBToU()
397 return clip_8b(128 + (v >> (YUV_FIX + SFIX))); in ConvertRGBToV()