From 77a8f91981e2968c65b86acb4a31cee87f5c2370 Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 20 Feb 2014 13:23:18 +0100 Subject: [PATCH] fix compilation with USE_YUVj flag (not that we'll ever need it, but...) Change-Id: I9af993c62372097846c5ca6bae8362b59c3502dc --- src/dsp/yuv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsp/yuv.h b/src/dsp/yuv.h index dd778f9c..81c621cb 100644 --- a/src/dsp/yuv.h +++ b/src/dsp/yuv.h @@ -298,12 +298,12 @@ static WEBP_INLINE int VP8RGBToY(int r, int g, int b, int rounding) { return (luma + rounding) >> YUV_FIX; // no need to clip } -static WEBP_INLINE int VP8_RGB_TO_U(int r, int g, int b, int rounding) { +static WEBP_INLINE int VP8RGBToU(int r, int g, int b, int rounding) { const int u = -11058 * r - 21710 * g + 32768 * b; return VP8ClipUV(u, rounding); } -static WEBP_INLINE int VP8_RGB_TO_V(int r, int g, int b, int rounding) { +static WEBP_INLINE int VP8RGBToV(int r, int g, int b, int rounding) { const int v = 32768 * r - 27439 * g - 5329 * b; return VP8ClipUV(v, rounding); }