![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Generic float RGBA patch stored either in malloc memory or pixel cache. More...
#include <cache.h>
Collaboration diagram for dt_drawlayer_cache_patch_t:Data Fields | |
| int | x |
| int | y |
| int | width |
| int | height |
| float * | pixels |
| dt_pixel_cache_entry_t * | cache_entry |
| uint64_t | cache_hash |
| gboolean | external_alloc |
Generic float RGBA patch stored either in malloc memory or pixel cache.
| dt_pixel_cache_entry_t* dt_drawlayer_cache_patch_t::cache_entry |
Optional shared pixel-cache owner entry.
Referenced by _ensure_external_patch_buffer(), _refresh_piece_base_cache(), _rekey_shared_base_patch(), dt_drawlayer_cache_ensure_process_patch_buffer(), dt_drawlayer_cache_patch_alloc_shared(), dt_drawlayer_cache_patch_clear(), dt_drawlayer_cache_patch_rdlock(), dt_drawlayer_cache_patch_rdunlock(), dt_drawlayer_cache_patch_wrlock(), and dt_drawlayer_cache_patch_wrunlock().
| uint64_t dt_drawlayer_cache_patch_t::cache_hash |
Cache identity hash for cache_entry.
Referenced by _ensure_external_patch_buffer(), _refresh_piece_base_cache(), _rekey_shared_base_patch(), dt_drawlayer_cache_ensure_process_patch_buffer(), dt_drawlayer_cache_patch_alloc_shared(), and dt_drawlayer_cache_patch_clear().
| gboolean dt_drawlayer_cache_patch_t::external_alloc |
TRUE when pixels is externally owned.
Referenced by _ensure_external_patch_buffer(), dt_drawlayer_cache_ensure_process_patch_buffer(), dt_drawlayer_cache_patch_alloc_shared(), and dt_drawlayer_cache_patch_clear().
| int dt_drawlayer_cache_patch_t::height |
Patch height in pixels.
Referenced by _copy_patch_rect(), _ensure_external_patch_buffer(), _refresh_piece_base_cache(), _rekey_shared_base_patch(), dt_drawlayer_brush_rasterize(), dt_drawlayer_build_process_patch_from_base(), dt_drawlayer_cache_build_process_blend_rois(), dt_drawlayer_cache_ensure_process_patch_buffer(), dt_drawlayer_cache_flush_process_patch_to_base(), dt_drawlayer_cache_patch_alloc_shared(), dt_drawlayer_cache_populate_process_patch_from_base(), dt_drawlayer_process_state_publish_locked(), dt_drawlayer_process_state_reset_stroke(), and process().
| float* dt_drawlayer_cache_patch_t::pixels |
Interleaved RGBA float pixel buffer.
Referenced by _copy_patch_rect(), _ensure_external_patch_buffer(), _refresh_piece_base_cache(), _rekey_shared_base_patch(), _sync_runtime_state_from_inputs(), dt_drawlayer_brush_rasterize(), dt_drawlayer_build_process_patch_from_base(), dt_drawlayer_cache_ensure_process_patch_buffer(), dt_drawlayer_cache_flush_process_patch_to_base(), dt_drawlayer_cache_patch_alloc_shared(), dt_drawlayer_cache_patch_clear(), dt_drawlayer_cache_populate_process_patch_from_base(), dt_drawlayer_cache_resample_process_patch_to_output(), dt_drawlayer_process_state_publish_locked(), dt_drawlayer_process_state_reset_stroke(), and process().
| int dt_drawlayer_cache_patch_t::width |
Patch width in pixels.
Referenced by _copy_patch_rect(), _ensure_external_patch_buffer(), _refresh_piece_base_cache(), _rekey_shared_base_patch(), dt_drawlayer_brush_rasterize(), dt_drawlayer_build_process_patch_from_base(), dt_drawlayer_cache_build_process_blend_rois(), dt_drawlayer_cache_ensure_process_patch_buffer(), dt_drawlayer_cache_flush_process_patch_to_base(), dt_drawlayer_cache_patch_alloc_shared(), dt_drawlayer_cache_populate_process_patch_from_base(), dt_drawlayer_cache_resample_process_patch_to_output(), dt_drawlayer_process_state_publish_locked(), dt_drawlayer_process_state_reset_stroke(), and process().
| int dt_drawlayer_cache_patch_t::x |
Patch origin X in layer coordinates.
Referenced by _ensure_external_patch_buffer(), _process_backend_dab(), _rasterize_pending_dab_batch(), _refresh_piece_base_cache(), dt_drawlayer_brush_rasterize(), dt_drawlayer_cache_ensure_process_patch_buffer(), dt_drawlayer_cache_patch_alloc_shared(), dt_drawlayer_cache_populate_process_patch_from_base(), and dt_drawlayer_worker_replay_finished_stroke_to_base_patch().
| int dt_drawlayer_cache_patch_t::y |
Patch origin Y in layer coordinates.
Referenced by _ensure_external_patch_buffer(), _process_backend_dab(), _rasterize_pending_dab_batch(), _refresh_piece_base_cache(), dt_drawlayer_brush_rasterize(), dt_drawlayer_cache_ensure_process_patch_buffer(), dt_drawlayer_cache_patch_alloc_shared(), and dt_drawlayer_cache_populate_process_patch_from_base().