N64FlashcartMenu
Loading...
Searching...
No Matches
png_decoder.h
1
7#ifndef PNG_DECODER_H__
8#define PNG_DECODER_H__
9
10
11#include <surface.h>
12
13
15typedef enum {
16 PNG_OK,
17 PNG_ERR_INT,
18 PNG_ERR_BUSY,
19 PNG_ERR_OUT_OF_MEM,
20 PNG_ERR_NO_FILE,
21 PNG_ERR_BAD_FILE,
22} png_err_t;
23
24typedef void png_callback_t (png_err_t err, surface_t *decoded_image, void *callback_data);
25
26
27png_err_t png_decoder_start (char *path, int max_width, int max_height, png_callback_t *callback, void *callback_data);
28void png_decoder_abort (void);
29float png_decoder_get_progress (void);
30void png_decoder_poll (void);
31
32
33#endif