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

typedef enum {PNGX_READ, PNGX_WRITE} pngx_rw;

struct pngx {
    png_structp png_ptr;
    png_infop   info_ptr;
    pngx_rw     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