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

Unified Diff: media/base/video_frame.h

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: add enum to mojom Created 5 years, 11 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
« no previous file with comments | « media/base/simd/yuv_to_rgb_table.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 0ffd0585cdb20d434760d8e6d654f753b1c4e9db..605ff78af2a3703b271c480ca6d07649fbcd50f6 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -53,20 +53,21 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
// Logged to UMA, so never reuse values.
enum Format {
UNKNOWN = 0, // Unknown format value.
- YV12 = 1, // 12bpp YVU planar 1x1 Y, 2x2 VU samples
- YV16 = 2, // 16bpp YVU planar 1x1 Y, 2x1 VU samples
- I420 = 3, // 12bpp YVU planar 1x1 Y, 2x2 UV samples.
- YV12A = 4, // 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples.
+ YV12 = 1, // 12bpp YVU planar 1x1 Y, 2x2 VU samples
+ YV16 = 2, // 16bpp YVU planar 1x1 Y, 2x1 VU samples
+ I420 = 3, // 12bpp YVU planar 1x1 Y, 2x2 UV samples.
+ YV12A = 4, // 20bpp YUVA planar 1x1 Y, 2x2 VU, 1x1 A samples.
#if defined(VIDEO_HOLE)
- HOLE = 5, // Hole frame.
+ HOLE = 5, // Hole frame.
#endif // defined(VIDEO_HOLE)
NATIVE_TEXTURE = 6, // Native texture. Pixel-format agnostic.
YV12J = 7, // JPEG color range version of YV12
NV12 = 8, // 12bpp 1x1 Y plane followed by an interleaved 2x2 UV plane.
YV24 = 9, // 24bpp YUV planar, no subsampling.
ARGB = 10, // 32bpp ARGB, 1 plane.
+ YV12HD = 11, // Rec709 "HD" color space version of YV12
// Please update UMA histogram enumeration when adding new formats here.
- FORMAT_MAX = ARGB, // Must always be equal to largest entry logged.
+ FORMAT_MAX = YV12HD, // Must always be equal to largest entry logged.
};
// Returns the name of a Format as a string.
« no previous file with comments | « media/base/simd/yuv_to_rgb_table.cc ('k') | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698