lv_image_header_cache.h
Functions
-
lv_result_t lv_image_header_cache_init(uint32_t count)
Initialize image header cache.
- 参数:
count -- initial size of the cache in count of image headers.
- 返回:
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.
- 参数:
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.
- 参数:
src -- pointer to an image source.
-
bool lv_image_header_cache_is_enabled(void)
Return true if the image header cache is enabled.
- 返回:
true: enabled, false: disabled.