[vlc-devel] [PATCH 1/7] vout iOS: handle VOUT_DISPLAY_CHANGE_VIEWPOINT events

Steve Lhomme robux4 at videolabs.io
Mon Sep 12 14:01:31 CEST 2016


--
untested but trivial enough
---
 modules/video_output/ios2.m | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index f2413b8..505d19e 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -451,6 +451,14 @@ static int Control(vout_display_t *vd, int query, va_list ap)
             return VLC_SUCCESS;
         }
 
+        case VOUT_DISPLAY_CHANGE_VIEWPOINT:
+        {
+            const video_format_t *src = va_arg (args, const video_format_t *);
+            vout_display_opengl_SetViewpoint(sys->vgl, src->f_pose_yaw_degrees,
+                                             src->f_pose_pitch_degrees, src->f_pose_roll_degrees);
+            return VLC_SUCCESS;
+        }
+
         case VOUT_DISPLAY_RESET_PICTURES:
             vlc_assert_unreachable ();
         default:
-- 
2.8.2



More information about the vlc-devel mailing list