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

Steve Lhomme robux4 at videolabs.io
Mon Nov 7 10:52:01 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 f83f15b..b6edc42 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -289,6 +289,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 f6b8e43..8803b05 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