[vlc-commits] es_out: add multiview mode info in the ES description
Steve Lhomme
git at videolan.org
Tue Aug 14 17:26:55 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug 14 12:49:51 2018 +0200| [25756f4b78a010599b541b6df80e534019f0d5ab] | committer: Steve Lhomme
es_out: add multiview mode info in the ES description
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25756f4b78a010599b541b6df80e534019f0d5ab
---
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..f1f13cad66 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[][16] = {
+ [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;
More information about the vlc-commits
mailing list