about summary refs log tree commit diff
path: root/converter/other/pngx.h
blob: 81487ca10c26d1293804b94d9ee5216a6cf11e42 (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
#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.
*/

struct pngx {
    png_structp png_ptr;
    png_infop info_ptr;
};

typedef enum {PNGX_READ, PNGX_WRITE} pngx_rw;


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