[vlc-commits] vlc_es: add HLG/ARIB STD-B67 transfer function

Steve Lhomme git at videolan.org
Sun Mar 5 23:56:14 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Mar  3 17:18:18 2017 +0100| [2367d4c06743a8750c455c157feb2b29b55d4a51] | committer: Jean-Baptiste Kempf

vlc_es: add HLG/ARIB STD-B67 transfer function

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2367d4c06743a8750c455c157feb2b29b55d4a51
---

 include/vlc_es.h   | 2 ++
 src/input/es_out.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/include/vlc_es.h b/include/vlc_es.h
index c8dd4c4..4210bc0 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;
 
 /**
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 490ee9c..384c09a 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",



More information about the vlc-commits mailing list