Lines Matching full:rounding
189 // Stub functions that can be called with various rounding values:
190 static WEBP_INLINE int VP8ClipUV(int uv, int rounding) {
191 uv = (uv + rounding + (128 << (YUV_FIX + 2))) >> (YUV_FIX + 2);
197 static WEBP_INLINE int VP8RGBToY(int r, int g, int b, int rounding) {
199 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip
202 static WEBP_INLINE int VP8RGBToU(int r, int g, int b, int rounding) {
204 return VP8ClipUV(u, rounding);
207 static WEBP_INLINE int VP8RGBToV(int r, int g, int b, int rounding) {
209 return VP8ClipUV(v, rounding);
217 static WEBP_INLINE int VP8RGBToY(int r, int g, int b, int rounding) {
219 return (luma + rounding) >> YUV_FIX; // no need to clip
222 static WEBP_INLINE int VP8RGBToU(int r, int g, int b, int rounding) {
224 return VP8ClipUV(u, rounding);
227 static WEBP_INLINE int VP8RGBToV(int r, int g, int b, int rounding) {
229 return VP8ClipUV(v, rounding);