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

Unified Diff: media/base/yuv_convert.h

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
« no previous file with comments | « media/base/video_util.cc ('k') | media/base/yuv_convert.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/yuv_convert.h
diff --git a/media/base/yuv_convert.h b/media/base/yuv_convert.h
index 8f64c79689a3dfaf33a1944d23d4e1ac66655f6b..04407819417c3923b4eac83a7cbe6ab5e1970169 100644
--- a/media/base/yuv_convert.h
+++ b/media/base/yuv_convert.h
@@ -28,6 +28,11 @@ enum YUVType {
YV12 = 1, // YV12 is half width and half height chroma channels.
};
+enum YUVRange {
+ MPEG, // [16,235] Y channel, [16,239] U/V
Sergey Ulanov 2013/12/02 21:49:09 nit: Maybe call it YUV_RANGE_MPEG and YUV_RANGE_JP
rileya (GONE FROM CHROMIUM) 2013/12/02 23:10:30 It's possible that a different range may eventuall
+ JPEG, // Full [0,255] color range for all channels
+};
+
// Mirror means flip the image horizontally, as in looking in a mirror.
// Rotate happens after mirroring.
enum Rotate {
@@ -62,7 +67,8 @@ MEDIA_EXPORT void ConvertYUVToRGB32(const uint8* yplane,
int ystride,
int uvstride,
int rgbstride,
- YUVType yuv_type);
+ YUVType yuv_type,
+ YUVRange yuv_range);
// Convert a frame of YUVA to 32 bit ARGB.
// Pass in YV12A
@@ -77,7 +83,8 @@ MEDIA_EXPORT void ConvertYUVAToARGB(const uint8* yplane,
int uvstride,
int astride,
int rgbstride,
- YUVType yuv_type);
+ YUVType yuv_type,
+ YUVRange yuv_range);
// Scale a frame of YUV to 32 bit ARGB.
// Supports rotation and mirroring.
@@ -93,6 +100,7 @@ MEDIA_EXPORT void ScaleYUVToRGB32(const uint8* yplane,
int uvstride,
int rgbstride,
YUVType yuv_type,
+ YUVRange yuv_range,
Rotate view_rotate,
ScaleFilter filter);
« no previous file with comments | « media/base/video_util.cc ('k') | media/base/yuv_convert.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698