diff options
| author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-06 04:53:56 +0000 |
|---|---|---|
| committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-06 04:53:56 +0000 |
| commit | eef7945a970e4da69b95c638a44a8ee1a9205430 (patch) | |
| tree | ec015938370aaa6e84d3652f914c1766a963582d /apps/plugin.c | |
| parent | f779160de53686e45f57fad882a6d8f8db6360fd (diff) | |
| download | rockbox-eef7945a970e4da69b95c638a44a8ee1a9205430.zip rockbox-eef7945a970e4da69b95c638a44a8ee1a9205430.tar.gz rockbox-eef7945a970e4da69b95c638a44a8ee1a9205430.tar.bz2 rockbox-eef7945a970e4da69b95c638a44a8ee1a9205430.tar.xz | |
Move YUV->RGB in JPEG load from before scaler to after scaler. Required change to struct custom_format, so sorted the plugin API as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20856 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 2d996a4..f079e84 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -135,11 +135,18 @@ static const struct plugin_api rockbox_api = { lcd_blit_mono, lcd_blit_grey_phase, #endif /* LCD_DEPTH */ +#if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) + lcd_blit_pal256, + lcd_pal256_update_pal, +#endif lcd_puts_style, lcd_puts_scroll_style, #ifdef HAVE_LCD_INVERT lcd_set_invert_display, #endif /* HAVE_LCD_INVERT */ +#if defined(HAVE_LCD_MODES) + lcd_set_mode, +#endif #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) lcd_activation_set_hook, &button_queue, @@ -571,6 +578,11 @@ static const struct plugin_api rockbox_api = { #endif #ifdef HAVE_LCD_BITMAP read_bmp_file, + read_bmp_fd, +#ifdef HAVE_JPEG + read_jpeg_file, + read_jpeg_fd, +#endif screen_dump_set_hook, #endif show_logo, @@ -632,24 +644,6 @@ static const struct plugin_api rockbox_api = { appsversion, /* new stuff at the end, sort into place next time the API gets incompatible */ - -#if defined(HAVE_LCD_MODES) - lcd_set_mode, -#endif - -#if defined(HAVE_LCD_MODES) -#if HAVE_LCD_MODES & LCD_MODE_PAL256 - lcd_blit_pal256, - lcd_pal256_update_pal, -#endif -#endif -#ifdef HAVE_LCD_BITMAP -#ifdef HAVE_JPEG - read_jpeg_file, - read_jpeg_fd, -#endif - read_bmp_fd, -#endif }; int plugin_load(const char* plugin, const void* parameter) |