[vlc-devel] [PATCH 1/7] vout iOS: handle VOUT_DISPLAY_CHANGE_VIEWPOINT events
Steve Lhomme
robux4 at videolabs.io
Wed Sep 14 16:37:45 CEST 2016
--
untested but trivial enough
replaces https://patches.videolan.org/patch/14431/ using vout_display_cfg_t
---
modules/video_output/ios2.m | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index f2413b8..780fab4 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -451,6 +451,15 @@ static int Control(vout_display_t *vd, int query, va_list ap)
return VLC_SUCCESS;
}
+ case VOUT_DISPLAY_CHANGE_VIEWPOINT:
+ {
+ const vout_display_cfg_t *p_cfg = va_arg (args, const vout_display_cfg_t *);
+ vout_display_opengl_SetViewpoint(sys->vgl, p_cfg->viewpoint.f_yaw_degrees,
+ p_cfg->viewpoint.f_pitch_degrees,
+ p_cfg->viewpoint.f_roll_degrees);
+ return VLC_SUCCESS;
+ }
+
case VOUT_DISPLAY_RESET_PICTURES:
vlc_assert_unreachable ();
default:
--
2.7.2.windows.1
More information about the vlc-devel
mailing list