summaryrefslogtreecommitdiff
path: root/3dc/win95/huffman.hpp
diff options
context:
space:
mode:
authorRebellion Developments <rebellion@nomail>2000-03-16 11:25:00 +0100
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-19 05:45:17 +0200
commit218ca90543758a20ac326e444ca0643174ca7384 (patch)
tree16bfe3e5307f9f515489000f28728224291a0e3b /3dc/win95/huffman.hpp
Import Aliens vs Predator - Gold (Build 116)
Source code release, imported from: https://www.gamefront.com/games/aliens-vs-predator-3/file/avp-gold-complete-source-code All text files were converted to Unix format.
Diffstat (limited to '3dc/win95/huffman.hpp')
-rw-r--r--3dc/win95/huffman.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/3dc/win95/huffman.hpp b/3dc/win95/huffman.hpp
new file mode 100644
index 0000000..58faf2a
--- /dev/null
+++ b/3dc/win95/huffman.hpp
@@ -0,0 +1,31 @@
+#ifndef _huffman_hpp_included
+#define _huffman_hpp_included 1
+
+#ifdef __cplusplus
+ extern "C"
+ {
+#endif
+
+#define MAX_DEPTH 11
+typedef struct
+{
+ char Identifier[8];
+ int CompressedDataSize;
+ int UncompressedDataSize;
+ int CodelengthCount[MAX_DEPTH];
+ unsigned char ByteAssignment[256];
+} HuffmanPackage;
+
+/* KJL 17:16:03 17/09/98 - Compression */
+extern HuffmanPackage *HuffmanCompression(unsigned char *sourcePtr, int length);
+
+/* KJL 16:53:53 19/09/98 - Decompression */
+extern char *HuffmanDecompress(HuffmanPackage *inpackage);
+
+
+#define COMPRESSED_RIF_IDENTIFIER "REBCRIF1"
+#ifdef __cplusplus
+ };
+#endif
+
+#endif \ No newline at end of file