diff options
author | Jens Arnold <amiconn@rockbox.org> | 2009-07-15 22:02:42 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2009-07-15 22:02:42 +0000 |
commit | 27f5cdaad81f419570f7e23e5db0026c97d78ecd (patch) | |
tree | a7228cb0dfd19c5b23c5e157d2bce9fae19378e4 | |
parent | 0d484bad5e12c56c9a25e3a58c14a5cbfefb4c12 (diff) | |
download | rockbox-27f5cdaad81f419570f7e23e5db0026c97d78ecd.tar.gz rockbox-27f5cdaad81f419570f7e23e5db0026c97d78ecd.zip |
Gigabeat S can do dithered YUV blitting too, so put it into the plugin API and enable it in mpegplayer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21888 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugin.c | 3 | ||||
-rw-r--r-- | apps/plugin.h | 7 | ||||
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_settings.h | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index b8c4efdc41..84200bbf05 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -129,7 +129,8 @@ static const struct plugin_api rockbox_api = { | |||
129 | #if MEMORYSIZE > 2 | 129 | #if MEMORYSIZE > 2 |
130 | lcd_blit_yuv, | 130 | lcd_blit_yuv, |
131 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) \ | 131 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) \ |
132 | || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) || defined(SANSA_FUZE) || defined(SANSA_E200V2) | 132 | || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) \ |
133 | || defined(SANSA_FUZE) || defined(SANSA_E200V2) || defined(TOSHIBA_GIGABEAT_S) | ||
133 | lcd_yuv_set_options, | 134 | lcd_yuv_set_options, |
134 | #endif | 135 | #endif |
135 | #endif /* MEMORYSIZE > 2 */ | 136 | #endif /* MEMORYSIZE > 2 */ |
diff --git a/apps/plugin.h b/apps/plugin.h index 35b2105c17..74daa2a67b 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -129,12 +129,12 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
129 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 129 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
130 | 130 | ||
131 | /* increase this every time the api struct changes */ | 131 | /* increase this every time the api struct changes */ |
132 | #define PLUGIN_API_VERSION 161 | 132 | #define PLUGIN_API_VERSION 162 |
133 | 133 | ||
134 | /* update this to latest version if a change to the api struct breaks | 134 | /* update this to latest version if a change to the api struct breaks |
135 | backwards compatibility (and please take the opportunity to sort in any | 135 | backwards compatibility (and please take the opportunity to sort in any |
136 | new function which are "waiting" at the end of the function table) */ | 136 | new function which are "waiting" at the end of the function table) */ |
137 | #define PLUGIN_MIN_API_VERSION 161 | 137 | #define PLUGIN_MIN_API_VERSION 162 |
138 | 138 | ||
139 | /* plugin return codes */ | 139 | /* plugin return codes */ |
140 | enum plugin_status { | 140 | enum plugin_status { |
@@ -212,7 +212,8 @@ struct plugin_api { | |||
212 | int src_x, int src_y, int stride, | 212 | int src_x, int src_y, int stride, |
213 | int x, int y, int width, int height); | 213 | int x, int y, int width, int height); |
214 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) \ | 214 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) \ |
215 | || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) || defined(SANSA_FUZE) || defined(SANSA_E200V2) | 215 | || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) \ |
216 | || defined(SANSA_FUZE) || defined(SANSA_E200V2) || defined(TOSHIBA_GIGABEAT_S) | ||
216 | void (*lcd_yuv_set_options)(unsigned options); | 217 | void (*lcd_yuv_set_options)(unsigned options); |
217 | #endif | 218 | #endif |
218 | #endif /* MEMORYSIZE > 2 */ | 219 | #endif /* MEMORYSIZE > 2 */ |
diff --git a/apps/plugins/mpegplayer/mpeg_settings.h b/apps/plugins/mpegplayer/mpeg_settings.h index 81a43fa2d7..fa50176161 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.h +++ b/apps/plugins/mpegplayer/mpeg_settings.h | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) \ | 8 | #if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) \ |
9 | || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) \ | 9 | || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) \ |
10 | || defined(SANSA_FUZE) || defined(SANSA_E200V2) | 10 | || defined(SANSA_FUZE) || defined(SANSA_E200V2) || defined(TOSHIBA_GIGABEAT_S) |
11 | #define MPEG_OPTION_DITHERING_ENABLED 1 | 11 | #define MPEG_OPTION_DITHERING_ENABLED 1 |
12 | #endif | 12 | #endif |
13 | 13 | ||