arch(img_decoder): replace read_liine_c with get_area_cb

also remove sjpeg support as get_area_cb can de quite same (some optimization is still needed to not decode the out of bounds chunks)
This commit is contained in:
Gabor Kiss-Vamosi
2023-09-18 21:19:00 +02:00
parent 6fdd585549
commit ca55b2ed8d
58 changed files with 1182 additions and 1448 deletions

View File

@@ -8,10 +8,14 @@ void lv_example_sjpg_1(void)
{
lv_obj_t * wp;
LV_IMAGE_DECLARE(codeblocks)
wp = lv_image_create(lv_scr_act());
/* Assuming a File system is attached to letter 'A'
* E.g. set LV_USE_FS_STDIO 'A' in lv_conf.h */
lv_image_set_src(wp, "A:lvgl/examples/libs/sjpg/small_image.sjpg");
lv_image_set_src(wp, "A:codeblocks.jpg");
// lv_image_set_src(wp, &codeblocks);
lv_obj_center(wp);
}
#endif