comparison src/dmzlib.h @ 958:985225a93aeb

Add error code parameter to dmError() and dmErrorVA().
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 27 Feb 2015 03:58:25 +0200
parents 6ed9465f3913
children 1832ac20edb2
comparison
equal deleted inserted replaced
957:b66653c9acb3 958:985225a93aeb
30 } DMZHuffmanContext; 30 } DMZHuffmanContext;
31 31
32 32
33 typedef struct 33 typedef struct
34 { 34 {
35 Uint8 *zbuffer, *zbuffer_end; 35 Uint8 *zbuffer, *zbufferEnd;
36 36
37 int num_bits; 37 int numBits;
38 Uint32 code_buffer; 38 Uint32 codeBuffer;
39 39
40 char *zout, *zout_start, *zout_end; 40 Uint8 *zout, *zoutStart, *zoutEnd;
41 int z_expandable; 41 BOOL expandable;
42 42
43 DMZHuffmanContext z_length, z_distance; 43 DMZHuffmanContext zlength, zdistance;
44 } DMZLibContext; 44 } DMZLibContext;
45 45
46 46
47 void dmZLibInit(); 47 void dmZLibInit();
48 int dmZLibDecode(DMZLibContext * ctx);
49 int dmZLibParseHeader(DMZLibContext * ctx, BOOL checkPNG);
48 50
49 char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen); 51 Uint8 *stbi_zlib_decode_malloc_guesssize(const Uint8 *buffer, const size_t len, const size_t initialSize, size_t *outLen);
50 char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen);
51 char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer,
52 int len, int initial_size, int *outlen, BOOL parse_header);
53 int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen);
54 char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen);
55 int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen);
56
57 52
58 #ifdef __cplusplus 53 #ifdef __cplusplus
59 } 54 }
60 #endif 55 #endif
61 56