feat(image_cache): add dump info ability for image_cache
Description of the feature or fix
There are two patches here. The first is to add iter ability to lvgl, through which the interface of any iterable object can be unified.
The second is the image cache info dump capability based on this iter ability, which is convenient for debugging the cache information that already exists in the image cache.
[User] (1.083, +0) lv_image_cache_dump: Image cache dump: lv_image_cache.c:113
[User] (1.083, +0) lv_image_cache_dump: size data_size cf rc type decoded src lv_image_cache.c:114
[User] (1.083, +0) iter_inspect_cb: 300x300 360000 16 1 file 0x103b71be8 /res/img_1.png lv_image_cache.c:174
[User] (1.083, +0) iter_inspect_cb: 285x285 324900 16 10 file 0x103b88b18 /res/img_0.bin lv_image_cache.c:174
Notes
- Update the Documentation if needed.
- Add Examples if relevant.
- Add Tests if applicable.
- If you added new options to
lv_conf_template.hrun lv_conf_internal_gen.py and update Kconfig. - Run
scripts/code-format.py(astyle version v3.4.12 needs to be installed) and follow the Code Conventions. - Mark the Pull request as Draft while you are working on the first version, and mark is as Ready when it's ready for review.
- When changes were requested, re-request review to notify the maintainers.
- Help us to review this Pull Request! Anyone can approve or request changes.
Please add cache documentation.
I've just opened https://github.com/lvgl/lvgl/issues/6671 to track the missing docs.
Adding docs for the cache would be really great. It doesn't need to explain RB tree or so, however it should introduce the API, show some basic examples, and tell a few words about image a FreeType cache as well.
We need some feedback on this pull request.
Now we mark this as "stale" because there was no activity here for 14 days.
Remove the "stale" label or comment else this will be closed in 7 days.
Update the API docs
Thank you! 🙂
I know that you have high workload now, but let's document caching in the near future.
Sure😭, I will update the related documents in the near future.