summaryrefslogtreecommitdiff
path: root/src/lzw.h
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-04-03 10:03:18 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-04-04 09:36:04 +0100
commit8c42f9f934005ba40645ba326b74c8f8b0675df2 (patch)
treebc0989ad99f8119fc348ce27496b8b4a2e2f1b18 /src/lzw.h
parentfe2a38686946c708c2e52031459673a10db41dc8 (diff)
downloadlibnsgif-8c42f9f934005ba40645ba326b74c8f8b0675df2.tar.gz
libnsgif-8c42f9f934005ba40645ba326b74c8f8b0675df2.tar.bz2
New LZW decoder: Routine to extract LZW codes from GIF sub-block sequences.
Diffstat (limited to 'src/lzw.h')
-rw-r--r--src/lzw.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lzw.h b/src/lzw.h
new file mode 100644
index 0000000..0683ad0
--- /dev/null
+++ b/src/lzw.h
@@ -0,0 +1,28 @@
+/*
+ * This file is part of NetSurf's LibNSGIF, http://www.netsurf-browser.org/
+ * Licensed under the MIT License,
+ * http://www.opensource.org/licenses/mit-license.php
+ *
+ * Copyright 2017 Michael Drake <michael.drake@codethink.co.uk>
+ */
+
+#ifndef LZW_H_
+#define LZW_H_
+
+/**
+ * \file
+ * \brief LZW decompression (interface)
+ *
+ * Decoder for GIF LZW data.
+ */
+
+
+/** LZW decoding response codes */
+typedef enum lzw_result {
+ LZW_OK, /**< Success */
+ LZW_OK_EOD, /**< Success; reached zero-length sub-block */
+ LZW_NO_DATA, /**< Error: Out of data */
+} lzw_result;
+
+
+#endif