[vlc-devel] [PATCH 1/4] vlc_es: add HLG/ARIB STD-B67 transfer function
Steve Lhomme
robux4 at videolabs.io
Fri Mar 3 17:18:18 CET 2017
---
include/vlc_es.h | 9 +++++++++
src/input/es_out.c | 1 +
2 files changed, 10 insertions(+)
diff --git a/include/vlc_es.h b/include/vlc_es.h
index c8dd4c46e7..a2843fe7a6 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -261,11 +261,13 @@ typedef enum video_transfer_func_t
TRANSFER_FUNC_BT709,
TRANSFER_FUNC_SMPTE_ST2084,
TRANSFER_FUNC_SMPTE_240,
+ TRANSFER_FUNC_HLG,
#define TRANSFER_FUNC_BT2020 TRANSFER_FUNC_BT709
#define TRANSFER_FUNC_SMPTE_170 TRANSFER_FUNC_BT709
#define TRANSFER_FUNC_SMPTE_274 TRANSFER_FUNC_BT709
#define TRANSFER_FUNC_SMPTE_293 TRANSFER_FUNC_BT709
#define TRANSFER_FUNC_SMPTE_296 TRANSFER_FUNC_BT709
+#define TRANSFER_FUNC_ARIB_B67 TRANSFER_FUNC_HLG
} video_transfer_func_t;
/**
@@ -468,6 +470,10 @@ VLC_API bool video_format_IsSimilar( const video_format_t *, const video_format_
VLC_API void video_format_Print( vlc_object_t *, const char *, const video_format_t * );
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable:4061) /* not explicitly handled by a case label */
+#endif /* _MSV_VER */
static inline video_transform_t transform_Inverse( video_transform_t transform )
{
switch ( transform ) {
@@ -479,6 +485,9 @@ static inline video_transform_t transform_Inverse( video_transform_t transform )
return transform;
}
}
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif /* _MSV_VER */
/**
* subtitles format description
*/
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 490ee9c9ea..384c09ae04 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3124,6 +3124,7 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
"ITU-R BT.709, ITU-R BT.2020",
"SMPTE ST2084",
"SMPTE 240M",
+ "Hybrid Log-Gamma",
};
if( fmt->video.transfer < ARRAY_SIZE(func_names) )
info_category_AddInfo( p_cat, _("Color transfer function"), "%s",
--
2.11.1
More information about the vlc-devel
mailing list