vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Tue Aug 14 12:49:51 2018 +0200| [518b0e85c1aaf3ec1ffc55a644c2f3bc50c134c6] | committer: Steve Lhomme
es_out: add multiview mode info in the ES description > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=518b0e85c1aaf3ec1ffc55a644c2f3bc50c134c6 --- src/input/es_out.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/input/es_out.c b/src/input/es_out.c index 37d4c10ab6..960d64a9de 100644 --- a/src/input/es_out.c +++ b/src/input/es_out.c @@ -3370,6 +3370,25 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t * info_category_AddInfo( p_cat, _("Chroma location"), "%s", vlc_gettext(c_loc_names[fmt->video.chroma_location]) ); } + if( fmt->video.multiview_mode != MULTIVIEW_2D ) + { + static const char c_multiview_names[][18] = { + [MULTIVIEW_2D] = N_("2D"), + [MULTIVIEW_STEREO_SBS] = N_("Side-By-Side"), + [MULTIVIEW_STEREO_TB] = N_("Top-Bottom"), + [MULTIVIEW_STEREO_ROW] = N_("Row Sequential"), + [MULTIVIEW_STEREO_COL] = N_("Column Sequential"), + [MULTIVIEW_STEREO_FRAME] =N_("Frame Sequential"), + [MULTIVIEW_STEREO_CHECKERBOARD] = N_("Checkboard"), + }; + static_assert(ARRAY_SIZE(c_multiview_names) == MULTIVIEW_STEREO_CHECKERBOARD+1, + "Multiview format table mismatch"); + info_category_AddInfo( p_cat, _("Stereo Mode"), "%s", + vlc_gettext(c_multiview_names[fmt->video.multiview_mode]) ); + info_category_AddInfo( p_cat, _("First Stereo Eye"), + vlc_gettext(fmt->video.b_multiview_right_eye_first ? + N_("Right") : N_("Left")) ); + } if( fmt->video.projection_mode != PROJECTION_MODE_RECTANGULAR ) { const char *psz_loc_name = NULL; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits