Issue #2101 - Part 4: Add color range support to gfx/ycbcr

Loosely based on current mozilla code
https://hg.mozilla.org/mozilla-central/file/25a8668d92431d469b443f0f2030328bab754aea/gfx/ycbcr/yuv_convert.cpp
This commit is contained in:
u3shit 2023-02-24 22:25:38 +01:00 • committed by roytam1
commit b5f9e9abb6
6 changed files with 128 additions and 78 deletions

View file

@ -57,7 +57,8 @@ void ConvertYCbCrToRGB32(const uint8_t* yplane,
int uvstride,
int rgbstride,
YUVType yuv_type,
YUVColorSpace yuv_color_space);
YUVColorSpace yuv_color_space,
ColorRange color_range);
void ConvertYCbCrToRGB32_deprecated(const uint8_t* yplane,
const uint8_t* uplane,
@ -87,6 +88,7 @@ void ScaleYCbCrToRGB32(const uint8_t* yplane,
int rgbstride,
YUVType yuv_type,
YUVColorSpace yuv_color_space,
ColorRange color_range,
ScaleFilter filter);
void ScaleYCbCrToRGB32_deprecated(const uint8_t* yplane,