feat(decoder): add image header cache (#5407)

This commit is contained in:
Benign X
2024-01-22 19:44:14 +08:00
committed by GitHub
parent 356f3ed018
commit d26eac8f3a
20 changed files with 258 additions and 149 deletions

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