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

Unified Diff: media/base/simd/convert_yuv_to_rgb_x86.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: fix unit tests 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_x86.cc
diff --git a/media/base/simd/convert_yuv_to_rgb_x86.cc b/media/base/simd/convert_yuv_to_rgb_x86.cc
index d1d6e16beb7901c097431fe118f8036bb6ed1c46..96fec49947af20c51099b8a4d5c5052b450e2993 100644
--- a/media/base/simd/convert_yuv_to_rgb_x86.cc
+++ b/media/base/simd/convert_yuv_to_rgb_x86.cc
@@ -22,7 +22,8 @@ void ConvertYUVToRGB32_MMX(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;
@@ -51,7 +52,8 @@ void ConvertYUVAToARGB_MMX(const uint8* yplane,
int uvstride,
int astride,
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;
@@ -80,7 +82,8 @@ void ConvertYUVToRGB32_SSE(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;

Powered by Google App Engine
This is Rietveld 408576698