summaryrefslogtreecommitdiffstats
path: root/apps/plugins/imageviewer/png/tinf.h
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2010-10-31 12:40:49 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2010-10-31 12:40:49 +0000
commite26d0c62e07d1b1c1087a065242ed7ab1a2c522f (patch)
treeb1e27ee113a94784233ca7aaf5b9d670f303b332 /apps/plugins/imageviewer/png/tinf.h
parentc8901b3506ffb2f18798b005552c61b92b9d6a6c (diff)
downloadrockbox-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.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 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Original source:
+ * Copyright (c) 2003 by Joergen Ibsen / Jibz
+ *
+ * Rockbox adaptation:
+ * Copyright (c) 2010 by Marcin Bukat
+ *
+ * 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.
+ *
+ ****************************************************************************/
+
+/*
+ * tinf - tiny inflate library (inflate, gzip, zlib)
+ *
+ * version 1.00
+ *
+ * Copyright (c) 2003 by Joergen Ibsen / Jibz
+ * All Rights Reserved
+ *
+ * http://www.ibsensoftware.com/
+ */
+
+/* removed from original file:
+ * tinf_gzip_uncompress() prototype
+ * tinf_init() prototype
+ */
+
+#ifndef TINF_H_INCLUDED
+#define TINF_H_INCLUDED
+
+/* calling convention */
+#ifndef TINFCC
+ #ifdef __WATCOMC__
+ #define TINFCC __cdecl
+ #else
+ #define TINFCC
+ #endif
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define TINF_OK 0
+#define TINF_DATA_ERROR (-3)
+
+/* function prototypes */
+
+int TINFCC tinf_uncompress(void *dest, unsigned int *destLen,
+ const void *source, unsigned int sourceLen);
+
+int TINFCC tinf_zlib_uncompress(void *dest, unsigned int *destLen,
+ const void *source, unsigned int sourceLen);
+
+unsigned int TINFCC tinf_adler32(const void *data, unsigned int length);
+
+unsigned int TINFCC tinf_crc32(const void *data, unsigned int length);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /* TINF_H_INCLUDED */