Searched refs:YUV_FIX (Results 1 – 4 of 4) sorted by relevance
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/ |
A D | yuv.h | 49 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()
|
A D | yuv_sse41.c | 375 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()
|
A D | yuv_sse2.c | 529 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()
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/ |
A D | picture_csp_enc.c | 142 : 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)) 265 return (luma >> YUV_FIX); in RGBToGray() 383 return clip_8b(16 + (luma >> (YUV_FIX + SFIX))); in ConvertRGBToY() 388 return clip_8b(128 + (u >> (YUV_FIX + SFIX))); in ConvertRGBToU() 393 return clip_8b(128 + (v >> (YUV_FIX + SFIX))); in ConvertRGBToV()
|
Completed in 12 milliseconds