diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-01 23:24:23 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-01 23:24:23 +0000 |
commit | 60d420938372477226184fb9012de7f6b4ea2d83 (patch) | |
tree | 086926f469d87635a483bfff55ea50898bdd0e1c /apps/plugin.h | |
parent | b22516f995ef4a448251b883b0737d4aa0abdb84 (diff) | |
download | rockbox-60d420938372477226184fb9012de7f6b4ea2d83.tar.gz rockbox-60d420938372477226184fb9012de7f6b4ea2d83.zip |
Add core JPEG reader, adapted from the JPEG plugin's decoder, with some changes to prevent include conflicts between the two decoders.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20836 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index d38cc42ee7..ab570d473e 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -79,6 +79,9 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
79 | #ifdef HAVE_LCD_BITMAP | 79 | #ifdef HAVE_LCD_BITMAP |
80 | #include "screendump.h" | 80 | #include "screendump.h" |
81 | #include "scrollbar.h" | 81 | #include "scrollbar.h" |
82 | #if LCD_DEPTH > 1 | ||
83 | #include "jpeg_load.h" | ||
84 | #endif | ||
82 | #include "../recorder/bmp.h" | 85 | #include "../recorder/bmp.h" |
83 | #endif | 86 | #endif |
84 | #include "statusbar.h" | 87 | #include "statusbar.h" |
@@ -128,7 +131,7 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
128 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 131 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
129 | 132 | ||
130 | /* increase this every time the api struct changes */ | 133 | /* increase this every time the api struct changes */ |
131 | #define PLUGIN_API_VERSION 147 | 134 | #define PLUGIN_API_VERSION 148 |
132 | 135 | ||
133 | /* update this to latest version if a change to the api struct breaks | 136 | /* update this to latest version if a change to the api struct breaks |
134 | backwards compatibility (and please take the opportunity to sort in any | 137 | backwards compatibility (and please take the opportunity to sort in any |
@@ -802,6 +805,11 @@ struct plugin_api { | |||
802 | void (*lcd_pal256_update_pal)(fb_data *palette); | 805 | void (*lcd_pal256_update_pal)(fb_data *palette); |
803 | #endif | 806 | #endif |
804 | #endif | 807 | #endif |
808 | |||
809 | #if defined(HAVE_LCD_BITMAP) && LCD_DEPTH > 1 | ||
810 | int (*read_jpeg_file)(const char* filename, struct bitmap *bm, int maxsize, | ||
811 | int format, const struct custom_format *cformat); | ||
812 | #endif | ||
805 | }; | 813 | }; |
806 | 814 | ||
807 | /* plugin header */ | 815 | /* plugin header */ |