summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-07-15 22:02:42 +0000
committerJens Arnold <amiconn@rockbox.org>2009-07-15 22:02:42 +0000
commit27f5cdaad81f419570f7e23e5db0026c97d78ecd (patch)
treea7228cb0dfd19c5b23c5e157d2bce9fae19378e4
parent0d484bad5e12c56c9a25e3a58c14a5cbfefb4c12 (diff)
downloadrockbox-27f5cdaad81f419570f7e23e5db0026c97d78ecd.zip
rockbox-27f5cdaad81f419570f7e23e5db0026c97d78ecd.tar.gz
rockbox-27f5cdaad81f419570f7e23e5db0026c97d78ecd.tar.bz2
rockbox-27f5cdaad81f419570f7e23e5db0026c97d78ecd.tar.xz
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.c3
-rw-r--r--apps/plugin.h7
-rw-r--r--apps/plugins/mpegplayer/mpeg_settings.h2
3 files changed, 7 insertions, 5 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index b8c4efd..84200bb 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -129,7 +129,8 @@ static const struct plugin_api rockbox_api = {
#if MEMORYSIZE > 2
lcd_blit_yuv,
#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) \
- || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) || defined(SANSA_FUZE) || defined(SANSA_E200V2)
+ || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) \
+ || defined(SANSA_FUZE) || defined(SANSA_E200V2) || defined(TOSHIBA_GIGABEAT_S)
lcd_yuv_set_options,
#endif
#endif /* MEMORYSIZE > 2 */
diff --git a/apps/plugin.h b/apps/plugin.h
index 35b2105..74daa2a 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -129,12 +129,12 @@ void* plugin_get_buffer(size_t *buffer_size);
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 161
+#define PLUGIN_API_VERSION 162
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */
-#define PLUGIN_MIN_API_VERSION 161
+#define PLUGIN_MIN_API_VERSION 162
/* plugin return codes */
enum plugin_status {
@@ -212,7 +212,8 @@ struct plugin_api {
int src_x, int src_y, int stride,
int x, int y, int width, int height);
#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) \
- || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) || defined(SANSA_FUZE) || defined(SANSA_E200V2)
+ || defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) \
+ || defined(SANSA_FUZE) || defined(SANSA_E200V2) || defined(TOSHIBA_GIGABEAT_S)
void (*lcd_yuv_set_options)(unsigned options);
#endif
#endif /* MEMORYSIZE > 2 */
diff --git a/apps/plugins/mpegplayer/mpeg_settings.h b/apps/plugins/mpegplayer/mpeg_settings.h
index 81a43fa..fa50176 100644
--- a/apps/plugins/mpegplayer/mpeg_settings.h
+++ b/apps/plugins/mpegplayer/mpeg_settings.h
@@ -7,7 +7,7 @@
#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) \
|| defined(IRIVER_H10) || defined(COWON_D2) || defined(PHILIPS_HDD1630) \
- || defined(SANSA_FUZE) || defined(SANSA_E200V2)
+ || defined(SANSA_FUZE) || defined(SANSA_E200V2) || defined(TOSHIBA_GIGABEAT_S)
#define MPEG_OPTION_DITHERING_ENABLED 1
#endif