summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-06-19 06:06:22 +0000
committerphintuka <phintuka>2007-06-19 06:06:22 +0000
commit2de1225cb3dc295f135e1981b3f8c5ee66362327 (patch)
treec7dbdfb986ced779bd37e40625a7eca7157e7213
parent689ba0af1b5ede835abe61a803f7e07c0acd6c62 (diff)
downloadxineliboutput-2de1225cb3dc295f135e1981b3f8c5ee66362327.tar.gz
xineliboutput-2de1225cb3dc295f135e1981b3f8c5ee66362327.tar.bz2
Smooth fast forward setup option (Patch from Timo Eskola)
-rw-r--r--config.c9
-rw-r--r--config.h3
-rw-r--r--i18n.c22
-rw-r--r--setup_menu.c8
4 files changed, 38 insertions, 4 deletions
diff --git a/config.c b/config.c
index 76a58441..a10cd9cb 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.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);
diff --git a/config.h b/config.h
index fc50aba7..9439fb8b 100644
--- a/config.h
+++ b/config.h
@@ -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
diff --git a/i18n.c b/i18n.c
index 3648b651..db3acf64 100644
--- a/i18n.c
+++ b/i18n.c
@@ -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);