lv_image_header_cache.h
API reference for lv_image_header_cache.h
Summary
Functions
lv_image_header_cache_init
Initialize image header cache.
lv_result_t lv_image_header_cache_init(uint32_t count)| Name | Type | Description |
|---|---|---|
count | uint32_t | initial size of the cache in count of image headers. |
Returns: lv_result_t — LV_RESULT_OK: initialization succeeded, LV_RESULT_INVALID: failed.
lv_image_header_cache_resize
Resize image header cache. If set to 0, the cache is disabled.
void lv_image_header_cache_resize(uint32_t count, bool evict_now)lv_image_header_cache_drop
Invalidate image header cache. Use NULL to invalidate all image headers. It's also automatically called when an image is invalidated.
void lv_image_header_cache_drop(const void *src)| Name | Type | Description |
|---|---|---|
src | const void * | pointer to an image source. |
lv_image_header_cache_is_enabled
Return true if the image header cache is enabled.
bool lv_image_header_cache_is_enabled(void)Returns: bool — true: enabled, false: disabled.
lv_image_header_cache_iter_create
Create an iterator to iterate over the image header cache.
lv_iter_t * lv_image_header_cache_iter_create(void)Returns: lv_iter_t * — an iterator to iterate over the image header cache.
lv_image_header_cache_dump
Dump the content of the image header cache in a human-readable format with cache order.
void lv_image_header_cache_dump(void)Dependencies
How is this guide?
Last updated on