lv_image_header_cache.h

API reference for lv_image_header_cache.h

Report on GitHub
Summary

Functions

lv_image_header_cache_init

Initialize image header cache.

 
lv_result_t lv_image_header_cache_init(uint32_t count)
Parameters
NameTypeDescription
countuint32_tinitial 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)
Parameters
NameTypeDescription
countuint32_tnew max count of cached image headers.
evict_nowbooltrue: evict the image headers should be removed by the eviction policy, false: wait for the next cache cleanup.

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)
Parameters
NameTypeDescription
srcconst 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

On this page