From 75f2629778a55d5b59ecb57e326879964610b063 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Sat, 2 May 2009 02:39:13 +0000 Subject: 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 --- apps/plugins/lib/SOURCES | 1 + apps/plugins/lib/feature_wrappers.h | 2 ++ apps/plugins/lib/pluginlib_jpeg_load.c | 27 +++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 apps/plugins/lib/pluginlib_jpeg_load.c (limited to 'apps') 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 */ #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 52750acb61..22ce779fcd 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 0000000000..fdf1f939ec --- /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 +#include "wrappers.h" + +#include "../../recorder/jpeg_load.c" -- cgit v1.2.3