[vlc-commits] include: add enum for chroma location
Jan Ekstrom
git at videolan.org
Sun Apr 17 10:44:42 CEST 2016
vlc | branch: master | Jan Ekstrom <jeebjp at gmail.com> | Sat Apr 16 18:36:54 2016 +0300| [a12e37272721e536375e2450e999edde61e96350] | committer: Jean-Baptiste Kempf
include: add enum for chroma location
This lets us handle chroma location correctly further down the
rendering chain (even if in general things can be assumed by just
the video track's format).
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a12e37272721e536375e2450e999edde61e96350
---
include/vlc_es.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/include/vlc_es.h b/include/vlc_es.h
index 4596a4c..eaf875b 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -230,6 +230,20 @@ typedef enum video_color_space_t
} video_color_space_t;
/**
+ * Video chroma location
+ */
+typedef enum video_chroma_location_t
+{
+ CHROMA_LOCATION_UNDEF,
+ CHROMA_LOCATION_LEFT, /*< Most common in MPEG-2 Video, H.264/265 */
+ CHROMA_LOCATION_CENTER, /*< Most common in MPEG-1 Video, JPEG */
+ CHROMA_LOCATION_TOP_LEFT,
+ CHROMA_LOCATION_TOP_CENTER,
+ CHROMA_LOCATION_BOTTOM_LEFT,
+ CHROMA_LOCATION_BOTTOM_CENTER,
+} video_chroma_location_t;
+
+/**
* video format description
*/
struct video_format_t
@@ -261,6 +275,7 @@ struct video_format_t
video_transfer_func_t transfer; /**< transfer function */
video_color_space_t space; /**< YCbCr color space */
bool b_color_range_full; /**< 0-255 instead of 16-235 */
+ video_chroma_location_t chroma_location; /**< YCbCr chroma location */
};
/**
More information about the vlc-commits
mailing list