/* 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.  */
lv_res_t lv_img_decoder_get_info(const char *src, lv_img_header_t *header)
/* 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.  */
lv_res_t lv_img_decoder_get_info(const char *src, lv_img_header_t *header)
{
    header->always_zero = 0;
    lv_res_t res = LV_RES_INV;
    lv_img_decoder_t * d;
    LV_LL_READ(LV_GC_ROOT(_lv_img_defoder_ll), d)
    {
        res = LV_RES_INV;
        if(d->info_cb) {
            res = d->info_cb(d, src, header);
            if(res == LV_RES_OK) break;
        }
    }
    return res;
}