… | |
… | |
16 | along with this program; if not, write to the Free Software |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 | */ |
18 | */ |
19 | |
19 | |
20 | #include "config.h" |
20 | #include "config.h" |
|
|
21 | #include "compat.h" |
|
|
22 | |
21 | #include <stdlib.h> |
23 | #include <stdlib.h> |
22 | |
24 | |
23 | #include "data.h" |
|
|
24 | #include "parse_routines.h" |
25 | #include "parse_routines.h" |
|
|
26 | #include "error.h" |
|
|
27 | |
|
|
28 | #ifdef DMALLOC |
|
|
29 | #include <dmalloc.h> |
|
|
30 | #endif |
|
|
31 | |
25 | |
32 | |
26 | int psiconv_parse_jumptable_section(const psiconv_buffer buf,int lev, |
33 | int psiconv_parse_jumptable_section(const psiconv_buffer buf,int lev, |
27 | psiconv_u32 off, int *length, |
34 | psiconv_u32 off, int *length, |
28 | psiconv_jumptable_section *result) |
35 | psiconv_jumptable_section *result) |
29 | { |
36 | { |
… | |
… | |
73 | else |
80 | else |
74 | return res; |
81 | return res; |
75 | } |
82 | } |
76 | |
83 | |
77 | static int decode_byte(int lev, psiconv_u32 off, |
84 | static int decode_byte(int lev, psiconv_u32 off, |
78 | psiconv_paint_data_section data, int *pixelnr, |
85 | psiconv_paint_data_section data, psiconv_u32 *pixelnr, |
79 | psiconv_u8 byte, int bits_per_pixel, int linelen, |
86 | psiconv_u8 byte, int bits_per_pixel, int linelen, |
80 | int *linepos,int picsize) |
87 | int *linepos,int picsize) |
81 | { |
88 | { |
82 | int mask = (bits_per_pixel << 1) -1; |
89 | int mask = (bits_per_pixel << 1) -1; |
83 | int i; |
90 | int i; |