[vlc-commits] vlc_es: add FCC1953/BT470 System M color primary and more aliases

Francois Cartegnie git at videolan.org
Sun Dec 25 19:04:19 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Dec 25 17:38:15 2016 +0100| [d51ff97d79acc9cee26acf731bc8d17c4a36a73a] | committer: Francois Cartegnie

vlc_es: add FCC1953/BT470 System M color primary and more aliases

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

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

diff --git a/include/vlc_es.h b/include/vlc_es.h
index 176b64f..a8129a8 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -238,7 +238,14 @@ typedef enum video_color_primaries_t
     COLOR_PRIMARIES_BT709,
     COLOR_PRIMARIES_BT2020,
     COLOR_PRIMARIES_DCI_P3,
-#define COLOR_PRIMARIES_SRGB COLOR_PRIMARIES_BT709
+    COLOR_PRIMARIES_FCC1953,
+#define COLOR_PRIMARIES_SRGB            COLOR_PRIMARIES_BT709
+#define COLOR_PRIMARIES_SMTPE_170       COLOR_PRIMARIES_BT601_525
+#define COLOR_PRIMARIES_SMTPE_240       COLOR_PRIMARIES_BT601_525 /* Only differs from 1e10-4 in white Y */
+#define COLOR_PRIMARIES_SMTPE_RP145     COLOR_PRIMARIES_BT601_525
+#define COLOR_PRIMARIES_EBU_3213        COLOR_PRIMARIES_BT601_625
+#define COLOR_PRIMARIES_BT470_BG        COLOR_PRIMARIES_BT601_625
+#define COLOR_PRIMARIES_BT470_M         COLOR_PRIMARIES_FCC1953
 } video_color_primaries_t;
 
 /**
diff --git a/src/input/es_out.c b/src/input/es_out.c
index a211e89..a86679e 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3047,6 +3047,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",
                "DCI/P3 D65",
+               "ITU-R BT.470 M",
            };
            if( fmt->video.primaries < ARRAY_SIZE(primaries_names) )
                 info_category_AddInfo( p_cat, _("Color primaries"), "%s",



More information about the vlc-commits mailing list