[vlc-devel] [PATCH 12/15] core: store the projection mode in use in video_display_t

Steve Lhomme robux4 at videolabs.io
Fri Nov 4 18:08:55 CET 2016


From: Thomas Guillem <thomas at gllm.fr>

This value must be updated by the vout to reflect what projection mode it's
using.
---
 include/vlc_vout_display.h | 7 +++++++
 src/video_output/display.c | 1 +
 2 files changed, 8 insertions(+)

diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 1a8a993..94fa378 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -287,6 +287,13 @@ struct vout_display_t {
      */
     video_format_t fmt;
 
+    /* Projection mode
+     *
+     * The projection mode currently used.
+     * It cannot be VOUT_PROJECTION_AUTO.
+     */
+    vout_projection_mode_t projection;
+
     /* Information
      *
      * You can only set them in the open function.
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 0e72e3f..6ac08c1 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -103,6 +103,7 @@ static vout_display_t *vout_display_New(vlc_object_t *obj,
     vd->control = NULL;
     vd->manage = NULL;
     vd->sys = NULL;
+    vd->projection = VOUT_PROJECTION_FLAT;
 
     vd->owner = *owner;
 
-- 
2.10.1



More information about the vlc-devel mailing list