diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-10-21 13:46:26 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-10-21 13:46:26 +0000 |
commit | c1051549b93d1905602ba25409cbd8f4a607c3b5 (patch) | |
tree | 303c0129884c3c32c6ca1e425b8edd4c9caf3ebc /apps/plugins/mpegplayer/mpeg_settings.c | |
parent | e1a91b9138148bd33ee0bae72a7367b6282aca7f (diff) | |
download | rockbox-c1051549b93d1905602ba25409cbd8f4a607c3b5.tar.gz rockbox-c1051549b93d1905602ba25409cbd8f4a607c3b5.zip |
Implement YUV dithering for c200, and enable the option in mpegplayer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15246 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_settings.c')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_settings.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c index 94781988c7..9e6fa57fb5 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.c +++ b/apps/plugins/mpegplayer/mpeg_settings.c | |||
@@ -101,7 +101,7 @@ static struct configdata config[] = | |||
101 | {TYPE_INT, 0, 2, &settings.skipframes, "Skip frames", NULL, NULL}, | 101 | {TYPE_INT, 0, 2, &settings.skipframes, "Skip frames", NULL, NULL}, |
102 | {TYPE_INT, 0, INT_MAX, &settings.resume_count, "Resume count", | 102 | {TYPE_INT, 0, INT_MAX, &settings.resume_count, "Resume count", |
103 | NULL, NULL}, | 103 | NULL, NULL}, |
104 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) | 104 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) |
105 | {TYPE_INT, 0, INT_MAX, &settings.displayoptions, "Display options", | 105 | {TYPE_INT, 0, INT_MAX, &settings.displayoptions, "Display options", |
106 | NULL, NULL}, | 106 | NULL, NULL}, |
107 | #endif | 107 | #endif |
@@ -119,7 +119,7 @@ static void display_options(void) | |||
119 | int options_quit = 0; | 119 | int options_quit = 0; |
120 | 120 | ||
121 | static const struct menu_item items[] = { | 121 | static const struct menu_item items[] = { |
122 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) | 122 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) |
123 | [MPEG_OPTION_DITHERING] = | 123 | [MPEG_OPTION_DITHERING] = |
124 | { "Dithering", NULL }, | 124 | { "Dithering", NULL }, |
125 | #endif /* #ifdef TOSHIBA_GIGABEAT_F */ | 125 | #endif /* #ifdef TOSHIBA_GIGABEAT_F */ |
@@ -142,7 +142,7 @@ static void display_options(void) | |||
142 | 142 | ||
143 | switch (result) | 143 | switch (result) |
144 | { | 144 | { |
145 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) | 145 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) |
146 | case MPEG_OPTION_DITHERING: | 146 | case MPEG_OPTION_DITHERING: |
147 | result = (settings.displayoptions & LCD_YUV_DITHER) ? 1 : 0; | 147 | result = (settings.displayoptions & LCD_YUV_DITHER) ? 1 : 0; |
148 | rb->set_option("Dithering", &result, INT, noyes, 2, NULL); | 148 | rb->set_option("Dithering", &result, INT, noyes, 2, NULL); |
@@ -463,7 +463,7 @@ void init_settings(const char* filename) | |||
463 | settings.limitfps = 1; /* Limit FPS */ | 463 | settings.limitfps = 1; /* Limit FPS */ |
464 | settings.skipframes = 1; /* Skip frames */ | 464 | settings.skipframes = 1; /* Skip frames */ |
465 | settings.resume_count = -1; | 465 | settings.resume_count = -1; |
466 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) | 466 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) |
467 | settings.displayoptions = 0; /* No visual effects */ | 467 | settings.displayoptions = 0; /* No visual effects */ |
468 | #endif | 468 | #endif |
469 | 469 | ||
@@ -479,7 +479,7 @@ void init_settings(const char* filename) | |||
479 | SETTINGS_VERSION); | 479 | SETTINGS_VERSION); |
480 | } | 480 | } |
481 | 481 | ||
482 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) | 482 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) |
483 | if ((settings.displayoptions = | 483 | if ((settings.displayoptions = |
484 | configfile_get_value(SETTINGS_FILENAME, "Display options")) < 0) | 484 | configfile_get_value(SETTINGS_FILENAME, "Display options")) < 0) |
485 | { | 485 | { |
@@ -522,7 +522,7 @@ void save_settings(void) | |||
522 | ++settings.resume_count); | 522 | ++settings.resume_count); |
523 | } | 523 | } |
524 | 524 | ||
525 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) | 525 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) |
526 | configfile_update_entry(SETTINGS_FILENAME, "Display options", | 526 | configfile_update_entry(SETTINGS_FILENAME, "Display options", |
527 | settings.displayoptions); | 527 | settings.displayoptions); |
528 | #endif | 528 | #endif |