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

Unified Diff: media/base/simd/convert_yuv_to_rgb_c.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/simd/convert_yuv_to_rgb_c.cc
diff --git a/media/base/simd/convert_yuv_to_rgb_c.cc b/media/base/simd/convert_yuv_to_rgb_c.cc
index 0466112918de950cac7b819f590c92579af694e9..e46dd498f4833cfc17fbdcd9346afeca0df21733 100644
--- a/media/base/simd/convert_yuv_to_rgb_c.cc
+++ b/media/base/simd/convert_yuv_to_rgb_c.cc
@@ -217,7 +217,8 @@ void ConvertYUVToRGB32_C(const uint8* yplane,
int ystride,
int uvstride,
int rgbstride,
- YUVType yuv_type) {
+ YUVType yuv_type,
+ YUVRange yuv_range) {
unsigned int y_shift = yuv_type;
for (int y = 0; y < height; ++y) {
uint8* rgb_row = rgbframe + y * rgbstride;
@@ -244,7 +245,8 @@ void ConvertYUVAToARGB_C(const uint8* yplane,
int uvstride,
int astride,
int rgbastride,
- YUVType yuv_type) {
+ YUVType yuv_type,
+ YUVRange yuv_range) {
unsigned int y_shift = yuv_type;
for (int y = 0; y < height; y++) {
uint8* rgba_row = rgbaframe + y * rgbastride;

Powered by Google App Engine
This is Rietveld 408576698