summaryrefslogtreecommitdiff
path: root/apps/recorder/jpeg_load.h
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-05-01 23:24:23 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-05-01 23:24:23 +0000
commit60d420938372477226184fb9012de7f6b4ea2d83 (patch)
tree086926f469d87635a483bfff55ea50898bdd0e1c /apps/recorder/jpeg_load.h
parentb22516f995ef4a448251b883b0737d4aa0abdb84 (diff)
downloadrockbox-60d420938372477226184fb9012de7f6b4ea2d83.tar.gz
rockbox-60d420938372477226184fb9012de7f6b4ea2d83.zip
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
Diffstat (limited to 'apps/recorder/jpeg_load.h')
-rw-r--r--apps/recorder/jpeg_load.h47
1 files changed, 47 insertions, 0 deletions
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 @@
1/***************************************************************************
2* __________ __ ___.
3* Open \______ \ ____ ____ | | _\_ |__ _______ ___
4* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7* \/ \/ \/ \/ \/
8* $Id$
9*
10* JPEG image viewer
11* (This is a real mess if it has to be coded in one single C file)
12*
13* File scrolling addition (C) 2005 Alexander Spyridakis
14* Copyright (C) 2004 Jörg Hohensohn aka [IDC]Dragon
15* Heavily borrowed from the IJG implementation (C) Thomas G. Lane
16* Small & fast downscaling IDCT (C) 2002 by Guido Vollbeding JPEGclub.org
17*
18* This program is free software; you can redistribute it and/or
19* modify it under the terms of the GNU General Public License
20* as published by the Free Software Foundation; either version 2
21* of the License, or (at your option) any later version.
22*
23* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
24* KIND, either express or implied.
25*
26****************************************************************************/
27
28#include "resize.h"
29#include "bmp.h"
30#include "jpeg_common.h"
31
32#ifndef _JPEG_LOAD_H
33#define _JPEG_LOAD_H
34
35int read_jpeg_file(const char* filename,
36 struct bitmap *bm,
37 int maxsize,
38 int format,
39 const struct custom_format *cformat);
40
41int read_jpeg_fd(int fd,
42 struct bitmap *bm,
43 int maxsize,
44 int format,
45 const struct custom_format *cformat);
46
47#endif /* _JPEG_JPEG_DECODER_H */