refactor(image decoder): move lvgl binary image decoder to standalone file (#4829)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu
2023-11-20 04:53:40 +08:00
committed by GitHub
parent b1be5441c3
commit 6be9592e8b
9 changed files with 762 additions and 679 deletions

View File

@@ -276,8 +276,8 @@ open/close the PNG files. It should look like this:
/*Change the color format if required. For PNG usually 'Raw' is fine*/
dsc->header.cf = LV_COLOR_FORMAT_...
/*Call a built in decoder function if required. It's not required if `my_png_decoder` opened the image in true color format.*/
lv_result_t res = lv_image_decoder_built_in_open(decoder, dsc);
/*Call a binary image decoder function if required. It's not required if `my_png_decoder` opened the image in true color format.*/
lv_result_t res = lv_bin_decoder_open(decoder, dsc);
return res;
}
@@ -306,7 +306,7 @@ open/close the PNG files. It should look like this:
/*Free all allocated data*/
/*Call the built-in close function if the built-in open/read_line was used*/
lv_image_decoder_built_in_close(decoder, dsc);
lv_bin_decoder_close(decoder, dsc);
}