lv_image_decoder_open() function
Open an image. Try the created image decoders one by one. Once one is able to open the image that decoder is saved in `dsc`
Arguments
dsc
describes a decoding session. Simply a pointer to an `lv_image_decoder_dsc_t` variable.
src
the image source. Can be 1) File name: E.g. "S:folder/img1.png" (The drivers needs to registered via `lv_fs_drv_register())`) 2) Variable: Pointer to an `lv_image_dsc_t` variable 3) Symbol: E.g. `LV_SYMBOL_OK`
args
args about how the image should be opened.
Return value
LV_RESULT_OK: opened the image. `dsc->decoded` and `dsc->header` are set. LV_RESULT_INVALID: none of the registered image decoders were able to open the image.
lv_image_decoder_open() is called by 4 functions and calls 7 functions:
![]()
lv_image_decoder_open()
lv_image_decoder_open() reads 8 variables and writes 5 variables:
![]()
lv_image_decoder_open()