summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/arith.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/arith.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/arith.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/noncore/apps/opie-reader/arith.h b/noncore/apps/opie-reader/arith.h
index 19ca646..59b2ea9 100644
--- a/noncore/apps/opie-reader/arith.h
+++ b/noncore/apps/opie-reader/arith.h
@@ -1,34 +1,32 @@
1/* 1/*
2 * Encodage & décodage arithmétique 2 * Encodage & décodage arithmétique
3 */ 3 */
4 4
5#ifndef ARITH_H 5#ifndef ARITH_H
6 6
7#define ARITH_H 7#define ARITH_H
8 8
9#include "utypes.h" 9#include "utypes.h"
10#include <stdio.h> 10#include <stdio.h>
11 11
12class ppm_expander;
13
12class PPM_ReadBuf 14class PPM_ReadBuf
13{ 15{
14 FILE *my_file_in; 16 FILE *my_file_in;
17 ppm_expander* parent;
15public: 18public:
16 PPM_ReadBuf(FILE* f) : my_file_in(f) {} 19 PPM_ReadBuf(FILE* f, ppm_expander* _parent) : my_file_in(f), parent(_parent) {}
17 UINT readbuf(UCHAR *buf,UINT len) 20 UINT readbuf(UCHAR *buf,UINT len);
18 {
19 UINT len1;
20 len1=fread(buf,1,len,my_file_in);
21 return len1;
22 }
23}; 21};
24 22
25class ArithClass 23class ArithClass
26{ 24{
27 25
28UCHAR *ainbuf; 26UCHAR *ainbuf;
29UCHAR *apinbuf,*aendinbuf; 27UCHAR *apinbuf,*aendinbuf;
30UINT ainbufsize; 28UINT ainbufsize;
31USHORT avalue,alow,ahigh; 29USHORT avalue,alow,ahigh;
32PPM_ReadBuf* areadbuf; 30PPM_ReadBuf* areadbuf;
33UCHAR abitcnt; 31UCHAR abitcnt;
34USHORT abitbuf; 32USHORT abitbuf;