feat(image_decoder): add image decoder header cache (#5420)

This commit is contained in:
Benign X
2024-01-22 21:28:58 +08:00
committed by GitHub
parent 4a60e01f8c
commit 7b68aef4ab
8 changed files with 142 additions and 17 deletions
+4
View File
@@ -271,6 +271,10 @@
*If size is 0, the cache function is not enabled and the decoded mem will be released immediately after use.*/
#define LV_CACHE_DEF_SIZE 0
/*Default number of image header cache entries. The cache is used to store the headers of images
*The main logic is like `LV_CACHE_DEF_SIZE` but for image headers.*/
#define LV_IMAGE_HEADER_CACHE_DEF_CNT 0
/*Number of stops allowed per gradient. Increase this to allow more stops.
*This adds (sizeof(lv_color_t) + 1) bytes per additional stop*/
#define LV_GRADIENT_MAX_STOPS 2