![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
shit ahead. More...
#include "common/mipmap_cache.h"#include "common/darktable.h"#include "common/debug.h"#include "common/exif.h"#include "common/file_location.h"#include "common/grealpath.h"#include "common/image_cache.h"#include "common/history.h"#include "common/imageio.h"#include "common/imageio_jpeg.h"#include "common/imageio_module.h"#include "control/conf.h"#include "control/jobs.h"#include "develop/imageop_math.h"#include "gui/gtk.h"#include <assert.h>#include <errno.h>#include <fcntl.h>#include <glib.h>#include <glib/gstdio.h>#include <inttypes.h>#include <limits.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include <unistd.h>#include <sys/statvfs.h>
Include dependency graph for mipmap_cache.c:Go to the source code of this file.
Data Structures | |
| struct | dt_mipmap_buffer_dsc |
| struct | _dummy_data_t |
Macros | |
| #define | DT_MIPMAP_CACHE_FILE_MAGIC 0xD71337 |
| #define | DT_MIPMAP_CACHE_FILE_VERSION 23 |
| #define | DT_MIPMAP_CACHE_DEFAULT_FILE_NAME "mipmaps" |
Typedefs | |
| typedef enum dt_mipmap_buffer_dsc_flags | dt_mipmap_buffer_dsc_flags |
| typedef struct _dummy_data_t | _dummy_data_t |
Enumerations | |
| enum | dt_mipmap_buffer_dsc_flags { DT_MIPMAP_BUFFER_DSC_FLAG_NONE = 0 , DT_MIPMAP_BUFFER_DSC_FLAG_GENERATE = 1 << 0 , DT_MIPMAP_BUFFER_DSC_FLAG_INVALIDATE = 1 << 1 } |
Functions | |
| struct dt_mipmap_buffer_dsc | __attribute__ ((packed, aligned(DT_CACHELINE_BYTES))) |
| static const size_t dt_mipmap_buffer_dsc_size | __attribute__ ((unused)) |
| static uint8_t * | _get_buffer_from_dsc (struct dt_mipmap_buffer_dsc *dsc) |
| static void * | dead_image_8 (struct dt_mipmap_buffer_dsc *dsc) |
| static int32_t | get_key (const int32_t imgid, const dt_mipmap_size_t size) |
| static uint32_t | get_imgid (const uint32_t key) |
| static dt_mipmap_size_t | get_size (const uint32_t key) |
| void | dt_mipmap_get_cache_dir (char path[PATH_MAX], const dt_mipmap_cache_t *cache, dt_mipmap_size_t mip) |
| void | dt_mipmap_get_cache_filename (char path[PATH_MAX], const dt_mipmap_cache_t *cache, dt_mipmap_size_t mip, const int32_t imgid) |
| static int | dt_mipmap_cache_get_filename (gchar *mipmapfilename, size_t size) |
| static void | _write_mipmap_to_disk (const int32_t imgid, char *filename, char *ext, gboolean *input_exists, gboolean *is_jpg_input, gboolean *use_embedded_jpg, gboolean *write_to_disk) |
| Check if an image should be written to disk, if the thumbnail should be computed from embedded JPEG, and optionaly return intermediate checks to get there, like whether the input is a JPEG file and if it exists on the filesystem. | |
| static void | _init_f (dt_mipmap_buffer_t *mipmap_buf, float *buf, uint32_t *width, uint32_t *height, float *iscale, const int32_t imgid) |
| static void | _init_8 (uint8_t *buf, uint32_t *width, uint32_t *height, float *iscale, dt_colorspaces_color_profile_type_t *color_space, const int32_t imgid, const dt_mipmap_size_t size, dt_atomic_int *shutdown) |
| struct dt_mipmap_buffer_dsc * | _get_dsc_from_entry (dt_cache_entry_t *entry) |
| static void | _sync_dsc_to_buf (dt_mipmap_buffer_t *buf, struct dt_mipmap_buffer_dsc *dsc, const int32_t imgid, const dt_mipmap_size_t mip) |
| static void | _invalidate_buffer (dt_mipmap_buffer_t *buf) |
| static size_t | _get_entry_size (const size_t buffer_size) |
| void | dt_mipmap_cache_update_buffer_addresses (dt_cache_entry_t *entry, struct dt_mipmap_buffer_dsc **dsc, const size_t width, const size_t height, const size_t buffer_size) |
| Resync all references to all references. | |
| void * | dt_mipmap_cache_alloc (dt_mipmap_buffer_t *buf, const dt_image_t *img) |
| void | dt_mipmap_cache_allocate_dynamic (void *data, dt_cache_entry_t *entry) |
| static void | dt_mipmap_cache_unlink_ondisk_thumbnail (void *data, int32_t imgid, dt_mipmap_size_t mip) |
| void | dt_mipmap_cache_deallocate_dynamic (void *data, dt_cache_entry_t *entry) |
| void | dt_mipmap_cache_init (dt_mipmap_cache_t *cache) |
| void | dt_mipmap_cache_cleanup (dt_mipmap_cache_t *cache) |
| void | dt_mipmap_cache_print (dt_mipmap_cache_t *cache) |
| static dt_mipmap_cache_one_t * | _get_cache (dt_mipmap_cache_t *cache, const dt_mipmap_size_t mip) |
| static void | _paint_skulls (dt_mipmap_buffer_t *buf, struct dt_mipmap_buffer_dsc *dsc, const int32_t imgid, const dt_mipmap_size_t mip) |
| static void | _validate_buffer (dt_mipmap_buffer_t *buf, struct dt_mipmap_buffer_dsc *dsc, const int32_t imgid, const dt_mipmap_size_t mip) |
| static gboolean | _get_image_copy (const int32_t imgid, dt_image_t *buffered_image) |
| static void | _generate_blocking (dt_cache_entry_t *entry, dt_mipmap_buffer_t *buf, const int32_t imgid, const dt_mipmap_size_t mip, dt_atomic_int *shutdown) |
| void | dt_mipmap_cache_get_with_caller (dt_mipmap_cache_t *cache, dt_mipmap_buffer_t *buf, const int32_t imgid, const dt_mipmap_size_t mip, const dt_mipmap_get_flags_t flags, const char mode, const char *file, int line) |
| void | dt_mipmap_cache_get_with_caller_and_shutdown (dt_mipmap_cache_t *cache, dt_mipmap_buffer_t *buf, const int32_t imgid, const dt_mipmap_size_t mip, const dt_mipmap_get_flags_t flags, const char mode, dt_atomic_int *shutdown, const char *file, int line) |
| void | dt_mipmap_cache_write_get_with_caller (dt_mipmap_cache_t *cache, dt_mipmap_buffer_t *buf, const int32_t imgid, const int mip, const char *file, int line) |
| void | dt_mipmap_cache_release_with_caller (dt_mipmap_cache_t *cache, dt_mipmap_buffer_t *buf, const char *file, int line) |
| dt_mipmap_size_t | dt_mipmap_cache_get_matching_size (const dt_mipmap_cache_t *cache, const int32_t width, const int32_t height, const uint32_t imgid) |
| dt_mipmap_size_t | dt_mipmap_cache_get_fitting_size (const dt_mipmap_cache_t *cache, const int32_t width, const int32_t height, const uint32_t imgid) |
| void | dt_mipmap_cache_swap_at_size (dt_mipmap_cache_t *cache, const int32_t imgid, const dt_mipmap_size_t mip, const uint8_t *const in, const int32_t width, const int32_t height, dt_colorspaces_color_profile_type_t profile) |
| void | dt_mipmap_cache_remove_at_size (dt_mipmap_cache_t *cache, const int32_t imgid, const dt_mipmap_size_t mip, const gboolean flush_disk) |
| void | dt_mipmap_cache_remove (dt_mipmap_cache_t *cache, const int32_t imgid, const gboolean flush_disk) |
| void | dt_mimap_cache_evict (dt_mipmap_cache_t *cache, const int32_t imgid) |
| static int | _levels (dt_imageio_module_data_t *data) |
| static int | _bpp (dt_imageio_module_data_t *data) |
| static int | _write_image (dt_imageio_module_data_t *data, const char *filename, const void *in, dt_colorspaces_color_profile_type_t over_type, const char *over_filename, void *exif, int exif_len, int32_t imgid, int num, int total, dt_dev_pixelpipe_t *pipe, const gboolean export_masks) |
| static int | _load_jpg (const char *filename, const int32_t imgid, const uint32_t wd, const uint32_t ht, const dt_mipmap_size_t size, const dt_image_orientation_t orientation, uint8_t *buf, uint32_t *width, uint32_t *height, dt_colorspaces_color_profile_type_t *color_space) |
| static int | _find_sidecar_jpg (const char *filename, const char *ext, char *sidecar) |
| void | dt_mipmap_cache_copy_thumbnails (const dt_mipmap_cache_t *cache, const uint32_t dst_imgid, const uint32_t src_imgid) |
Variables | |
| static const uint8_t | dt_mipmap_cache_exif_data_srgb [] |
| static const uint8_t | dt_mipmap_cache_exif_data_adobergb [] |
| static const int | dt_mipmap_cache_exif_data_srgb_length = sizeof(dt_mipmap_cache_exif_data_srgb) / sizeof(*dt_mipmap_cache_exif_data_srgb) |
| static const int | dt_mipmap_cache_exif_data_adobergb_length = sizeof(dt_mipmap_cache_exif_data_adobergb) / sizeof(*dt_mipmap_cache_exif_data_adobergb) |
| uint32_t | width |
| uint32_t | height |
| float | iscale |
| size_t | size |
| dt_mipmap_buffer_dsc_flags | flags |
| dt_colorspaces_color_profile_type_t | color_space |
shit ahead.
So, (dt_mipmap_buffer_t *buf)->cache_entry holds a back-reference to the cache entry dt_cache_entry_t *entry. (dt_cache_entry_t *entry)->data is a reference to the dt_mipmap_buffer_dsc *dsc, which is mostly a duplicate of dt_mipmap_buffer_t *buf, adding state flags and then 64-bytes memory padding.
entry->data is an opaque, manually-handled, memory buffer holding (in this order):
dt_mipmap_buffer_dsc dsc structure,buf->buf (aligned to 64 bytes);So the only way of accessing the buf->buf memory is by shifting the entry->data pointer by the size of one dt_mipmap_buffer_dsc structure.
But we need to resync the dt_mipmap_buffer_dsc dsc values with those in dt_mipmap_buffer_t *buf all the fucking time (namely, width, height, scale, color space). And then, we need to resync the buffer sizes between entry->data_size and dsc->size. But beware, because buf->size is actually the integer enum member of mipmap fixed sizes.
All in all, this clever design guarantees a maximum number of opportunities for mistakes, along with non-uniforms accesses, sometimes to dsc, sometimes to buf.
From the rest of the app, we access only dt_mipmap_buffer_t *buf, so this is our way of communicating stuff out there.
Definition in file mipmap_cache.c.
| #define DT_MIPMAP_CACHE_DEFAULT_FILE_NAME "mipmaps" |
Definition at line 87 of file mipmap_cache.c.
| #define DT_MIPMAP_CACHE_FILE_MAGIC 0xD71337 |
Definition at line 85 of file mipmap_cache.c.
| #define DT_MIPMAP_CACHE_FILE_VERSION 23 |
Definition at line 86 of file mipmap_cache.c.
| typedef struct _dummy_data_t _dummy_data_t |
| typedef enum dt_mipmap_buffer_dsc_flags dt_mipmap_buffer_dsc_flags |
| Enumerator | |
|---|---|
| DT_MIPMAP_BUFFER_DSC_FLAG_NONE | |
| DT_MIPMAP_BUFFER_DSC_FLAG_GENERATE | |
| DT_MIPMAP_BUFFER_DSC_FLAG_INVALIDATE | |
Definition at line 89 of file mipmap_cache.c.
| struct dt_mipmap_buffer_dsc __attribute__ | ( | (packed, aligned(DT_CACHELINE_BYTES)) | ) |
|
static |
|
static |
Definition at line 1305 of file mipmap_cache.c.
Referenced by _init_8().
|
static |
Definition at line 1342 of file mipmap_cache.c.
Referenced by _init_8().
|
static |
Definition at line 881 of file mipmap_cache.c.
References _get_buffer_from_dsc(), _get_dsc_from_entry(), _get_image_copy(), _init_8(), _init_f(), _invalidate_buffer(), _paint_skulls(), _validate_buffer(), ASAN_UNPOISON_MEMORY_REGION, dt_mipmap_buffer_t::buf, dt_mipmap_buffer_dsc::color_space, darktable, dt_atomic_get_int(), DT_DEBUG_CACHE, dt_image_cache_get(), DT_IMAGE_CACHE_RELAXED, dt_image_cache_write_release(), dt_image_choose_input_path(), DT_IMAGE_PATH_NONE, DT_IMAGEIO_OK, dt_imageio_open(), DT_MIPMAP_BUFFER_DSC_FLAG_GENERATE, DT_MIPMAP_F, DT_MIPMAP_FULL, dt_print(), FALSE, dt_mipmap_buffer_dsc::flags, dt_mipmap_buffer_dsc::height, dt_mipmap_buffer_t::height, darktable_t::image_cache, dt_mipmap_buffer_dsc::iscale, PATH_MAX, dt_mipmap_buffer_dsc::size, dt_mipmap_buffer_dsc::width, and dt_mipmap_buffer_t::width.
Referenced by dt_mipmap_cache_get_with_caller_and_shutdown().
|
static |
Definition at line 338 of file mipmap_cache.c.
Referenced by _generate_blocking(), _sync_dsc_to_buf(), dead_image_8(), dt_mipmap_cache_alloc(), dt_mipmap_cache_allocate_dynamic(), dt_mipmap_cache_deallocate_dynamic(), and dt_mipmap_cache_swap_at_size().
|
static |
Definition at line 822 of file mipmap_cache.c.
References DT_MIPMAP_F, DT_MIPMAP_FULL, dt_mipmap_cache_t::mip_f, dt_mipmap_cache_t::mip_full, and dt_mipmap_cache_t::mip_thumbs.
Referenced by dt_mimap_cache_evict(), dt_mipmap_cache_get_with_caller_and_shutdown(), dt_mipmap_cache_release_with_caller(), dt_mipmap_cache_remove_at_size(), and dt_mipmap_cache_swap_at_size().
| struct dt_mipmap_buffer_dsc * _get_dsc_from_entry | ( | dt_cache_entry_t * | entry | ) |
Definition at line 347 of file mipmap_cache.c.
References dt_cache_entry_t::data.
Referenced by _generate_blocking(), dt_mipmap_cache_deallocate_dynamic(), dt_mipmap_cache_get_with_caller_and_shutdown(), dt_mipmap_cache_remove_at_size(), dt_mipmap_cache_swap_at_size(), and dt_mipmap_cache_update_buffer_addresses().
|
static |
Definition at line 376 of file mipmap_cache.c.
Referenced by dt_mipmap_cache_alloc(), dt_mipmap_cache_allocate_dynamic(), dt_mipmap_cache_init(), and dt_mipmap_cache_update_buffer_addresses().
|
static |
Definition at line 862 of file mipmap_cache.c.
References darktable, dt_image_cache_get(), dt_image_cache_read_release(), FALSE, darktable_t::image_cache, and TRUE.
Referenced by _generate_blocking().
|
static |
Definition at line 1367 of file mipmap_cache.c.
References _bpp(), _find_sidecar_jpg(), _levels(), _load_jpg(), _write_image(), _write_mipmap_to_disk(), _dummy_data_t::buf, dt_mipmap_buffer_t::buf, color_space, dt_mipmap_buffer_t::color_space, darktable, DT_COLORSPACE_ADOBERGB, DT_COLORSPACE_NONE, dt_conf_get_int(), DT_DEBUG_CACHE, dt_image_cache_get(), dt_image_cache_read_release(), dt_imageio_export_with_flags(), dt_imageio_large_thumbnail(), DT_INTENT_LAST, dt_iop_flip_and_zoom_8(), dt_mipmap_cache_get, dt_mipmap_cache_release, DT_MIPMAP_F, DT_MIPMAP_TESTLOCK, dt_pixelpipe_cache_free_align, dt_print(), FALSE, _dummy_data_t::head, dt_imageio_module_data_t::height, height, dt_mipmap_buffer_t::height, darktable_t::image_cache, IS_NULL_PTR, iscale, k, dt_imageio_module_data_t::max_height, dt_imageio_module_data_t::max_width, darktable_t::mipmap_cache, dt_image_t::orientation, ORIENTATION_NONE, ORIENTATION_NULL, PATH_MAX, size, TRUE, dt_imageio_module_data_t::width, width, and dt_mipmap_buffer_t::width.
Referenced by _generate_blocking().
|
static |
Definition at line 1195 of file mipmap_cache.c.
References dt_mipmap_buffer_t::buf, dt_mipmap_buffer_t::color_space, darktable, dt_iop_buffer_dsc_t::datatype, dt_image_t::dsc, DT_COLORSPACE_NONE, dt_image_cache_get(), dt_image_cache_read_release(), dt_image_choose_input_path(), DT_IMAGE_PATH_NONE, dt_iop_clip_and_zoom(), dt_iop_clip_and_zoom_mosaic_half_size(), dt_iop_clip_and_zoom_mosaic_half_size_f(), dt_iop_clip_and_zoom_mosaic_third_size_xtrans(), dt_iop_clip_and_zoom_mosaic_third_size_xtrans_f(), DT_MIPMAP_BLOCKING, dt_mipmap_cache_get, dt_mipmap_cache_release, DT_MIPMAP_FULL, dt_unreachable_codepath, FALSE, dt_iop_buffer_dsc_t::filters, dt_image_t::height, height, dt_mipmap_buffer_t::height, dt_iop_roi_t::height, darktable_t::image_cache, IS_NULL_PTR, iscale, darktable_t::mipmap_cache, out, PATH_MAX, dt_iop_roi_t::scale, TYPE_FLOAT, TYPE_UINT16, dt_image_t::width, width, dt_mipmap_buffer_t::width, dt_iop_roi_t::width, dt_iop_roi_t::x, dt_iop_buffer_dsc_t::xtrans, and dt_iop_roi_t::y.
Referenced by _generate_blocking().
|
static |
Definition at line 368 of file mipmap_cache.c.
References dt_mipmap_buffer_t::buf, dt_mipmap_buffer_t::height, dt_mipmap_buffer_t::iscale, and dt_mipmap_buffer_t::width.
Referenced by _generate_blocking(), and dt_mipmap_cache_get_with_caller_and_shutdown().
|
static |
Definition at line 1300 of file mipmap_cache.c.
References IMAGEIO_INT8, and IMAGEIO_RGB.
Referenced by _init_8().
|
static |
Definition at line 1320 of file mipmap_cache.c.
References color_space, dt_alloc_align(), DT_DEBUG_CACHE, dt_free_align, dt_imageio_jpeg_read(), dt_imageio_jpeg_read_color_space(), dt_imageio_jpeg_read_header(), dt_iop_flip_and_zoom_8(), dt_print(), dt_imageio_jpeg_t::height, height, size, dt_imageio_jpeg_t::width, and width.
Referenced by _init_8().
|
static |
Definition at line 836 of file mipmap_cache.c.
References dt_mipmap_buffer_t::buf, dead_image_8(), DT_DEBUG_CACHE, DT_MIPMAP_F, dt_print(), dt_mipmap_buffer_dsc::height, and dt_mipmap_buffer_dsc::width.
Referenced by _generate_blocking().
|
static |
Definition at line 353 of file mipmap_cache.c.
References _get_buffer_from_dsc(), dt_mipmap_buffer_t::buf, dt_mipmap_buffer_dsc::color_space, dt_mipmap_buffer_t::color_space, dt_mipmap_buffer_dsc::height, dt_mipmap_buffer_t::height, dt_mipmap_buffer_t::imgid, dt_mipmap_buffer_dsc::iscale, dt_mipmap_buffer_t::iscale, dt_mipmap_buffer_t::size, dt_mipmap_buffer_dsc::width, and dt_mipmap_buffer_t::width.
Referenced by _validate_buffer().
|
static |
Definition at line 848 of file mipmap_cache.c.
References _sync_dsc_to_buf(), ASAN_UNPOISON_MEMORY_REGION, dt_mipmap_buffer_t::buf, and dt_mipmap_buffer_dsc::size.
Referenced by _generate_blocking(), and dt_mipmap_cache_get_with_caller_and_shutdown().
|
static |
Definition at line 1310 of file mipmap_cache.c.
References d, dt_imageio_module_data_t::height, and dt_imageio_module_data_t::width.
Referenced by _init_8().
|
static |
Check if an image should be written to disk, if the thumbnail should be computed from embedded JPEG, and optionaly return intermediate checks to get there, like whether the input is a JPEG file and if it exists on the filesystem.
| imgid | Database SQL ID of the image |
| filename | Filename of the input file. Can be NULL. |
| ext | Extension of the input file. Can be NULL. |
| input_exists | Whether the file can be found on the filesystem. Can be NULL. |
| is_jpg_input | Whether the file is a JPEG. Can be NULL. |
| use_embedded_jpg | Whether the lighttable should use the embedded JPEG thumbnail. Can be NULL. |
| write_to_disk | Whether the cached thumbnail should be flushed to disk before being flushed from RAM. Can be NULL. |
Definition at line 247 of file mipmap_cache.c.
References darktable, dt_conf_get_bool(), dt_conf_get_int(), dt_image_cache_get(), dt_image_cache_read_release(), dt_image_choose_input_path(), DT_IMAGE_PATH_NONE, FALSE, dt_image_t::history_items, darktable_t::image_cache, and PATH_MAX.
Referenced by _init_8(), dt_mipmap_cache_allocate_dynamic(), dt_mipmap_cache_copy_thumbnails(), and dt_mipmap_cache_deallocate_dynamic().
|
inlinestatic |
Definition at line 140 of file mipmap_cache.c.
References _get_buffer_from_dsc(), dt_mipmap_buffer_dsc::color_space, DT_COLORSPACE_DISPLAY, dt_mipmap_buffer_dsc::height, dt_mipmap_buffer_dsc::iscale, dt_mipmap_buffer_dsc::size, and dt_mipmap_buffer_dsc::width.
Referenced by _paint_skulls().
| void dt_mimap_cache_evict | ( | dt_mipmap_cache_t * | cache, |
| const int32_t | imgid | ||
| ) |
Definition at line 1189 of file mipmap_cache.c.
References _get_cache(), dt_cache_remove(), DT_MIPMAP_0, DT_MIPMAP_F, get_key(), and k.
Referenced by _prerender_job(), generate_thumbnail_cache(), and preload_image_cache().
| void * dt_mipmap_cache_alloc | ( | dt_mipmap_buffer_t * | buf, |
| const dt_image_t * | img | ||
| ) |
Definition at line 416 of file mipmap_cache.c.
References _get_buffer_from_dsc(), _get_entry_size(), ASAN_POISON_MEMORY_REGION, ASAN_UNPOISON_MEMORY_REGION, dt_iop_buffer_dsc_t::bpp, bpp, dt_mipmap_buffer_t::buf, dt_mipmap_buffer_t::cache_entry, dt_cache_entry_t::data, dt_cache_entry_t::data_size, dt_image_t::dsc, dt_alloc_align(), dt_free_align, dt_mipmap_cache_update_buffer_addresses(), DT_MIPMAP_FULL, dt_image_t::filename, dt_image_t::height, IS_NULL_PTR, MAX, dt_mipmap_buffer_dsc::size, dt_mipmap_buffer_t::size, and dt_image_t::width.
Referenced by dt_imageio_open_avif(), dt_imageio_open_exr(), dt_imageio_open_heif(), dt_imageio_open_j2k(), dt_imageio_open_jpeg(), dt_imageio_open_pfm(), dt_imageio_open_png(), dt_imageio_open_pnm(), dt_imageio_open_rawspeed(), dt_imageio_open_rawspeed_sraw(), dt_imageio_open_rgbe(), dt_imageio_open_tiff(), and dt_imageio_open_webp().
| void dt_mipmap_cache_allocate_dynamic | ( | void * | data, |
| dt_cache_entry_t * | entry | ||
| ) |
Definition at line 479 of file mipmap_cache.c.
References _get_buffer_from_dsc(), _get_entry_size(), _write_mipmap_to_disk(), dt_mipmap_cache_t::buffer_size, dt_mipmap_cache_t::cachedir, color_space, dt_mipmap_buffer_dsc::color_space, dt_cache_entry_t::cost, dt_cache_entry_t::data, dt_alloc_align(), DT_COLORSPACE_DISPLAY, DT_DEBUG_CACHE, dt_free_align, dt_imageio_jpeg_decompress(), dt_imageio_jpeg_decompress_header(), dt_imageio_jpeg_read_color_space(), dt_mipmap_cache_update_buffer_addresses(), DT_MIPMAP_F, dt_mipmap_get_cache_filename(), DT_MIPMAP_NONE, dt_print(), error(), f, FALSE, dt_mipmap_buffer_dsc::flags, get_imgid(), get_size(), dt_imageio_jpeg_t::height, dt_mipmap_buffer_dsc::height, IS_NULL_PTR, dt_mipmap_buffer_dsc::iscale, dt_cache_entry_t::key, dt_mipmap_cache_t::max_height, dt_mipmap_cache_t::max_width, PATH_MAX, TRUE, dt_imageio_jpeg_t::width, and dt_mipmap_buffer_dsc::width.
Referenced by dt_mipmap_cache_init().
| void dt_mipmap_cache_cleanup | ( | dt_mipmap_cache_t * | cache | ) |
Definition at line 767 of file mipmap_cache.c.
References dt_mipmap_cache_one_t::cache, dt_cache_cleanup(), dt_mipmap_cache_print(), dt_mipmap_cache_t::mip_f, dt_mipmap_cache_t::mip_full, and dt_mipmap_cache_t::mip_thumbs.
Referenced by dt_cleanup().
| void dt_mipmap_cache_copy_thumbnails | ( | const dt_mipmap_cache_t * | cache, |
| const uint32_t | dst_imgid, | ||
| const uint32_t | src_imgid | ||
| ) |
Definition at line 1515 of file mipmap_cache.c.
References _write_mipmap_to_disk(), dt_mipmap_cache_t::cachedir, DT_MIPMAP_0, DT_MIPMAP_F, dt_mipmap_get_cache_filename(), and PATH_MAX.
Referenced by dt_image_copy_rename().
| void dt_mipmap_cache_deallocate_dynamic | ( | void * | data, |
| dt_cache_entry_t * | entry | ||
| ) |
Definition at line 620 of file mipmap_cache.c.
References _get_buffer_from_dsc(), _get_dsc_from_entry(), _write_mipmap_to_disk(), dt_mipmap_cache_t::cachedir, dt_mipmap_buffer_dsc::color_space, dt_cache_entry_t::data, DT_COLORSPACE_ADOBERGB, DT_COLORSPACE_SRGB, dt_conf_get_int(), DT_DEBUG_CACHE, dt_free_align, dt_imageio_jpeg_write(), DT_MIPMAP_BUFFER_DSC_FLAG_INVALIDATE, dt_mipmap_cache_exif_data_adobergb, dt_mipmap_cache_exif_data_adobergb_length, dt_mipmap_cache_exif_data_srgb, dt_mipmap_cache_exif_data_srgb_length, dt_mipmap_cache_unlink_ondisk_thumbnail(), DT_MIPMAP_F, dt_mipmap_get_cache_dir(), dt_mipmap_get_cache_filename(), dt_print(), f, statvfs::f_bavail, statvfs::f_frsize, dt_mipmap_buffer_dsc::flags, get_imgid(), get_size(), dt_mipmap_buffer_dsc::height, dt_cache_entry_t::key, MAX, MIN, PATH_MAX, and dt_mipmap_buffer_dsc::width.
Referenced by dt_mipmap_cache_init().
|
static |
Definition at line 193 of file mipmap_cache.c.
References darktable, darktable_t::db, dt_database_get_path(), dt_free, dt_loc_get_user_cache_dir(), DT_MIPMAP_CACHE_DEFAULT_FILE_NAME, g_realpath(), IS_NULL_PTR, PATH_MAX, r, and size.
Referenced by dt_mipmap_cache_init().
| dt_mipmap_size_t dt_mipmap_cache_get_fitting_size | ( | const dt_mipmap_cache_t * | cache, |
| const int32_t | width, | ||
| const int32_t | height, | ||
| const uint32_t | imgid | ||
| ) |
Definition at line 1089 of file mipmap_cache.c.
References DT_DEBUG_CACHE, DT_MIPMAP_0, DT_MIPMAP_F, dt_print(), height, k, dt_mipmap_cache_t::max_height, dt_mipmap_cache_t::max_width, and width.
Referenced by _preview_pipe_finished(), and dt_dev_resync_mipmap_cache().
| dt_mipmap_size_t dt_mipmap_cache_get_matching_size | ( | const dt_mipmap_cache_t * | cache, |
| const int32_t | width, | ||
| const int32_t | height, | ||
| const uint32_t | imgid | ||
| ) |
Definition at line 1073 of file mipmap_cache.c.
References DT_DEBUG_CACHE, DT_MIPMAP_0, DT_MIPMAP_F, dt_print(), height, k, dt_mipmap_cache_t::max_height, dt_mipmap_cache_t::max_width, and width.
Referenced by _view_image_get_surface_internal(), and preload_auto_callback().
| void dt_mipmap_cache_get_with_caller | ( | dt_mipmap_cache_t * | cache, |
| dt_mipmap_buffer_t * | buf, | ||
| const int32_t | imgid, | ||
| const dt_mipmap_size_t | mip, | ||
| const dt_mipmap_get_flags_t | flags, | ||
| const char | mode, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 977 of file mipmap_cache.c.
References dt_mipmap_cache_get_with_caller_and_shutdown(), and flags.
Referenced by dt_mipmap_cache_write_get_with_caller().
| void dt_mipmap_cache_get_with_caller_and_shutdown | ( | dt_mipmap_cache_t * | cache, |
| dt_mipmap_buffer_t * | buf, | ||
| const int32_t | imgid, | ||
| const dt_mipmap_size_t | mip, | ||
| const dt_mipmap_get_flags_t | flags, | ||
| const char | mode, | ||
| dt_atomic_int * | shutdown, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 984 of file mipmap_cache.c.
References _generate_blocking(), _get_cache(), _get_dsc_from_entry(), _invalidate_buffer(), dt_cache_entry_t::_lock_demoting, _validate_buffer(), dt_mipmap_buffer_t::cache_entry, dt_cache_get, dt_cache_get_with_caller(), dt_cache_release, dt_cache_testget(), DT_MIPMAP_0, DT_MIPMAP_BLOCKING, DT_MIPMAP_TESTLOCK, flags, get_key(), dt_mipmap_buffer_t::imgid, key, dt_cache_entry_t::lock, and dt_mipmap_buffer_t::size.
Referenced by dt_mipmap_cache_get_with_caller().
| void dt_mipmap_cache_init | ( | dt_mipmap_cache_t * | cache | ) |
Definition at line 704 of file mipmap_cache.c.
References _get_entry_size(), dt_mipmap_cache_t::buffer_size, dt_mipmap_cache_one_t::cache, dt_mipmap_cache_t::cachedir, dt_cache_init(), dt_cache_set_allocate_callback(), dt_cache_set_cleanup_callback(), DT_CTL_WORKER_RESERVED, dt_get_mipmap_mem(), DT_MIPMAP_2, dt_mipmap_cache_allocate_dynamic(), dt_mipmap_cache_deallocate_dynamic(), dt_mipmap_cache_get_filename(), DT_MIPMAP_F, DT_MIPMAP_FULL, dt_worker_threads(), k, dt_mipmap_cache_t::max_height, dt_mipmap_cache_t::max_width, dt_mipmap_cache_t::mip_f, dt_mipmap_cache_t::mip_full, dt_mipmap_cache_t::mip_thumbs, dt_mipmap_cache_one_t::stats_fetches, dt_mipmap_cache_one_t::stats_misses, dt_mipmap_cache_one_t::stats_near_match, dt_mipmap_cache_one_t::stats_requests, and dt_mipmap_cache_one_t::stats_standin.
Referenced by dt_init().
| void dt_mipmap_cache_print | ( | dt_mipmap_cache_t * | cache | ) |
Definition at line 775 of file mipmap_cache.c.
References dt_mipmap_cache_one_t::cache, dt_cache_t::cost, dt_cache_t::cost_quota, DT_DEBUG_CACHE, dt_print(), dt_mipmap_cache_t::mip_f, dt_mipmap_cache_t::mip_full, dt_mipmap_cache_t::mip_thumbs, dt_mipmap_cache_one_t::stats_fetches, dt_mipmap_cache_one_t::stats_misses, dt_mipmap_cache_one_t::stats_near_match, dt_mipmap_cache_one_t::stats_requests, and dt_mipmap_cache_one_t::stats_standin.
Referenced by dt_mipmap_cache_cleanup().
| void dt_mipmap_cache_release_with_caller | ( | dt_mipmap_cache_t * | cache, |
| dt_mipmap_buffer_t * | buf, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 1058 of file mipmap_cache.c.
References _get_cache(), dt_mipmap_buffer_t::buf, dt_mipmap_cache_one_t::cache, dt_mipmap_buffer_t::cache_entry, dt_cache_release_with_caller(), DT_MIPMAP_0, DT_MIPMAP_NONE, dt_mipmap_buffer_t::imgid, IS_NULL_PTR, and dt_mipmap_buffer_t::size.
| void dt_mipmap_cache_remove | ( | dt_mipmap_cache_t * | cache, |
| const int32_t | imgid, | ||
| const gboolean | flush_disk | ||
| ) |
Definition at line 1182 of file mipmap_cache.c.
References DT_MIPMAP_0, dt_mipmap_cache_remove_at_size(), DT_MIPMAP_F, and k.
Referenced by _image_import_internal(), _jpg_combobox_changed(), clear_image_cache(), dt_film_remove(), dt_history_delete_on_image_ext(), dt_image_history_changed(), and dt_image_remove().
| void dt_mipmap_cache_remove_at_size | ( | dt_mipmap_cache_t * | cache, |
| const int32_t | imgid, | ||
| const dt_mipmap_size_t | mip, | ||
| const gboolean | flush_disk | ||
| ) |
Definition at line 1159 of file mipmap_cache.c.
References _get_cache(), _get_dsc_from_entry(), ASAN_UNPOISON_MEMORY_REGION, dt_cache_release, dt_cache_remove(), dt_cache_testget(), DT_MIPMAP_0, DT_MIPMAP_BUFFER_DSC_FLAG_INVALIDATE, dt_mipmap_cache_unlink_ondisk_thumbnail(), DT_MIPMAP_F, dt_mipmap_buffer_dsc::flags, get_key(), and key.
Referenced by dt_mipmap_cache_remove().
| void dt_mipmap_cache_swap_at_size | ( | dt_mipmap_cache_t * | cache, |
| const int32_t | imgid, | ||
| const dt_mipmap_size_t | mip, | ||
| const uint8_t *const | in, | ||
| const int32_t | width, | ||
| const int32_t | height, | ||
| dt_colorspaces_color_profile_type_t | profile | ||
| ) |
Definition at line 1103 of file mipmap_cache.c.
References _get_buffer_from_dsc(), _get_cache(), _get_dsc_from_entry(), ASAN_UNPOISON_MEMORY_REGION, darktable_t::color_profiles, dt_mipmap_buffer_dsc::color_space, darktable, dt_cache_get_with_caller(), dt_cache_release, DT_COLORSPACE_ADOBERGB, DT_COLORSPACE_DISPLAY, dt_colorspaces_get_profile(), dt_colorspaces_transform_rgba8_to_bgra8(), DT_DEBUG_CACHE, dt_iop_flip_and_zoom_8(), DT_MIPMAP_0, DT_MIPMAP_F, dt_print(), DT_PROFILE_DIRECTION_DISPLAY, FALSE, dt_mipmap_buffer_dsc::flags, get_key(), height, dt_mipmap_buffer_dsc::height, dt_mipmap_buffer_dsc::iscale, key, ORIENTATION_NONE, dt_mipmap_buffer_dsc::size, transform(), dt_colorspaces_t::transform_display_to_adobe_rgb, TRUE, width, dt_mipmap_buffer_dsc::width, and dt_colorspaces_t::xprofile_lock.
Referenced by dt_dev_resync_mipmap_cache().
|
static |
Definition at line 604 of file mipmap_cache.c.
References dt_mipmap_cache_t::cachedir, DT_DEBUG_CACHE, dt_mipmap_get_cache_filename(), dt_print(), and PATH_MAX.
Referenced by dt_mipmap_cache_deallocate_dynamic(), and dt_mipmap_cache_remove_at_size().
| void dt_mipmap_cache_update_buffer_addresses | ( | dt_cache_entry_t * | entry, |
| struct dt_mipmap_buffer_dsc ** | dsc, | ||
| const size_t | width, | ||
| const size_t | height, | ||
| const size_t | buffer_size | ||
| ) |
Resync all references to all references.
| entry | Cache entry. |
| dsc | |
| buf |
Definition at line 388 of file mipmap_cache.c.
References _get_dsc_from_entry(), _get_entry_size(), dt_cache_entry_t::data, dt_cache_entry_t::data_size, DT_COLORSPACE_NONE, DT_MIPMAP_BUFFER_DSC_FLAG_GENERATE, height, IS_NULL_PTR, and width.
Referenced by dt_mipmap_cache_alloc(), and dt_mipmap_cache_allocate_dynamic().
| void dt_mipmap_cache_write_get_with_caller | ( | dt_mipmap_cache_t * | cache, |
| dt_mipmap_buffer_t * | buf, | ||
| const int32_t | imgid, | ||
| const int | mip, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 1053 of file mipmap_cache.c.
References DT_MIPMAP_BLOCKING, and dt_mipmap_cache_get_with_caller().
| void dt_mipmap_get_cache_dir | ( | char | path[PATH_MAX], |
| const dt_mipmap_cache_t * | cache, | ||
| dt_mipmap_size_t | mip | ||
| ) |
Definition at line 177 of file mipmap_cache.c.
References dt_mipmap_cache_t::cachedir, and PATH_MAX.
Referenced by dt_mipmap_cache_deallocate_dynamic(), dt_mipmap_get_cache_filename(), and generate_thumbnail_cache().
| void dt_mipmap_get_cache_filename | ( | char | path[PATH_MAX], |
| const dt_mipmap_cache_t * | cache, | ||
| dt_mipmap_size_t | mip, | ||
| const int32_t | imgid | ||
| ) |
Definition at line 183 of file mipmap_cache.c.
References dt_concat_path_file(), dt_free, dt_mipmap_get_cache_dir(), and PATH_MAX.
Referenced by _prerender_job(), dt_mipmap_cache_allocate_dynamic(), dt_mipmap_cache_copy_thumbnails(), dt_mipmap_cache_deallocate_dynamic(), dt_mipmap_cache_unlink_ondisk_thumbnail(), generate_thumbnail_cache(), and preload_image_cache().
|
inlinestatic |
Definition at line 167 of file mipmap_cache.c.
References key.
Referenced by dt_mipmap_cache_allocate_dynamic(), and dt_mipmap_cache_deallocate_dynamic().
|
inlinestatic |
Definition at line 161 of file mipmap_cache.c.
References size.
Referenced by dt_mimap_cache_evict(), dt_mipmap_cache_get_with_caller_and_shutdown(), dt_mipmap_cache_remove_at_size(), and dt_mipmap_cache_swap_at_size().
|
inlinestatic |
Definition at line 172 of file mipmap_cache.c.
References key.
Referenced by dt_bauhaus_resize_handle_new(), dt_mipmap_cache_allocate_dynamic(), and dt_mipmap_cache_deallocate_dynamic().
| dt_colorspaces_color_profile_type_t color_space |
Definition at line 5 of file mipmap_cache.c.
Referenced by _get_image_buffer(), _import_get_thumbnail(), _init_8(), _load_jpg(), checker_set_color(), dt_colorspaces_init(), dt_imageio_has_mono_preview(), dt_imageio_large_thumbnail(), dt_mipmap_cache_allocate_dynamic(), parse_cht(), and parse_it8().
|
static |
Definition at line 102 of file mipmap_cache.c.
Referenced by dt_mipmap_cache_deallocate_dynamic().
|
static |
Definition at line 109 of file mipmap_cache.c.
Referenced by dt_mipmap_cache_deallocate_dynamic().
|
static |
Definition at line 97 of file mipmap_cache.c.
Referenced by dt_mipmap_cache_deallocate_dynamic().
|
static |
Definition at line 107 of file mipmap_cache.c.
Referenced by dt_mipmap_cache_deallocate_dynamic().
Definition at line 4 of file mipmap_cache.c.
Referenced by _add_generic_accel(), _add_widget_accel(), _altered_clicked(), _button_draw(), _colorlabel_clicked(), _draw_triangle(), _dt_opencl_alloc_image2d(), _ellipse_sanitize_config(), _image_cache_self_hash(), _image_import_internal(), _metadata_view_update_values(), _move_text_sidecar_if_present(), _pop_menu_dictionary_edit_tag(), _rating_clicked(), _row_tooltip_setup(), _thumbnail_btn_draw(), _togglebutton_draw(), _tree_tagname_show(), _unaltered_clicked(), _update_altered_filters(), _update_colors_filter(), _update_rating_filter(), _upgrade_library_schema_step(), cht_state_callback(), dt_accels_init(), dt_atomic_and_int(), dt_atomic_or_int(), dt_collection_reset(), dt_collection_set_filter_flags(), dt_collection_set_query_flags(), dt_control_crawler_run(), dt_dev_pixelpipe_cache_get_cl_buffer(), dt_dev_pixelpipe_cache_get_pinned_image(), dt_dev_pixelpipe_or_changed(), dt_dng_opcode_process_opcode_list_2(), dt_draw_paint_to_pixbuf(), dt_gui_gtk_init(), dt_gui_hist_dialog_new(), dt_history_module_skip_copy(), dt_image_get_xmp_rating_from_flags(), dt_image_print_debug_info(), dt_lib_export_metadata_configuration_dialog(), dt_lib_export_metadata_default_flags(), dt_lib_export_metadata_get_conf_flags(), dt_mipmap_cache_get_with_caller(), dt_mipmap_cache_get_with_caller_and_shutdown(), dt_opencl_alloc_device_buffer_with_flags(), dt_opencl_alloc_device_use_host_pointer(), dt_opencl_get_mem_flags(), dt_opencl_is_pinned_memory(), dt_opencl_map_buffer(), dt_opencl_map_image(), dt_tag_export(), dt_tag_get_flags(), dt_tag_get_hierarchical_export(), dt_tag_get_list_export(), dt_tag_get_tag_order_by_id(), dt_tag_set_flags(), dt_tag_set_tag_order_by_id(), dt_variables_set_tags_flags(), dtgtk_cairo_paint_alignment(), dtgtk_cairo_paint_altered(), dtgtk_cairo_paint_arrow(), dtgtk_cairo_paint_aspectflip(), dtgtk_cairo_paint_bulb(), dtgtk_cairo_paint_colorpicker(), dtgtk_cairo_paint_cut_forms(), dtgtk_cairo_paint_display_wavelet_scale(), dtgtk_cairo_paint_eye(), dtgtk_cairo_paint_eye_toggle(), dtgtk_cairo_paint_flip(), dtgtk_cairo_paint_grouping(), dtgtk_cairo_paint_label(), dtgtk_cairo_paint_label_flower(), dtgtk_cairo_paint_label_sel(), dtgtk_cairo_paint_line_arrow(), dtgtk_cairo_paint_local_copy(), dtgtk_cairo_paint_masks_drawn_and_parametric(), dtgtk_cairo_paint_masks_parametric(), dtgtk_cairo_paint_module_switch(), dtgtk_cairo_paint_perspective(), dtgtk_cairo_paint_plus(), dtgtk_cairo_paint_plusminus(), dtgtk_cairo_paint_rawoverexposed(), dtgtk_cairo_paint_refresh(), dtgtk_cairo_paint_reject(), dtgtk_cairo_paint_solid_arrow(), dtgtk_cairo_paint_solid_triangle(), dtgtk_cairo_paint_sortby(), dtgtk_cairo_paint_styles(), dtgtk_cairo_paint_triangle(), dtgtk_cairo_paint_unaltered(), dtgtk_cell_renderer_button_activate(), and legacy_params().
| uint32_t height |
Definition at line 1 of file mipmap_cache.c.
Referenced by _init_8(), _init_f(), _load_jpg(), dt_mipmap_cache_get_fitting_size(), dt_mipmap_cache_get_matching_size(), dt_mipmap_cache_swap_at_size(), and dt_mipmap_cache_update_buffer_addresses().
| float iscale |
Definition at line 2 of file mipmap_cache.c.
Referenced by _circle_get_mask_roi(), _ellipse_get_mask_roi(), _gradient_get_mask_roi(), _init_8(), _init_f(), dt_dev_pixelpipe_set_input(), dt_develop_blend_process(), dt_develop_blend_process_cl(), dt_iop_colorreconstruct_bilateral_init(), dt_iop_colorreconstruct_bilateral_init_cl(), dt_iop_colorreconstruct_bilateral_slice(), and dt_iop_colorreconstruct_bilateral_slice_cl().
| size_t size |
Definition at line 3 of file mipmap_cache.c.
Referenced by __attribute__(), _ask_for_maintenance(), _brush_get_interaction_value(), _cache_try_rekey_reuse_locked(), _color_picker_geometry(), _colorspaces_create_transfer(), _compass_star(), _darkroom_edge_pan_velocity(), _draw_ellipse(), _draw_plus_sign(), _draw_rectangle(), _dt_masks_dynbuf_growto(), _format_picker_brightness_position(), _free_space_to_alloc(), _get_image_list(), _get_max_scale(), _init_8(), _init_image_pin(), _init_place_pin(), _iop_zonesystem_calculate_zonemap(), _iop_zonesystem_zone_index_from_lightness(), _ioporder_add_preset(), _load_jpg(), _make_clipping_profile(), _menu_icon_draw(), _paint_cursor_arrow(), _panel_handle_resize(), _pixelpipe_cache_create_entry_locked(), _polygon_get_interaction_value(), _print_trace(), _update_display_profile(), _update_params(), _util_get_svg_img(), _view_map_images_count(), ambient_light(), PermutohedralLattice< D, VD >::blur(), char2qstring(), color_picker_helper_4ch(), color_picker_helper_4ch_converted_parallel(), color_picker_helper_4ch_converted_seq(), color_picker_helper_4ch_parallel(), color_picker_helper_4ch_seq(), color_picker_helper_bayer(), color_picker_helper_xtrans(), commit_params(), curl_write_data_cb(), dark_channel(), decimated_bspline_size(), dl(), dl(), draw_rectangle(), draw_triangle(), dt_alloc_align(), dt_alloc_align_internal(), dt_bauhaus_draw_indicator(), dt_box_mean_1ch(), dt_box_mean_4ch(), dt_cache_arena_alloc(), dt_cache_arena_calc(), dt_cache_arena_free(), dt_calloc_align(), dt_colorspaces_get_profile_name(), dt_colorspaces_get_rgb_profile_from_mem(), dt_colorspaces_pseudoinverse(), dt_colorspaces_set_display_profile(), dt_dev_pixelpipe_cache_get(), dt_dev_pixelpipe_cache_get_writable(), dt_dev_pixelpipe_set_input(), dt_draw_get_pixbuf_from_cairo(), dt_draw_paint_to_pixbuf(), dt_exif_get_color_space(), dt_exif_get_datetime_taken(), dt_exif_get_thumbnail(), dt_exif_read_from_blob(), dt_exif_write_blob(), dt_get_papers(), dt_gui_update_em(), dt_hash(), dt_image_cache_init(), dt_imageio_avif_read_profile(), dt_imageio_export_with_flags(), dt_imageio_heif_read_profile(), dt_iop_alloc_image_buffers(), dt_ioppr_deserialize_iop_order_list(), dt_ioppr_serialize_iop_order_list(), dt_masks_dynbuf_init(), dt_mipmap_cache_get_filename(), dt_opencl_alloc_device_buffer(), dt_opencl_alloc_device_buffer_with_flags(), dt_opencl_copy_host_to_device_constant(), dt_opencl_dev_roundup_height(), dt_opencl_dev_roundup_width(), dt_opencl_enqueue_copy_buffer_to_buffer(), dt_opencl_get_image_element_size(), dt_opencl_get_image_height(), dt_opencl_get_image_width(), dt_opencl_get_mem_object_size(), dt_opencl_map_buffer(), dt_opencl_memory_statistics(), dt_opencl_read_buffer_from_device(), dt_opencl_set_kernel_arg(), dt_opencl_write_buffer_to_device(), dt_pdf_add_icc_from_data(), dt_pdf_finish(), dt_pixel_cache_new_entry(), dt_pixelpipe_cache_alloc_align_cache_impl(), dt_pwstorage_kwallet_set(), dt_round_size(), dt_round_size_sse(), dt_ui_panel_get_size(), dt_util_get_logo(), dt_util_get_logo_text(), dwt_wavelet_decompose(), get_key(), get_params(), get_scales(), gui_post_expose(), guided_filter_tiling(), init_presets(), legacy_params(), lin_interpolate(), main(), main(), matrice_pseudoinverse(), max_val_matrix(), memset_zero(), PermutohedralLattice< D, VD >::merge_splat_threads(), modify_roi_out(), normalize_array(), process(), process_common_cleanup(), process_laplacian_bayer(), process_laplacian_xtrans(), process_vng_cl(), rfwrite(), rt_adjust_levels(), rt_process_stats(), set_params(), set_params(), set_params(), set_params(), split_path(), transition_map(), wavelet_denoise(), and wavelet_denoise_xtrans().
| uint32_t width |
Definition at line 0 of file mipmap_cache.c.
Referenced by _init_8(), _init_f(), _load_jpg(), dt_mipmap_cache_get_fitting_size(), dt_mipmap_cache_get_matching_size(), dt_mipmap_cache_swap_at_size(), and dt_mipmap_cache_update_buffer_addresses().