summaryrefslogtreecommitdiff
path: root/3dc/win95/huffman.hpp
blob: 58faf2a3b29ac740858e468c1797294563d1cb26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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