blob: 3ee8321a03e2e3691cc801f2149eab7c40206d5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef PNGX_H_INCLUDED
#define PNGX_H_INCLUDED
/* pngx is designed to be an extension of the PNG library to make using
the PNG library easier and cleaner.
*/
typedef enum {PNGX_READ, PNGX_WRITE} pngx_rw;
struct pngx {
png_structp png_ptr;
png_infop info_ptr;
pngx_rw rw;
png_uint_16 maxval;
};
void
pngx_create(struct pngx ** const pngxPP,
pngx_rw const rw,
jmp_buf * const jmpbufP);
void
pngx_destroy(struct pngx * const pngxP);
bool
pngx_chunkIsPresent(struct pngx * const pngxP,
uint32_t const chunkType);
#endif
|