[vlc-commits] es_out: add chroma location to video tracks' metadata

Jan Ekstrom git at videolan.org
Sun Apr 17 10:52:44 CEST 2016


vlc | branch: master | Jan Ekstrom <jeebjp at gmail.com> | Sat Apr 16 18:36:55 2016 +0300| [fb3c763046ee01f70102dcd50d71e122472408bd] | committer: Jean-Baptiste Kempf

es_out: add chroma location to video tracks' metadata

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

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

 src/input/es_out.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index ca45fdf..ea7a011 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3051,6 +3051,16 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
            info_category_AddInfo( p_cat, _("Color space"), "%s",
                                   _(space_names[fmt->video.space]) );
        }
+       static const char *c_loc_names[] = { N_("Undefined"),
+           N_("Left"),
+           N_("Center"),
+           N_("Top Left"),
+           N_("Top Center"),
+           N_("Bottom Left"),
+           N_("Bottom Center"),
+       };
+       info_category_AddInfo( p_cat, _("Chroma location"), "%s",
+                              _(c_loc_names[fmt->video.chroma_location]) );
        break;
 
     case SPU_ES:



More information about the vlc-commits mailing list