From 27f5cdaad81f419570f7e23e5db0026c97d78ecd Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 15 Jul 2009 22:02:42 +0000 Subject: [PATCH] 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 --- apps/plugin.c | 3 ++- apps/plugin.h | 7 ++++--- 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 = { #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 35b2105c17..74daa2a67b 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 81a43fa2d7..fa50176161 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