lv_image_cache.h
Functions
-
lv_result_t lv_image_cache_init(uint32_t size)
Initialize image cache.
- Parameters:
size -- size of the cache in bytes.
- Returns:
LV_RESULT_OK: initialization succeeded, LV_RESULT_INVALID: failed.
-
void lv_image_cache_resize(uint32_t new_size, bool evict_now)
Resize image cache. If set to 0, the cache will be disabled.
- Parameters:
new_size -- new size of the cache in bytes.
evict_now -- true: evict the images should be removed by the eviction policy, false: wait for the next cache cleanup.
-
void lv_image_cache_drop(const void *src)
Invalidate image cache. Use NULL to invalidate all images.
- Parameters:
src -- pointer to an image source.
-
bool lv_image_cache_is_enabled(void)
Return true if the image cache is enabled.
- Returns:
true: enabled, false: disabled.
-
lv_iter_t *lv_image_cache_iter_create(void)
Create an iterator to iterate over the image cache.
- Returns:
an iterator to iterate over the image cache.
-
void lv_image_cache_dump(void)
Dump the content of the image cache in a human-readable format with cache order.