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/recorder/jpeg_load.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 apps/recorder/jpeg_load.h (limited to 'apps/recorder/jpeg_load.h') diff --git a/apps/recorder/jpeg_load.h b/apps/recorder/jpeg_load.h new file mode 100644 index 0000000000..73b6c51bf3 --- /dev/null +++ b/apps/recorder/jpeg_load.h @@ -0,0 +1,47 @@ +/*************************************************************************** +* __________ __ ___. +* Open \______ \ ____ ____ | | _\_ |__ _______ ___ +* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +* \/ \/ \/ \/ \/ +* $Id$ +* +* JPEG image viewer +* (This is a real mess if it has to be coded in one single C file) +* +* File scrolling addition (C) 2005 Alexander Spyridakis +* Copyright (C) 2004 Jörg Hohensohn aka [IDC]Dragon +* Heavily borrowed from the IJG implementation (C) Thomas G. Lane +* Small & fast downscaling IDCT (C) 2002 by Guido Vollbeding JPEGclub.org +* +* 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 "resize.h" +#include "bmp.h" +#include "jpeg_common.h" + +#ifndef _JPEG_LOAD_H +#define _JPEG_LOAD_H + +int read_jpeg_file(const char* filename, + struct bitmap *bm, + int maxsize, + int format, + const struct custom_format *cformat); + +int read_jpeg_fd(int fd, + struct bitmap *bm, + int maxsize, + int format, + const struct custom_format *cformat); + +#endif /* _JPEG_JPEG_DECODER_H */ -- cgit v1.2.3