From 60d420938372477226184fb9012de7f6b4ea2d83 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Fri, 1 May 2009 23:24:23 +0000 Subject: 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 --- apps/plugin.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'apps/plugin.h') 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); #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 */ -- cgit v1.2.3