1 #ifndef _huffman_hpp_included 2 #define _huffman_hpp_included 1 3 4 #ifdef __cplusplus 5 extern "C" 6 { 7 #endif 8 9 #define MAX_DEPTH 11 10 11 typedef struct 12 { 13 char Identifier[8]; 14 int CompressedDataSize; 15 int UncompressedDataSize; 16 int CodelengthCount[MAX_DEPTH]; 17 unsigned char ByteAssignment[256]; 18 } HuffmanPackage; 19 20 21 /* KJL 17:16:03 17/09/98 - Compression */ 22 extern HuffmanPackage *HuffmanCompression(unsigned char *sourcePtr, int length); 23 24 /* KJL 16:53:53 19/09/98 - Decompression */ 25 extern char *HuffmanDecompress(const HuffmanPackage *inpackage); 26 27 28 #define COMPRESSED_RIF_IDENTIFIER "REBCRIF1" 29 #ifdef __cplusplus 30 }; 31 #endif 32 33 #endif 34