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.tar.gz rockbox-eef7945a970e4da69b95c638a44a8ee1a9205430.zip |
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 2d996a404e..f079e849bd 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -135,11 +135,18 @@ static const struct plugin_api rockbox_api = { | |||
135 | lcd_blit_mono, | 135 | lcd_blit_mono, |
136 | lcd_blit_grey_phase, | 136 | lcd_blit_grey_phase, |
137 | #endif /* LCD_DEPTH */ | 137 | #endif /* LCD_DEPTH */ |
138 | #if defined(HAVE_LCD_MODES) && (HAVE_LCD_MODES & LCD_MODE_PAL256) | ||
139 | lcd_blit_pal256, | ||
140 | lcd_pal256_update_pal, | ||
141 | #endif | ||
138 | lcd_puts_style, | 142 | lcd_puts_style, |
139 | lcd_puts_scroll_style, | 143 | lcd_puts_scroll_style, |
140 | #ifdef HAVE_LCD_INVERT | 144 | #ifdef HAVE_LCD_INVERT |
141 | lcd_set_invert_display, | 145 | lcd_set_invert_display, |
142 | #endif /* HAVE_LCD_INVERT */ | 146 | #endif /* HAVE_LCD_INVERT */ |
147 | #if defined(HAVE_LCD_MODES) | ||
148 | lcd_set_mode, | ||
149 | #endif | ||
143 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 150 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
144 | lcd_activation_set_hook, | 151 | lcd_activation_set_hook, |
145 | &button_queue, | 152 | &button_queue, |
@@ -571,6 +578,11 @@ static const struct plugin_api rockbox_api = { | |||
571 | #endif | 578 | #endif |
572 | #ifdef HAVE_LCD_BITMAP | 579 | #ifdef HAVE_LCD_BITMAP |
573 | read_bmp_file, | 580 | read_bmp_file, |
581 | read_bmp_fd, | ||
582 | #ifdef HAVE_JPEG | ||
583 | read_jpeg_file, | ||
584 | read_jpeg_fd, | ||
585 | #endif | ||
574 | screen_dump_set_hook, | 586 | screen_dump_set_hook, |
575 | #endif | 587 | #endif |
576 | show_logo, | 588 | show_logo, |
@@ -632,24 +644,6 @@ static const struct plugin_api rockbox_api = { | |||
632 | appsversion, | 644 | appsversion, |
633 | /* new stuff at the end, sort into place next time | 645 | /* new stuff at the end, sort into place next time |
634 | the API gets incompatible */ | 646 | the API gets incompatible */ |
635 | |||
636 | #if defined(HAVE_LCD_MODES) | ||
637 | lcd_set_mode, | ||
638 | #endif | ||
639 | |||
640 | #if defined(HAVE_LCD_MODES) | ||
641 | #if HAVE_LCD_MODES & LCD_MODE_PAL256 | ||
642 | lcd_blit_pal256, | ||
643 | lcd_pal256_update_pal, | ||
644 | #endif | ||
645 | #endif | ||
646 | #ifdef HAVE_LCD_BITMAP | ||
647 | #ifdef HAVE_JPEG | ||
648 | read_jpeg_file, | ||
649 | read_jpeg_fd, | ||
650 | #endif | ||
651 | read_bmp_fd, | ||
652 | #endif | ||
653 | }; | 647 | }; |
654 | 648 | ||
655 | int plugin_load(const char* plugin, const void* parameter) | 649 | int plugin_load(const char* plugin, const void* parameter) |