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