Diffstat (limited to 'noncore/apps/opie-reader/ppm_expander.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ppm_expander.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/ppm_expander.h b/noncore/apps/opie-reader/ppm_expander.h index a1a3b60..ccc89c2 100644 --- a/noncore/apps/opie-reader/ppm_expander.h +++ b/noncore/apps/opie-reader/ppm_expander.h | |||
@@ -1,52 +1,51 @@ | |||
1 | #ifndef __ppm_expander_h | 1 | #ifndef __ppm_expander_h |
2 | #define __ppm_expander_h | 2 | #define __ppm_expander_h |
3 | 3 | ||
4 | #include "useqpe.h" | ||
5 | #include "CExpander.h" | 4 | #include "CExpander.h" |
6 | #include <sys/stat.h> | 5 | #include <sys/stat.h> |
7 | 6 | ||
8 | 7 | ||
9 | #include "utypes.h" | 8 | #include "utypes.h" |
10 | #include "ppm.h" | 9 | #include "ppm.h" |
11 | #include "arith.h" | 10 | #include "arith.h" |
12 | 11 | ||
13 | 12 | ||
14 | #define SYM_EOF 256 | 13 | #define SYM_EOF 256 |
15 | 14 | ||
16 | class ppm_expander : public CExpander { | 15 | class ppm_expander : public CExpander { |
17 | UCHAR *buf_in,*buf_out; | 16 | UCHAR *buf_in,*buf_out; |
18 | unsigned int bufsize; | 17 | unsigned int bufsize; |
19 | unsigned int outbytes; | 18 | unsigned int outbytes; |
20 | unsigned long blocksize; | 19 | unsigned long blocksize; |
21 | unsigned short numblocks; | 20 | unsigned short numblocks; |
22 | unsigned short curblock; | 21 | unsigned short curblock; |
23 | unsigned short maxnode; | 22 | unsigned short maxnode; |
24 | bool needppmend; | 23 | bool needppmend; |
25 | int home(); | 24 | int home(); |
26 | FILE* my_file_in; | 25 | FILE* my_file_in; |
27 | PPM_ReadBuf* my_read_buf; | 26 | PPM_ReadBuf* my_read_buf; |
28 | ppm_worker ppm; | 27 | ppm_worker ppm; |
29 | public: | 28 | public: |
30 | QString about() { return QString("ppms Codec (c) Tim Wentford\nCompression code (c) Fabrice Bellard"); } | 29 | QString about() { return QString("ppms Codec (c) Tim Wentford\nCompression code (c) Fabrice Bellard"); } |
31 | #ifdef USEQPE | 30 | #ifdef USEQPE |
32 | void suspend() | 31 | void suspend() |
33 | { | 32 | { |
34 | CExpander::suspend(my_file_in); | 33 | CExpander::suspend(my_file_in); |
35 | } | 34 | } |
36 | void unsuspend() | 35 | void unsuspend() |
37 | { | 36 | { |
38 | CExpander::unsuspend(my_file_in); | 37 | CExpander::unsuspend(my_file_in); |
39 | } | 38 | } |
40 | #endif | 39 | #endif |
41 | ppm_expander() : needppmend(false), my_file_in(NULL), my_read_buf(NULL) | 40 | ppm_expander() : needppmend(false), my_file_in(NULL), my_read_buf(NULL) |
42 | { | 41 | { |
43 | bufsize = 1024; | 42 | bufsize = 1024; |
44 | buf_in = new UCHAR[bufsize]; | 43 | buf_in = new UCHAR[bufsize]; |
45 | buf_out = new UCHAR[bufsize]; | 44 | buf_out = new UCHAR[bufsize]; |
46 | outbytes = 0; | 45 | outbytes = 0; |
47 | } | 46 | } |
48 | int OpenFile(const char* infile); | 47 | int OpenFile(const char* infile); |
49 | int getch(); | 48 | int getch(); |
50 | void locate(unsigned short block, unsigned int n); | 49 | void locate(unsigned short block, unsigned int n); |
51 | virtual ~ppm_expander(); | 50 | virtual ~ppm_expander(); |
52 | unsigned int locate() { return outbytes; } | 51 | unsigned int locate() { return outbytes; } |