[vlc-commits] es_out: add orientation to video tracks meta

Rémi Denis-Courmont git at videolan.org
Sat Apr 16 15:34:28 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 16 16:12:47 2016 +0300| [97bd1a58e55243f15fff73b5ab621c9531e770d9] | committer: Rémi Denis-Courmont

es_out: add orientation to video tracks meta

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

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

diff --git a/src/input/es_out.c b/src/input/es_out.c
index a5aee4d..1789d34 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3007,7 +3007,16 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
                info_category_AddInfo( p_cat, _("Decoded format"), "%s",
                                       psz_chroma_description );
        }
-
+       {
+           static const char orient_names[][13] = {
+               N_("Top left"), N_("Left top"),
+               N_("Right bottom"), N_("Top right"),
+               N_("Bottom left"), N_("Bottom right"),
+               N_("Left bottom"), N_("Right top"),
+           };
+           info_category_AddInfo( p_cat, _("Orientation"), "%s",
+                                  _(orient_names[fmt->video.orientation]) );
+       }
        break;
 
     case SPU_ES:



More information about the vlc-commits mailing list