[vlc-commits] es_out: add multiview mode info in the ES description
Steve Lhomme
git at videolan.org
Tue Aug 14 16:58:12 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug 14 12:49:51 2018 +0200| [23f5ec78dbe89d21415fda7230975e43756d06cc] | committer: Steve Lhomme
es_out: add multiview mode info in the ES description
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23f5ec78dbe89d21415fda7230975e43756d06cc
---
src/input/es_out.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 37d4c10ab6..9897a8eec4 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3370,6 +3370,24 @@ 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"),
+ 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