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

Unified Diff: media/base/yuv_convert.cc

Issue 591313008: Add support for Rec709 color space videos in software YUV convert path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up some bad rebasing... Created 6 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 431183abb398c71db8e8fae9e605bf69e2597b8a..25fb8be1927a337686aebb11715cef3efc74f857 100644
--- a/media/base/yuv_convert.cc
+++ b/media/base/yuv_convert.cc
@@ -127,6 +127,7 @@ int GetVerticalShift(YUVType type) {
return 0;
case YV12:
case YV12J:
+ case YV12HD:
return 1;
}
NOTREACHED();
@@ -140,6 +141,8 @@ const int16 (&GetLookupTable(YUVType type))[1024][4] {
return kCoefficientsRgbY;
case YV12J:
return kCoefficientsRgbY_JPEG;
+ case YV12HD:
+ return kCoefficientsRgbY_Rec709;
}
NOTREACHED();
return kCoefficientsRgbY;

Powered by Google App Engine
This is Rietveld 408576698