diff options
| author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-02 02:39:13 +0000 |
|---|---|---|
| committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-05-02 02:39:13 +0000 |
| commit | 75f2629778a55d5b59ecb57e326879964610b063 (patch) | |
| tree | da07401068862011c267dac3db21850a3e1c9677 /apps/plugins | |
| parent | b40878043c521c82a8c5d1ca603180fd112d50d6 (diff) | |
| download | rockbox-75f2629778a55d5b59ecb57e326879964610b063.zip rockbox-75f2629778a55d5b59ecb57e326879964610b063.tar.gz rockbox-75f2629778a55d5b59ecb57e326879964610b063.tar.bz2 rockbox-75f2629778a55d5b59ecb57e326879964610b063.tar.xz | |
Add read_jpeg_* to feature_wrappers.h, add import-from-core for jpeg_load.c on mono targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20839 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/lib/SOURCES | 1 | ||||
| -rw-r--r-- | apps/plugins/lib/feature_wrappers.h | 2 | ||||
| -rw-r--r-- | apps/plugins/lib/pluginlib_jpeg_load.c | 27 |
3 files changed, 30 insertions, 0 deletions
diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES index ba8956a..7dda416 100644 --- a/apps/plugins/lib/SOURCES +++ b/apps/plugins/lib/SOURCES @@ -12,6 +12,7 @@ buflib.c */ #if LCD_DEPTH == 1 pluginlib_resize.c +pluginlib_jpeg_load.c #endif grey_core.c grey_draw.c diff --git a/apps/plugins/lib/feature_wrappers.h b/apps/plugins/lib/feature_wrappers.h index 52750ac..22ce779 100644 --- a/apps/plugins/lib/feature_wrappers.h +++ b/apps/plugins/lib/feature_wrappers.h @@ -32,6 +32,8 @@ */ #ifdef HAVE_ALBUMART #define search_albumart_files rb->search_albumart_files +#define read_jpeg_file rb->read_jpeg_file +#define read_jpeg_fd rb->read_jpeg_fd #endif /* This should only be used when loading scaled bitmaps, or using custom output diff --git a/apps/plugins/lib/pluginlib_jpeg_load.c b/apps/plugins/lib/pluginlib_jpeg_load.c new file mode 100644 index 0000000..fdf1f93 --- /dev/null +++ b/apps/plugins/lib/pluginlib_jpeg_load.c @@ -0,0 +1,27 @@ +/*************************************************************************** +* __________ __ ___. +* Open \______ \ ____ ____ | | _\_ |__ _______ ___ +* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +* \/ \/ \/ \/ \/ +* $Id$ +* +* Copyright (C) 2009 by Andrew Mahone +* +* This is a wrapper for the core jpeg_load.c +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY +* KIND, either express or implied. +* +****************************************************************************/ + +#include <plugin.h> +#include "wrappers.h" + +#include "../../recorder/jpeg_load.c" |