lv_image_decoder_get_info() function
GLOBAL PROTOTYPES Get information about an image. Try the created image decoder one by one. Once one is able to get info that info will be used.
Arguments
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`
the image info will be stored here
Return value
LV_RESULT_OK: success; LV_RESULT_INVALID: wasn't able to get info about the image
lv_image_decoder_get_info() is called by 6 functions and calls 3 functions:
![]()
lv_image_decoder_get_info()
lv_image_decoder_get_info() reads 2 variables and writes 2 variables:
![]()
lv_image_decoder_get_info()