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

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: Created 6 years, 3 months 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 06289b058a48a541ec59a092755fe737e11265d1..2ff5b726bec7c5fb52a813062f454bb9a0f55e07 100644
--- a/media/base/yuv_convert.cc
+++ b/media/base/yuv_convert.cc
@@ -123,6 +123,7 @@ int GetVerticalShift(YUVType type) {
return 0;
case YV12:
case YV12J:
+ case YV12HD:
return 1;
}
NOTREACHED();
@@ -136,6 +137,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