Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: media/base/yuv_convert.cc

Issue 88403004: Add plumbing for video pixel formats with JPEG color range. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \ Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/yuv_convert.cc
diff --git a/media/base/yuv_convert.cc b/media/base/yuv_convert.cc
index 893b53df147bf56f4a1b83ba1a9e5dab1683314d..d69cb452145ff94d9b52819ccb0397435455965a 100644
--- a/media/base/yuv_convert.cc
+++ b/media/base/yuv_convert.cc
@@ -59,7 +59,8 @@ typedef void (*ConvertYUVToRGB32Proc)(const uint8*,
int,
int,
int,
- YUVType);
+ YUVType,
+ YUVRange);
typedef void (*ConvertYUVAToARGBProc)(const uint8*,
const uint8*,
@@ -72,7 +73,8 @@ typedef void (*ConvertYUVAToARGBProc)(const uint8*,
int,
int,
int,
- YUVType);
+ YUVType,
+ YUVRange);
typedef void (*ConvertYUVToRGB32RowProc)(const uint8*,
const uint8*,
@@ -201,6 +203,7 @@ void ScaleYUVToRGB32(const uint8* y_buf,
int uv_pitch,
int rgb_pitch,
YUVType yuv_type,
+ YUVRange yuv_range,
Rotate view_rotate,
ScaleFilter filter) {
// Handle zero sized sources and destinations.
@@ -612,7 +615,8 @@ void ConvertYUVToRGB32(const uint8* yplane,
int ystride,
int uvstride,
int rgbstride,
- YUVType yuv_type) {
+ YUVType yuv_type,
+ YUVRange yuv_range) {
g_convert_yuv_to_rgb32_proc_(yplane,
uplane,
vplane,
@@ -622,7 +626,8 @@ void ConvertYUVToRGB32(const uint8* yplane,
ystride,
uvstride,
rgbstride,
- yuv_type);
+ yuv_type,
+ yuv_range);
}
void ConvertYUVAToARGB(const uint8* yplane,
@@ -636,7 +641,8 @@ void ConvertYUVAToARGB(const uint8* yplane,
int uvstride,
int astride,
int rgbstride,
- YUVType yuv_type) {
+ YUVType yuv_type,
+ YUVRange yuv_range) {
g_convert_yuva_to_argb_proc_(yplane,
uplane,
vplane,
@@ -648,7 +654,8 @@ void ConvertYUVAToARGB(const uint8* yplane,
uvstride,
astride,
rgbstride,
- yuv_type);
+ yuv_type,
+ yuv_range);
}
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698