diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-05-18 00:14:34 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-05-18 00:14:34 +0000 |
commit | 1f2df74079ecb399d33069a6f6ba9eb1744b0e8a (patch) | |
tree | 09ba2f1fdc7a4a84abcb5643bdb16d4218aae23f /apps/plugins/mpegplayer/mpeg_settings.h | |
parent | 18f13b149a4ce6d3b16c0b91de4d571d1860b66f (diff) | |
download | rockbox-1f2df74079ecb399d33069a6f6ba9eb1744b0e8a.tar.gz rockbox-1f2df74079ecb399d33069a6f6ba9eb1744b0e8a.zip |
MPEGPlayer quickie: add an option to set the backlight brightness to a plugin-specified value when playing video or interacting. Nice when one likes a dim backlight normally but that isn't sufficient when viewing video for instance. Suggested in FS#8417 in addition to my own desire for this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17563 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_settings.h')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_settings.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.h b/apps/plugins/mpegplayer/mpeg_settings.h index 1557ff433e..d00dc197cb 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.h +++ b/apps/plugins/mpegplayer/mpeg_settings.h | |||
@@ -1,7 +1,7 @@ | |||
1 | 1 | ||
2 | #include "plugin.h" | 2 | #include "plugin.h" |
3 | 3 | ||
4 | #define SETTINGS_VERSION 4 | 4 | #define SETTINGS_VERSION 5 |
5 | #define SETTINGS_MIN_VERSION 1 | 5 | #define SETTINGS_MIN_VERSION 1 |
6 | #define SETTINGS_FILENAME "mpegplayer.cfg" | 6 | #define SETTINGS_FILENAME "mpegplayer.cfg" |
7 | 7 | ||
@@ -22,6 +22,9 @@ enum mpeg_option_id | |||
22 | MPEG_OPTION_DISPLAY_FPS, | 22 | MPEG_OPTION_DISPLAY_FPS, |
23 | MPEG_OPTION_LIMIT_FPS, | 23 | MPEG_OPTION_LIMIT_FPS, |
24 | MPEG_OPTION_SKIP_FRAMES, | 24 | MPEG_OPTION_SKIP_FRAMES, |
25 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | ||
26 | MPEG_OPTION_BACKLIGHT_BRIGHTNESS, | ||
27 | #endif | ||
25 | }; | 28 | }; |
26 | 29 | ||
27 | enum mpeg_audio_option_id | 30 | enum mpeg_audio_option_id |
@@ -78,6 +81,10 @@ struct mpeg_settings { | |||
78 | int crossfeed; | 81 | int crossfeed; |
79 | int equalizer; | 82 | int equalizer; |
80 | int dithering; | 83 | int dithering; |
84 | /* Backlight options */ | ||
85 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | ||
86 | int backlight_brightness; | ||
87 | #endif | ||
81 | }; | 88 | }; |
82 | 89 | ||
83 | extern struct mpeg_settings settings; | 90 | extern struct mpeg_settings settings; |
@@ -97,3 +104,7 @@ void mpeg_menu_sysevent_handle(void); | |||
97 | 104 | ||
98 | void init_settings(const char* filename); | 105 | void init_settings(const char* filename); |
99 | void save_settings(void); | 106 | void save_settings(void); |
107 | |||
108 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | ||
109 | void mpeg_backlight_update_brightness(int value); | ||
110 | #endif | ||