lv_image_header_cache.h
Functions
- 
lv_result_t lv_image_header_cache_init(uint32_t count)
- Initialize image header cache. - Parameters:
- count -- initial size of the cache in count of image headers. 
- Returns:
- LV_RESULT_OK: initialization succeeded, LV_RESULT_INVALID: failed. 
 
- 
void lv_image_header_cache_resize(uint32_t count, bool evict_now)
- Resize image header cache. If set to 0, the cache is disabled. - Parameters:
- count -- new max count of cached image headers. 
- evict_now -- true: evict the image headers should be removed by the eviction policy, false: wait for the next cache cleanup. 
 
 
- 
void lv_image_header_cache_drop(const void *src)
- Invalidate image header cache. Use NULL to invalidate all image headers. It's also automatically called when an image is invalidated. - Parameters:
- src -- pointer to an image source. 
 
- 
bool lv_image_header_cache_is_enabled(void)
- Return true if the image header cache is enabled. - Returns:
- true: enabled, false: disabled.