summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-05-01 23:24:23 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-05-01 23:24:23 +0000
commit60d420938372477226184fb9012de7f6b4ea2d83 (patch)
tree086926f469d87635a483bfff55ea50898bdd0e1c /apps/plugin.h
parentb22516f995ef4a448251b883b0737d4aa0abdb84 (diff)
downloadrockbox-60d420938372477226184fb9012de7f6b4ea2d83.zip
rockbox-60d420938372477226184fb9012de7f6b4ea2d83.tar.gz
rockbox-60d420938372477226184fb9012de7f6b4ea2d83.tar.bz2
rockbox-60d420938372477226184fb9012de7f6b4ea2d83.tar.xz
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.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index d38cc42..ab570d4 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -79,6 +79,9 @@ void* plugin_get_buffer(size_t *buffer_size);
#ifdef HAVE_LCD_BITMAP
#include "screendump.h"
#include "scrollbar.h"
+#if LCD_DEPTH > 1
+#include "jpeg_load.h"
+#endif
#include "../recorder/bmp.h"
#endif
#include "statusbar.h"
@@ -128,7 +131,7 @@ 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 147
+#define PLUGIN_API_VERSION 148
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -802,6 +805,11 @@ struct plugin_api {
void (*lcd_pal256_update_pal)(fb_data *palette);
#endif
#endif
+
+#if defined(HAVE_LCD_BITMAP) && LCD_DEPTH > 1
+ int (*read_jpeg_file)(const char* filename, struct bitmap *bm, int maxsize,
+ int format, const struct custom_format *cformat);
+#endif
};
/* plugin header */