mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
fix compilation with USE_YUVj flag
(not that we'll ever need it, but...) Change-Id: I9af993c62372097846c5ca6bae8362b59c3502dc
This commit is contained in:
parent
4acbec1bef
commit
77a8f91981
@ -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
|
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;
|
const int u = -11058 * r - 21710 * g + 32768 * b;
|
||||||
return VP8ClipUV(u, rounding);
|
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;
|
const int v = 32768 * r - 27439 * g - 5329 * b;
|
||||||
return VP8ClipUV(v, rounding);
|
return VP8ClipUV(v, rounding);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user