[vlc-devel] [PATCH 2/2] es_out: add chroma location to video tracks' metadata

Jan Ekström jeebjp at gmail.com
Sat Apr 16 17:36:55 CEST 2016


---
 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:
-- 
2.5.5



More information about the vlc-devel mailing list