[vlc-devel] [PATCH 2/4] es: add an enum for color range
Steve Lhomme
robux4 at ycbcr.xyz
Thu Dec 13 10:02:41 CET 2018
There are cases were we don't know the range. It's better not to write 0 as if
we knew.
---
include/vlc_es.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/vlc_es.h b/include/vlc_es.h
index c32fddb096..f123b5ddd6 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -334,6 +334,15 @@ typedef enum video_chroma_location_t
#define CHROMA_LOCATION_MAX CHROMA_LOCATION_BOTTOM_CENTER
} video_chroma_location_t;
+typedef enum video_color_range_t
+{
+ COLOR_RANGE_UNDEF,
+ COLOR_RANGE_FULL,
+ COLOR_RANGE_LIMITED,
+#define COLOR_RANGE_STUDIO COLOR_RANGE_LIMITED
+#define COLOR_RANGE_MAX COLOR_RANGE_LIMITED
+} video_color_range_t;
+
/**
* video format description
*/
--
2.17.1
More information about the vlc-devel
mailing list