Mercurial > hg > dmlib
comparison src/dmzlib.h @ 2586:9807ae37ad69
Require stdbool.h, we require C11 now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Dec 2022 15:59:22 +0200 |
parents | 043b5942fdb6 |
children |
comparison
equal
deleted
inserted
replaced
2585:ef6c826c5b7a | 2586:9807ae37ad69 |
---|---|
22 #define DM_ZLIB_HUFF_DIST (32) | 22 #define DM_ZLIB_HUFF_DIST (32) |
23 | 23 |
24 | 24 |
25 typedef struct | 25 typedef struct |
26 { | 26 { |
27 BOOL initialized; | 27 bool initialized; |
28 | 28 |
29 Uint16 fast[DM_ZLIB_HFAST_SIZE]; | 29 Uint16 fast[DM_ZLIB_HFAST_SIZE]; |
30 Uint16 firstCode[16]; | 30 Uint16 firstCode[16]; |
31 int maxCode[16 + 1]; | 31 int maxCode[16 + 1]; |
32 Uint16 firstSymbol[16]; | 32 Uint16 firstSymbol[16]; |
43 int window; | 43 int window; |
44 int numBits; | 44 int numBits; |
45 Uint32 codeBuffer; | 45 Uint32 codeBuffer; |
46 | 46 |
47 Uint8 *outBuffer, *outBufferStart, *outBufferEnd; | 47 Uint8 *outBuffer, *outBufferStart, *outBufferEnd; |
48 BOOL expandable; | 48 bool expandable; |
49 | 49 |
50 DMZHuffmanContext zlength, zdistance; | 50 DMZHuffmanContext zlength, zdistance; |
51 } DMZLibContext; | 51 } DMZLibContext; |
52 | 52 |
53 | 53 |
54 int dmZLibInit(); | 54 int dmZLibInit(); |
55 void dmZLibClose(); | 55 void dmZLibClose(); |
56 | 56 |
57 int dmZLibInitInflate(DMZLibContext *ctx); | 57 int dmZLibInitInflate(DMZLibContext *ctx); |
58 void dmZLibCloseInflate(DMZLibContext *ctx); | 58 void dmZLibCloseInflate(DMZLibContext *ctx); |
59 int dmZLibParseHeader(DMZLibContext * ctx, BOOL checkPNG); | 59 int dmZLibParseHeader(DMZLibContext * ctx, bool checkPNG); |
60 int dmZLibInflate(DMZLibContext * ctx); | 60 int dmZLibInflate(DMZLibContext * ctx); |
61 | 61 |
62 | 62 |
63 #ifdef __cplusplus | 63 #ifdef __cplusplus |
64 } | 64 } |