diff options
author | phintuka <phintuka> | 2007-06-19 06:06:22 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-06-19 06:06:22 +0000 |
commit | 2de1225cb3dc295f135e1981b3f8c5ee66362327 (patch) | |
tree | c7dbdfb986ced779bd37e40625a7eca7157e7213 | |
parent | 689ba0af1b5ede835abe61a803f7e07c0acd6c62 (diff) | |
download | xineliboutput-2de1225cb3dc295f135e1981b3f8c5ee66362327.tar.gz xineliboutput-2de1225cb3dc295f135e1981b3f8c5ee66362327.tar.bz2 |
Smooth fast forward setup option (Patch from Timo Eskola)
-rw-r--r-- | config.c | 9 | ||||
-rw-r--r-- | config.h | 3 | ||||
-rw-r--r-- | i18n.c | 22 | ||||
-rw-r--r-- | setup_menu.c | 8 |
4 files changed, 38 insertions, 4 deletions
@@ -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.41 2007-06-18 11:43:59 phintuka Exp $ + * $Id: config.c,v 1.42 2007-06-19 06:06:22 phintuka Exp $ * */ @@ -15,6 +15,7 @@ #include <vdr/config.h> #include <vdr/videodir.h> +#include <vdr/device.h> #include "logdefs.h" #include "config.h" @@ -367,6 +368,11 @@ config_t::config_t() { use_x_keyboard = 1; // video settings +#ifdef DEVICE_SUPPORTS_IBP_TRICKSPEED + ibp_trickspeed = 1; +#else + ibp_trickspeed = 0; +#endif overscan = 0; hue = -1; saturation = -1; @@ -589,6 +595,7 @@ bool config_t::SetupParse(const char *Name, const char *Value) else if (!strcasecmp(Name, "Video.Contrast")) contrast = atoi(Value); else if (!strcasecmp(Name, "Video.Brightness")) brightness = atoi(Value); else if (!strcasecmp(Name, "Video.Overscan")) overscan = atoi(Value); + else if (!strcasecmp(Name, "Video.IBPTrickSpeed")) ibp_trickspeed = 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); @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.h,v 1.28 2007-06-18 11:43:59 phintuka Exp $ + * $Id: config.h,v 1.29 2007-06-19 06:06:22 phintuka Exp $ * */ @@ -201,6 +201,7 @@ class config_t { int sw_volume_control; // software (xine-lib) or hardware (alsa) volume control and muting // Video settings + int ibp_trickspeed; int overscan; // % int hue; // 0...0xffff, -1 == off int saturation; // 0...0xffff, -1 == off @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: i18n.c,v 1.23 2007-06-12 19:28:37 phintuka Exp $ + * $Id: i18n.c,v 1.24 2007-06-19 06:06:22 phintuka Exp $ * * Translations provided by: * @@ -2538,6 +2538,26 @@ const tI18nPhrase Phrases[] = { "", // Russian "", // Croatian }, + { + "Smooth fast forward", // English + "", // Deutsch + "", // Slovenski + "", // Italiano + "", // Nederlands + "", // Portugu<EA>s + "", // Fran<E7>ais + "", // Norsk + "Tasainen kuvakelaus", // Suomi + "", // Polski + "", // Espa<F1>ol + "", // Ellinika + "", // Svenska + "", // Romaneste + "", // Magyar + "", // Catala + "", // Russian + "", // Croatian + }, // Missing texts 2006-09-20 { "Post processing (ffmpeg)", // English diff --git a/setup_menu.c b/setup_menu.c index 4692010c..77a2ea28 100644 --- a/setup_menu.c +++ b/setup_menu.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: setup_menu.c,v 1.33 2007-06-12 19:28:37 phintuka Exp $ + * $Id: setup_menu.c,v 1.34 2007-06-19 06:06:22 phintuka Exp $ * */ @@ -653,6 +653,11 @@ void cMenuSetupVideo::Set(void) controls)); #endif +#ifdef DEVICE_SUPPORTS_IBP_TRICKSPEED + Add(new cMenuEditBoolItem(tr("Smooth fast forward"), + &newconfig.ibp_trickspeed)); +#endif + if(current<1) current=1; /* first item is not selectable */ SetCurrent(Get(current)); //SetCurrent(Get(1)); @@ -749,6 +754,7 @@ void cMenuSetupVideo::Store(void) SetupStore("Video.Contrast", xc.contrast); SetupStore("Video.Brightness", xc.brightness); SetupStore("Video.Overscan", xc.overscan); + SetupStore("Video.IBPTrickSpeed", xc.ibp_trickspeed); SetupStore("Post.pp.Enable", xc.ffmpeg_pp); SetupStore("Post.pp.Quality", xc.ffmpeg_pp_quality); SetupStore("Post.pp.Mode", xc.ffmpeg_pp_mode); |