summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-05-02 02:39:13 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-05-02 02:39:13 +0000
commit75f2629778a55d5b59ecb57e326879964610b063 (patch)
treeda07401068862011c267dac3db21850a3e1c9677 /apps
parentb40878043c521c82a8c5d1ca603180fd112d50d6 (diff)
downloadrockbox-75f2629778a55d5b59ecb57e326879964610b063.tar.gz
rockbox-75f2629778a55d5b59ecb57e326879964610b063.zip
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')
-rw-r--r--apps/plugins/lib/SOURCES1
-rw-r--r--apps/plugins/lib/feature_wrappers.h2
-rw-r--r--apps/plugins/lib/pluginlib_jpeg_load.c27
3 files changed, 30 insertions, 0 deletions
diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES
index ba8956a8e4..7dda416a87 100644
--- a/apps/plugins/lib/SOURCES
+++ b/apps/plugins/lib/SOURCES
@@ -12,6 +12,7 @@ buflib.c
12*/ 12*/
13#if LCD_DEPTH == 1 13#if LCD_DEPTH == 1
14pluginlib_resize.c 14pluginlib_resize.c
15pluginlib_jpeg_load.c
15#endif 16#endif
16grey_core.c 17grey_core.c
17grey_draw.c 18grey_draw.c
diff --git a/apps/plugins/lib/feature_wrappers.h b/apps/plugins/lib/feature_wrappers.h
index 52750acb61..22ce779fcd 100644
--- a/apps/plugins/lib/feature_wrappers.h
+++ b/apps/plugins/lib/feature_wrappers.h
@@ -32,6 +32,8 @@
32 */ 32 */
33#ifdef HAVE_ALBUMART 33#ifdef HAVE_ALBUMART
34#define search_albumart_files rb->search_albumart_files 34#define search_albumart_files rb->search_albumart_files
35#define read_jpeg_file rb->read_jpeg_file
36#define read_jpeg_fd rb->read_jpeg_fd
35#endif 37#endif
36 38
37/* This should only be used when loading scaled bitmaps, or using custom output 39/* 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 0000000000..fdf1f939ec
--- /dev/null
+++ b/apps/plugins/lib/pluginlib_jpeg_load.c
@@ -0,0 +1,27 @@
1/***************************************************************************
2* __________ __ ___.
3* Open \______ \ ____ ____ | | _\_ |__ _______ ___
4* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7* \/ \/ \/ \/ \/
8* $Id$
9*
10* Copyright (C) 2009 by Andrew Mahone
11*
12* This is a wrapper for the core jpeg_load.c
13*
14* This program is free software; you can redistribute it and/or
15* modify it under the terms of the GNU General Public License
16* as published by the Free Software Foundation; either version 2
17* of the License, or (at your option) any later version.
18*
19* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20* KIND, either express or implied.
21*
22****************************************************************************/
23
24#include <plugin.h>
25#include "wrappers.h"
26
27#include "../../recorder/jpeg_load.c"