|
N64FlashcartMenu
|
PNG Decoder component implementation. More...
Data Structures | |
| struct | png_decoder_t |
| PNG File Information Structure. More... | |
Functions | |
| png_err_t | png_decoder_start (char *path, int max_width, int max_height, png_callback_t *callback, void *callback_data) |
| Start decoding a PNG file. | |
| 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 to process the next row. | |
PNG Decoder component implementation.
| struct png_decoder_t |
PNG File Information Structure.
| Data Fields | ||
|---|---|---|
| FILE * | f |
File pointer |
| spng_ctx * | ctx |
SPNG context |
| struct spng_ihdr | ihdr |
SPNG image header |
| surface_t * | image |
Image surface |
| uint8_t * | row_buffer |
Row buffer |
| int | decoded_rows |
Number of decoded rows |
| png_callback_t * | callback |
Callback function |
| void * | callback_data |
Callback data |
| png_err_t png_decoder_start | ( | char * | path, |
| int | max_width, | ||
| int | max_height, | ||
| png_callback_t * | callback, | ||
| void * | callback_data ) |
Start decoding a PNG file.
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.
| void png_decoder_poll | ( | void | ) |
Poll the PNG decoder to process the next row.
Poll the PNG decoder.