lvgl icon indicating copy to clipboard operation
lvgl copied to clipboard

feat(image_cache): add dump info ability for image_cache

Open W-Mai opened this issue 1 year ago • 3 comments

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

W-Mai avatar Aug 02 '24 03:08 W-Mai

Please add cache documentation.

FASTSHIFT avatar Aug 08 '24 11:08 FASTSHIFT

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.

kisvegabor avatar Aug 12 '24 12:08 kisvegabor

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.

lvgl-bot avatar Aug 27 '24 01:08 lvgl-bot

Update the API docs

W-Mai avatar Sep 02 '24 06:09 W-Mai

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.

W-Mai avatar Sep 02 '24 15:09 W-Mai