diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-10-31 12:40:49 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-10-31 12:40:49 +0000 |
commit | e26d0c62e07d1b1c1087a065242ed7ab1a2c522f (patch) | |
tree | b1e27ee113a94784233ca7aaf5b9d670f303b332 /apps/plugins/imageviewer/png/tinf.h | |
parent | c8901b3506ffb2f18798b005552c61b92b9d6a6c (diff) | |
download | rockbox-e26d0c62e07d1b1c1087a065242ed7ab1a2c522f.tar.gz rockbox-e26d0c62e07d1b1c1087a065242ed7ab1a2c522f.zip |
Fix and extend imageviewer png support. FS#11641 by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28413 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/imageviewer/png/tinf.h')
-rw-r--r-- | apps/plugins/imageviewer/png/tinf.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/apps/plugins/imageviewer/png/tinf.h b/apps/plugins/imageviewer/png/tinf.h new file mode 100644 index 0000000000..645bdb7d5a --- /dev/null +++ b/apps/plugins/imageviewer/png/tinf.h | |||
@@ -0,0 +1,77 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Original source: | ||
11 | * Copyright (c) 2003 by Joergen Ibsen / Jibz | ||
12 | * | ||
13 | * Rockbox adaptation: | ||
14 | * Copyright (c) 2010 by Marcin Bukat | ||
15 | * | ||
16 | * This program is free software; you can redistribute it and/or | ||
17 | * modify it under the terms of the GNU General Public License | ||
18 | * as published by the Free Software Foundation; either version 2 | ||
19 | * of the License, or (at your option) any later version. | ||
20 | * | ||
21 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
22 | * KIND, either express or implied. | ||
23 | * | ||
24 | ****************************************************************************/ | ||
25 | |||
26 | /* | ||
27 | * tinf - tiny inflate library (inflate, gzip, zlib) | ||
28 | * | ||
29 | * version 1.00 | ||
30 | * | ||
31 | * Copyright (c) 2003 by Joergen Ibsen / Jibz | ||
32 | * All Rights Reserved | ||
33 | * | ||
34 | * http://www.ibsensoftware.com/ | ||
35 | */ | ||
36 | |||
37 | /* removed from original file: | ||
38 | * tinf_gzip_uncompress() prototype | ||
39 | * tinf_init() prototype | ||
40 | */ | ||
41 | |||
42 | #ifndef TINF_H_INCLUDED | ||
43 | #define TINF_H_INCLUDED | ||
44 | |||
45 | /* calling convention */ | ||
46 | #ifndef TINFCC | ||
47 | #ifdef __WATCOMC__ | ||
48 | #define TINFCC __cdecl | ||
49 | #else | ||
50 | #define TINFCC | ||
51 | #endif | ||
52 | #endif | ||
53 | |||
54 | #ifdef __cplusplus | ||
55 | extern "C" { | ||
56 | #endif | ||
57 | |||
58 | #define TINF_OK 0 | ||
59 | #define TINF_DATA_ERROR (-3) | ||
60 | |||
61 | /* function prototypes */ | ||
62 | |||
63 | int TINFCC tinf_uncompress(void *dest, unsigned int *destLen, | ||
64 | const void *source, unsigned int sourceLen); | ||
65 | |||
66 | int TINFCC tinf_zlib_uncompress(void *dest, unsigned int *destLen, | ||
67 | const void *source, unsigned int sourceLen); | ||
68 | |||
69 | unsigned int TINFCC tinf_adler32(const void *data, unsigned int length); | ||
70 | |||
71 | unsigned int TINFCC tinf_crc32(const void *data, unsigned int length); | ||
72 | |||
73 | #ifdef __cplusplus | ||
74 | } /* extern "C" */ | ||
75 | #endif | ||
76 | |||
77 | #endif /* TINF_H_INCLUDED */ | ||