[vlc-commits] core: add metadata info for VR/ 360° fields

Steve Lhomme git at videolan.org
Mon Nov 14 16:23:22 CET 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Nov 10 14:02:25 2016 +0100| [efbc26a42ebb7e80b11baa03d7da5e5129f73a60] | committer: Thomas Guillem

core: add metadata info for VR/360° fields

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 src/input/es_out.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 08eec10..b049be4 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3081,6 +3081,22 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
            info_category_AddInfo( p_cat, _("Chroma location"), "%s",
                    _(c_loc_names[fmt->video.chroma_location]) );
        }
+       if( fmt->video.projection_mode != PROJECTION_MODE_RECTANGULAR )
+       {
+           static const char *c_loc_names[] = { N_("Rectangular"),
+               N_("Equirectangular"),
+               N_("Cubemap"),
+           };
+           info_category_AddInfo( p_cat, _("Projection"), "%s",
+                   _(c_loc_names[fmt->video.projection_mode]) );
+
+           info_category_AddInfo( p_cat, _("Yaw"), "%.2f",
+                                  fmt->video.f_pose_yaw_degrees );
+           info_category_AddInfo( p_cat, _("Pitch"), "%.2f",
+                                  fmt->video.f_pose_pitch_degrees );
+           info_category_AddInfo( p_cat, _("Roll"), "%.2f",
+                                  fmt->video.f_pose_roll_degrees );
+       }
        break;
 
     case SPU_ES:



More information about the vlc-commits mailing list