Lines Matching refs:rounding
190 static WEBP_INLINE int VP8ClipUV(int uv, int rounding) { in VP8ClipUV() argument
191 uv = (uv + rounding + (128 << (YUV_FIX + 2))) >> (YUV_FIX + 2); in VP8ClipUV()
197 static WEBP_INLINE int VP8RGBToY(int r, int g, int b, int rounding) { in VP8RGBToY() argument
199 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip in VP8RGBToY()
202 static WEBP_INLINE int VP8RGBToU(int r, int g, int b, int rounding) { in VP8RGBToU() argument
204 return VP8ClipUV(u, rounding); in VP8RGBToU()
207 static WEBP_INLINE int VP8RGBToV(int r, int g, int b, int rounding) { in VP8RGBToV() argument
209 return VP8ClipUV(v, rounding); in VP8RGBToV()
217 static WEBP_INLINE int VP8RGBToY(int r, int g, int b, int rounding) { in VP8RGBToY() argument
219 return (luma + rounding) >> YUV_FIX; // no need to clip in VP8RGBToY()
222 static WEBP_INLINE int VP8RGBToU(int r, int g, int b, int rounding) { in VP8RGBToU() argument
224 return VP8ClipUV(u, rounding); in VP8RGBToU()
227 static WEBP_INLINE int VP8RGBToV(int r, int g, int b, int rounding) { in VP8RGBToV() argument
229 return VP8ClipUV(v, rounding); in VP8RGBToV()