|
N64FlashcartMenu
|
PNG decoder. More...
Go to the source code of this file.
Typedefs | |
| typedef void | png_callback_t(png_err_t err, surface_t *decoded_image, void *callback_data) |
| PNG decoder callback type. | |
Enumerations | |
| enum | png_err_t { PNG_OK , PNG_ERR_INT , PNG_ERR_BUSY , PNG_ERR_OUT_OF_MEM , PNG_ERR_NO_FILE , PNG_ERR_BAD_FILE } |
| PNG decoder errors. More... | |
Functions | |
| 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. | |
| void | png_decoder_abort (void) |
| Abort the PNG decoding process. | |
| float | png_decoder_get_progress (void) |
| Get the progress of the PNG decoding process. | |
| void | png_decoder_poll (void) |
| Poll the PNG decoder. | |
PNG decoder.
| typedef void png_callback_t(png_err_t err, surface_t *decoded_image, void *callback_data) |
PNG decoder callback type.
This typedef defines the callback function type used by the PNG decoder.
| err | Error code indicating the result of the decoding process. |
| decoded_image | Pointer to the decoded image surface. |
| callback_data | User-defined data passed to the callback function. |
| enum png_err_t |
| 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.
This function starts the PNG decoding process for the specified file.
| path | Path to the PNG file. |
| max_width | Maximum width of the decoded image. |
| max_height | Maximum height of the decoded image. |
| callback | Callback function to be called when decoding is complete. |
| callback_data | User-defined data to be passed to the callback function. |
Start the PNG decoding process.
| path | Path to the PNG file. |
| max_width | Maximum width of the image. |
| max_height | Maximum height of the image. |
| callback | Callback function to be called upon completion. |
| callback_data | Data to be passed to the callback function. |
| void png_decoder_abort | ( | void | ) |
Abort the PNG decoding process.
This function aborts the ongoing PNG decoding process.
| float png_decoder_get_progress | ( | void | ) |
Get the progress of the PNG decoding process.
This function returns the current progress of the PNG decoding process as a percentage.
| void png_decoder_poll | ( | void | ) |
Poll the PNG decoder.
This function polls the PNG decoder to handle any ongoing decoding tasks.
Poll the PNG decoder.