1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef PWC_DEC23_H
14 #define PWC_DEC23_H
15
16 struct pwc_device;
17
18 struct pwc_dec23_private
19 {
20 struct mutex lock;
21
22 unsigned char last_cmd, last_cmd_valid;
23
24 unsigned int scalebits;
25 unsigned int nbitsmask, nbits;
26
27 unsigned int reservoir;
28 unsigned int nbits_in_reservoir;
29
30 const unsigned char *stream;
31 int temp_colors[16];
32
33 unsigned char table_0004_pass1[16][1024];
34 unsigned char table_0004_pass2[16][1024];
35 unsigned char table_8004_pass1[16][256];
36 unsigned char table_8004_pass2[16][256];
37 unsigned int table_subblock[256][12];
38
39 unsigned char table_bitpowermask[8][256];
40 unsigned int table_d800[256];
41 unsigned int table_dc00[256];
42
43 };
44
45 void pwc_dec23_init(struct pwc_device *pdev, const unsigned char *cmd);
46 void pwc_dec23_decompress(struct pwc_device *pdev,
47 const void *src,
48 void *dst);
49 #endif