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

Steve Lhomme git at videolan.org
Thu May 23 15:38:02 CEST 2019


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

es: BT.2020 transfer function is actually HLG

(cherry picked from commit 4b57f871c864bc7763ccdb356563f35f130df0d9)

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

 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 c03fca394a..b9eb555f41 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -280,7 +280,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 5a2b194688..b2d2d43b69 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3233,7 +3233,7 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
                [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