![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <cairo.h>#include <glib.h>#include <stdint.h>
Include dependency graph for dev_snapshot.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | dt_dev_snapshot_t |
Typedefs | |
| typedef struct dt_dev_snapshot_t | dt_dev_snapshot_t |
Functions | |
| gboolean | dt_dev_snapshot_capture (dt_dev_snapshot_t *snap, struct dt_develop_t *dev, int32_t imgid, GList *history_override, GList *iop_order_override, int32_t history_end_override) |
| void | dt_dev_snapshot_clear (dt_dev_snapshot_t *snap) |
| gboolean | dt_dev_snapshot_is_valid (const dt_dev_snapshot_t *snap) |
| void | dt_dev_snapshot_draw (dt_dev_snapshot_t *snap, cairo_t *cri, struct dt_develop_t *dev, int32_t width, int32_t height, double clip_x, double clip_y, double clip_w, double clip_h) |
| typedef struct dt_dev_snapshot_t dt_dev_snapshot_t |
| gboolean dt_dev_snapshot_capture | ( | dt_dev_snapshot_t * | snap, |
| struct dt_develop_t * | dev, | ||
| int32_t | imgid, | ||
| GList * | history_override, | ||
| GList * | iop_order_override, | ||
| int32_t | history_end_override | ||
| ) |
Definition at line 341 of file dev_snapshot.c.
References _compute_main_roi(), _engine_unref(), _sync_main_now(), _sync_preview_now(), dt_mipmap_buffer_t::buf, dt_dev_snapshot_engine_t::captured, dt_dev_snapshot_engine_t::destroying, dt_atomic_set_int(), DT_DEBUG_DEV, dt_dev_cleanup(), dt_dev_create_module_instance(), dt_dev_get_global(), dt_dev_get_module_instance(), dt_dev_history_compute_hash(), dt_dev_history_free_history(), dt_dev_init(), dt_dev_load_image(), dt_dev_pixelpipe_cleanup(), dt_dev_pixelpipe_create_nodes(), dt_dev_pixelpipe_get_roi_out(), dt_dev_pixelpipe_init(), dt_dev_pixelpipe_propagate_formats(), dt_dev_pixelpipe_set_icc(), dt_dev_pixelpipe_set_input(), dt_dev_pixelpipe_synch_all, dt_dev_set_history_end_ext(), dt_dev_set_history_hash(), dt_dev_snapshot_clear(), dt_free, dt_free_gpointer(), dt_iop_get_module_by_op_priority(), dt_masks_replace_current_forms(), DT_MIPMAP_BLOCKING, dt_mipmap_cache_get, dt_mipmap_cache_release, DT_MIPMAP_FULL, dt_print(), dt_pthread_mutex_destroy(), dt_pthread_mutex_init(), dt_dev_snapshot_t::engine, FALSE, dt_dev_history_item_t::forms, dt_dev_snapshot_engine_t::frozen, dt_mipmap_buffer_t::height, dt_develop_t::history, i, dt_dev_pixelpipe_t::icc_filename, dt_dev_pixelpipe_t::icc_intent, dt_dev_pixelpipe_t::icc_type, dt_image_t::id, dt_develop_t::image_storage, dt_develop_t::iop, dt_develop_t::iop_order_list, IS_NULL_PTR, dt_mipmap_buffer_t::iscale, dt_dev_snapshot_engine_t::lock, dt_dev_history_item_t::multi_name, dt_dev_history_item_t::multi_priority, dt_dev_history_item_t::op_name, p, dt_dev_snapshot_engine_t::pipe, dt_dev_snapshot_engine_t::preview_pipe, dt_develop_t::preview_pipe, dt_dev_snapshot_engine_t::raw_height, dt_dev_snapshot_engine_t::raw_iscale, dt_dev_snapshot_engine_t::raw_width, dt_dev_snapshot_engine_t::ref_count, TRUE, and dt_mipmap_buffer_t::width.
Referenced by _lib_duplicate_thumb_press_callback(), and _lib_snapshot_capture_state().
| void dt_dev_snapshot_clear | ( | dt_dev_snapshot_t * | snap | ) |
Definition at line 123 of file dev_snapshot.c.
References _engine_unref(), dt_dev_snapshot_engine_t::destroying, dt_atomic_set_int(), dt_control_job_cancel(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_dev_snapshot_t::engine, IS_NULL_PTR, dt_dev_snapshot_engine_t::job, dt_dev_snapshot_engine_t::lock, and TRUE.
Referenced by _lib_duplicate_init_callback(), _lib_snapshot_clear_state(), _lib_snapshots_add_button_clicked_callback(), dt_dev_snapshot_capture(), gui_cleanup(), and view_leave().
| void dt_dev_snapshot_draw | ( | dt_dev_snapshot_t * | snap, |
| cairo_t * | cri, | ||
| struct dt_develop_t * | dev, | ||
| int32_t | width, | ||
| int32_t | height, | ||
| double | clip_x, | ||
| double | clip_y, | ||
| double | clip_w, | ||
| double | clip_h | ||
| ) |
Definition at line 529 of file dev_snapshot.c.
References _compute_main_roi(), _draw_preview_fallback(), _roi_equal(), _schedule_main_recompute(), _sync_preview_now(), dt_dev_get_background_color(), dt_dev_lock_pipe_surface(), dt_dev_render_locked_surface(), dt_dev_viewport_border_size(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_dev_snapshot_t::engine, FALSE, height, IS_NULL_PTR, dt_dev_snapshot_engine_t::last_roi, dt_dev_snapshot_engine_t::lock, dt_dev_snapshot_engine_t::locked, dt_dev_snapshot_engine_t::pipe, dt_dev_snapshot_engine_t::preview_roi_valid, dt_dev_snapshot_engine_t::roi_valid, dt_dev_locked_surface_t::surface, dt_dev_snapshot_engine_t::wait, and width.
Referenced by gui_post_expose().
| gboolean dt_dev_snapshot_is_valid | ( | const dt_dev_snapshot_t * | snap | ) |
Definition at line 143 of file dev_snapshot.c.
References dt_dev_snapshot_engine_t::captured, dt_dev_snapshot_t::engine, and IS_NULL_PTR.
Referenced by _lib_snapshots_toggled_callback(), and gui_post_expose().