summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorphelin <phelin>2008-02-19 00:43:04 +0000
committerphelin <phelin>2008-02-19 00:43:04 +0000
commit66f7eb3aa9eb07360fbd8794223b046dee420855 (patch)
treee32b83e67220f10cce32ce09671179f2847944a3 /config.c
parent351111a062662ba136cf29eba36edbbe4336b9c1 (diff)
downloadxineliboutput-66f7eb3aa9eb07360fbd8794223b046dee420855.tar.gz
xineliboutput-66f7eb3aa9eb07360fbd8794223b046dee420855.tar.bz2
Added the possibility to select the aspect ratio of the video.
Diffstat (limited to 'config.c')
-rw-r--r--config.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/config.c b/config.c
index 625f15ac..56ff5965 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c,v 1.50 2008-02-05 00:19:26 phintuka Exp $
+ * $Id: config.c,v 1.51 2008-02-19 00:43:04 phelin Exp $
*
*/
@@ -56,6 +56,16 @@ const char * const config_t::s_aspects[ ASPECT_count+1 ] = {
NULL
};
+const char * const config_t::s_vo_aspects[ VO_ASPECT_count+1 ] = {
+ trNOOP("automatic"),
+ trNOOP("square"),
+ "4:3",
+ trNOOP("anamorphic"),
+ trNOOP("DVB"),
+ NULL
+};
+
+
const char * const config_t::s_deinterlaceMethods[ DEINTERLACE_count+1 ] = {
"none",
"bob",
@@ -506,6 +516,7 @@ config_t::config_t() {
saturation = -1;
contrast = -1;
brightness = -1;
+ vo_aspect_ratio = 0;
strn0cpy(browse_files_dir, VideoDirectory, sizeof(browse_files_dir));
strn0cpy(browse_music_dir, VideoDirectory, sizeof(browse_music_dir));
@@ -728,6 +739,7 @@ bool config_t::SetupParse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "Video.Overscan")) overscan = atoi(Value);
else if (!strcasecmp(Name, "Video.IBPTrickSpeed")) ibp_trickspeed = atoi(Value);
else if (!strcasecmp(Name, "Video.MaxTrickSpeed")) max_trickspeed = atoi(Value);
+ else if (!strcasecmp(Name, "Video.AspectRatio")) vo_aspect_ratio = atoi(Value);
else if (!strcasecmp(Name, "Post.pp.Enable")) ffmpeg_pp = atoi(Value);
else if (!strcasecmp(Name, "Post.pp.Quality")) ffmpeg_pp_quality = atoi(Value);