11 #define MSPACK_KWAJ_H 1
16 #define kwajh_Signature1 (0x00)
17 #define kwajh_Signature2 (0x04)
18 #define kwajh_CompMethod (0x08)
19 #define kwajh_DataOffset (0x0a)
20 #define kwajh_Flags (0x0c)
21 #define kwajh_SIZEOF (0x0e)
47 #define KWAJ_INPUT_SIZE (2048)
50 #define KWAJ_TABLEBITS (9)
53 #define KWAJ_MATCHLEN1_SYMS (16)
54 #define KWAJ_MATCHLEN2_SYMS (16)
55 #define KWAJ_LITLEN_SYMS (32)
56 #define KWAJ_OFFSET_SYMS (64)
57 #define KWAJ_LITERAL_SYMS (256)
60 #define KWAJ_TABLESIZE (1 << KWAJ_TABLEBITS)
61 #if KWAJ_TABLESIZE < (KWAJ_MATCHLEN1_SYMS * 2)
62 # define KWAJ_MATCHLEN1_TBLSIZE (KWAJ_MATCHLEN1_SYMS * 4)
64 # define KWAJ_MATCHLEN1_TBLSIZE (KWAJ_TABLESIZE + (KWAJ_MATCHLEN1_SYMS * 2))
66 #if KWAJ_TABLESIZE < (KWAJ_MATCHLEN2_SYMS * 2)
67 # define KWAJ_MATCHLEN2_TBLSIZE (KWAJ_MATCHLEN2_SYMS * 4)
69 # define KWAJ_MATCHLEN2_TBLSIZE (KWAJ_TABLESIZE + (KWAJ_MATCHLEN2_SYMS * 2))
71 #if KWAJ_TABLESIZE < (KWAJ_LITLEN_SYMS * 2)
72 # define KWAJ_LITLEN_TBLSIZE (KWAJ_LITLEN_SYMS * 4)
74 # define KWAJ_LITLEN_TBLSIZE (KWAJ_TABLESIZE + (KWAJ_LITLEN_SYMS * 2))
76 #if KWAJ_TABLESIZE < (KWAJ_OFFSET_SYMS * 2)
77 # define KWAJ_OFFSET_TBLSIZE (KWAJ_OFFSET_SYMS * 4)
79 # define KWAJ_OFFSET_TBLSIZE (KWAJ_TABLESIZE + (KWAJ_OFFSET_SYMS * 2))
81 #if KWAJ_TABLESIZE < (KWAJ_LITERAL_SYMS * 2)
82 # define KWAJ_LITERAL_TBLSIZE (KWAJ_LITERAL_SYMS * 4)
84 # define KWAJ_LITERAL_TBLSIZE (KWAJ_TABLESIZE + (KWAJ_LITERAL_SYMS * 2))
#define KWAJ_OFFSET_TBLSIZE
#define KWAJ_LITERAL_SYMS
#define KWAJ_MATCHLEN2_SYMS
#define KWAJ_MATCHLEN2_TBLSIZE
#define KWAJ_LITLEN_TBLSIZE
#define KWAJ_MATCHLEN1_SYMS
#define KWAJ_MATCHLEN1_TBLSIZE
#define KWAJ_LITERAL_TBLSIZE
unsigned short MATCHLEN1_table[KWAJ_MATCHLEN1_TBLSIZE]
unsigned short LITLEN_table[KWAJ_LITLEN_TBLSIZE]
struct mspack_file * output
struct mspack_file * input
unsigned char LITERAL_len[KWAJ_LITERAL_SYMS]
unsigned short OFFSET_table[KWAJ_OFFSET_TBLSIZE]
unsigned short MATCHLEN2_table[KWAJ_MATCHLEN2_TBLSIZE]
unsigned char MATCHLEN1_len[KWAJ_MATCHLEN1_SYMS]
unsigned char LITLEN_len[KWAJ_LITLEN_SYMS]
struct mspack_system * sys
unsigned char MATCHLEN2_len[KWAJ_MATCHLEN2_SYMS]
unsigned char inbuf[KWAJ_INPUT_SIZE]
unsigned short LITERAL_table[KWAJ_LITERAL_TBLSIZE]
unsigned char OFFSET_len[KWAJ_OFFSET_SYMS]
struct mskwaj_compressor base
struct mspack_system * system
struct mskwaj_decompressor base
struct mspack_system * system