![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Everything about the mipmap cache that the USER decides. More...
#include <mipmap_cache.h>
Collaboration diagram for dt_mipmap_cache_settings_t:Data Fields | |
| size_t | max_memory |
| RAM budget for the thumbnail LRU, in bytes. A soft quota, not a hard limit. | |
| gboolean | disk_backend |
Write generated thumbnails to the on-disk cache (cache_disk_backend). | |
| int | embedded_jpg |
Whether to prefer the embedded JPEG over decoding (lighttable/embedded_jpg). | |
| int | cache_quality |
JPEG quality for thumbnails written to disk (database_cache_quality). | |
Everything about the mipmap cache that the USER decides.
These four were read from conf at the point of use, so the cache depended on the configuration system and its behaviour could change under it mid-decode. They cross the boundary as one value now: the application reads conf, the cache is told. That also makes the lifecycle visible – set once at startup, set again when the user changes a preference, and never anywhere else.
Definition at line 109 of file mipmap_cache.h.
| int dt_mipmap_cache_settings_t::cache_quality |
JPEG quality for thumbnails written to disk (database_cache_quality).
Definition at line 118 of file mipmap_cache.h.
Referenced by _mipmap_settings_from_conf(), and _write_thumbnail_to_disk_cache().
| gboolean dt_mipmap_cache_settings_t::disk_backend |
Write generated thumbnails to the on-disk cache (cache_disk_backend).
Definition at line 114 of file mipmap_cache.h.
Referenced by _mipmap_settings_from_conf().
| int dt_mipmap_cache_settings_t::embedded_jpg |
Whether to prefer the embedded JPEG over decoding (lighttable/embedded_jpg).
Definition at line 116 of file mipmap_cache.h.
Referenced by _generate_blocking(), _jpg_combobox_changed(), and _mipmap_settings_from_conf().
| size_t dt_mipmap_cache_settings_t::max_memory |
RAM budget for the thumbnail LRU, in bytes. A soft quota, not a hard limit.
Definition at line 112 of file mipmap_cache.h.
Referenced by _mipmap_settings_from_conf(), dt_mipmap_cache_get_usage(), and dt_mipmap_cache_set_settings().