Add a second image decoder to an existing PNG decoder


We would like to add a second image decoding library to our project and it is unclear to me, if I need to add the functionality for the second image format to the existing decoder_info, decoder_open, decoder_close functions, or if we need to register new callbacks

What MCU/Processor/Board and compiler are you using?

For the time being simulator only

What LVGL version are you using?


What do you want to achieve?

Add a second image decoder (for a different format) to the existing one we set up using the guide from here:

What have you tried so far?


Code to reproduce


The code block(s) should be formatted like:

Screenshot and/or video


You just need to register a second set of callbacks. The docs show where you would check the format of the image.

1 Like