[vlc-devel] [PATCH 4/7] libvlc-module: add video-stereo-mode to store stereo output
Mohammed (Shaan) Huzaifa Danish
shaan3 at gmail.com
Thu Jul 13 11:11:25 CEST 2017
From: Mohammed Danish <shaan3 at gmail.com>
---
include/vlc_es.h | 6 ++++++
src/libvlc-module.c | 16 ++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/include/vlc_es.h b/include/vlc_es.h
index 4174349b6f..2c496a4c75 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -223,6 +223,12 @@ typedef enum video_multiview_mode_t
MULTIVIEW_STEREO_CHECKERBOARD,
} video_multiview_mode_t;
+typedef enum vlc_stereoscopic_3d_output_t{
+ VIDEO_STEREO_OUTPUT_AUTO,
+ VIDEO_STEREO_OUTPUT_STEREO,
+ VIDEO_STEREO_OUTPUT_LEFT_ONLY,
+ VIDEO_STEREO_OUTPUT_RIGHT_ONLY,
+} vlc_stereoscopic_3d_output_t;
/**
* Video projection mode.
*/
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index d3a446e832..9777357054 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -46,6 +46,18 @@
static const char *const ppsz_snap_formats[] =
{ "png", "jpg", "tiff" };
+#define VIDEO_STEREO_FORMAT_TEXT N_("Video Stereo 3D file format")
+#define VIDEO_STEREO_FORMAT_TEXT_LONGTEXT N_("Set the Video Stereo 3D file format manually"\
+ "Autodetect, Stereo, Left Only, Right Only")
+
+static const int video_stereo_formats[] = {
+ VIDEO_STEREO_OUTPUT_AUTO, VIDEO_STEREO_OUTPUT_STEREO,
+ VIDEO_STEREO_OUTPUT_LEFT_ONLY, VIDEO_STEREO_OUTPUT_RIGHT_ONLY,
+};
+static const char *const video_stereo_formats_text[] = {
+ N_("Auto-detect"), N_("Stereo"), N_("Left Only"), N_("Right Only"),
+};
+
/*****************************************************************************
* Configuration options for the core module. Each module will also separatly
* define its own configuration options.
@@ -1546,6 +1558,10 @@ vlc_module_begin ()
add_bool( "video-title-show", 1, VIDEO_TITLE_SHOW_TEXT,
VIDEO_TITLE_SHOW_LONGTEXT, false )
+ add_integer ("video-stereo-mode", VIDEO_STEREO_OUTPUT_AUTO, VIDEO_STEREO_FORMAT_TEXT,
+ VIDEO_STEREO_FORMAT_TEXT_LONGTEXT, false)
+ change_integer_list (video_stereo_formats, video_stereo_formats_text)
+
change_safe()
add_integer( "video-title-timeout", 5000, VIDEO_TITLE_TIMEOUT_TEXT,
VIDEO_TITLE_TIMEOUT_LONGTEXT, false )
--
2.12.2.windows.2
More information about the vlc-devel
mailing list