summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/png/tinf.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/imageviewer/png/tinf.h')
-rw-r--r--apps/plugins/imageviewer/png/tinf.h77
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
55extern "C" {
56#endif
57
58#define TINF_OK 0
59#define TINF_DATA_ERROR (-3)
60
61/* function prototypes */
62
63int TINFCC tinf_uncompress(void *dest, unsigned int *destLen,
64 const void *source, unsigned int sourceLen);
65
66int TINFCC tinf_zlib_uncompress(void *dest, unsigned int *destLen,
67 const void *source, unsigned int sourceLen);
68
69unsigned int TINFCC tinf_adler32(const void *data, unsigned int length);
70
71unsigned 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 */