N64FlashcartMenu
Loading...
Searching...
No Matches
png_decoder.h
Go to the documentation of this file.
1
7#ifndef PNG_DECODER_H__
8#define PNG_DECODER_H__
9
10#include <surface.h>
11
25
35typedef void png_callback_t (png_err_t err, surface_t *decoded_image, void *callback_data);
36
49png_err_t png_decoder_start (char *path, int max_width, int max_height, png_callback_t *callback, void *callback_data);
50
56void png_decoder_abort (void);
57
65float png_decoder_get_progress (void);
66
72void png_decoder_poll (void);
73
74#endif /* PNG_DECODER_H__ */
float png_decoder_get_progress(void)
Get the progress of the PNG decoding process.
Definition png_decoder.c:129
void png_decoder_poll(void)
Poll the PNG decoder.
Definition png_decoder.c:137
void png_callback_t(png_err_t err, surface_t *decoded_image, void *callback_data)
PNG decoder callback type.
Definition png_decoder.h:35
png_err_t png_decoder_start(char *path, int max_width, int max_height, png_callback_t *callback, void *callback_data)
Start the PNG decoding process.
Definition png_decoder.c:46
void png_decoder_abort(void)
Abort the PNG decoding process.
Definition png_decoder.c:125
png_err_t
PNG decoder errors.
Definition png_decoder.h:17
@ PNG_ERR_BAD_FILE
Definition png_decoder.h:23
@ PNG_OK
Definition png_decoder.h:18
@ PNG_ERR_BUSY
Definition png_decoder.h:20
@ PNG_ERR_NO_FILE
Definition png_decoder.h:22
@ PNG_ERR_INT
Definition png_decoder.h:19
@ PNG_ERR_OUT_OF_MEM
Definition png_decoder.h:21