[vlc-devel] [PATCH 1/9] include: add definitions for video 3D stereoscopy

Felix Abecassis felix.abecassis at gmail.com
Tue Sep 9 19:03:21 CEST 2014


---
 include/vlc_stereo3d.h | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
 create mode 100644 include/vlc_stereo3d.h

diff --git a/include/vlc_stereo3d.h b/include/vlc_stereo3d.h
new file mode 100644
index 0000000..c720fa4
--- /dev/null
+++ b/include/vlc_stereo3d.h
@@ -0,0 +1,62 @@
+/*****************************************************************************
+ * vlc_stereo3d.h: video stereoscopy definitions
+ *****************************************************************************
+ * Copyright (C) 2014 VLC authors and VideoLAN
+ *
+ * Authors: Felix Abecassis <felix.abecassis at gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+#ifndef VLC_STEREO3D_H
+#define VLC_STEREO3D_H
+
+typedef enum vlc_stereo3d_mode
+{
+    /* No stereoscopy: 2D picture. */
+    VLC_STEREO3D_2D = 0,
+
+    /* Side-by-side with left eye first. */
+    VLC_STEREO3D_SBS,
+
+    /* Top-bottom with left eye first. */
+    VLC_STEREO3D_TB,
+
+    /* Row sequential with left eye first. */
+    VLC_STEREO3D_ROW,
+
+    /* Column sequential with left eye first. */
+    VLC_STEREO3D_COL,
+
+    /* Frame sequential with left eye first. */
+    VLC_STEREO3D_FRAME,
+
+    /* Checkerboard pattern with left eye first. */
+    /* VLC_STEREO3D_CHECKERBOARD, */
+} vlc_stereo3d_mode;
+
+typedef enum vlc_stereo3d_flag
+{
+    /* Right eye is first instead of left eye. */
+    VLC_STEREO3D_SWAP_EYES = 1,
+} vlc_stereo3d_flag;
+
+typedef struct
+{
+    vlc_stereo3d_mode mode;
+    vlc_stereo3d_flag flags;
+} stereo3d_format_t;
+
+#endif
-- 
1.9.1




More information about the vlc-devel mailing list