[vlc-commits] es: BT.2020 transfer function is actually HLG

Steve Lhomme git at videolan.org
Thu May 23 15:36:11 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu May 23 15:30:17 2019 +0200| [4b57f871c864bc7763ccdb356563f35f130df0d9] | committer: Steve Lhomme

es: BT.2020 transfer function is actually HLG

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

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

diff --git a/include/vlc_es.h b/include/vlc_es.h
index e80733eca3..a089b00a03 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -294,7 +294,7 @@ typedef enum video_transfer_func_t
     TRANSFER_FUNC_SMPTE_ST2084,
     TRANSFER_FUNC_SMPTE_240,
     TRANSFER_FUNC_HLG,
-#define TRANSFER_FUNC_BT2020            TRANSFER_FUNC_BT709
+#define TRANSFER_FUNC_BT2020            TRANSFER_FUNC_HLG
 #define TRANSFER_FUNC_SMPTE_170         TRANSFER_FUNC_BT709
 #define TRANSFER_FUNC_SMPTE_274         TRANSFER_FUNC_BT709
 #define TRANSFER_FUNC_SMPTE_293         TRANSFER_FUNC_BT709
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 289117f22d..5669ba1cc1 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3540,7 +3540,7 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const vlc_meta_t *p
                [TRANSFER_FUNC_BT709] = "ITU-R BT.709",
                [TRANSFER_FUNC_SMPTE_ST2084] = "SMPTE ST2084 (PQ)",
                [TRANSFER_FUNC_SMPTE_240] = "SMPTE 240M",
-               [TRANSFER_FUNC_HLG] = N_("Hybrid Log-Gamma"),
+               [TRANSFER_FUNC_HLG] = N_("Hybrid Log-Gamma / BT.2020"),
            };
            static_assert(ARRAY_SIZE(func_names) == TRANSFER_FUNC_MAX+1,
                          "Transfer functions table mismatch");



More information about the vlc-commits mailing list