![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "develop/dev_snapshot.h"#include "common/darktable.h"#include "common/history.h"#include "common/interpolation.h"#include "common/iop_order.h"#include "common/mipmap_cache.h"#include "develop/dev_history.h"#include "develop/develop.h"#include "develop/pixelpipe_cache.h"#include "develop/pixelpipe_hb.h"#include <math.h>
Include dependency graph for dev_snapshot.c:Go to the source code of this file.
Functions | |
| void | dt_dev_snapshot_clear (dt_dev_snapshot_t *snap) |
| static cairo_surface_t * | _render (dt_develop_t *frozen, float scale) |
| gboolean | dt_dev_snapshot_capture (dt_dev_snapshot_t *snap, int32_t imgid, float scale, GList *history_override, GList *iop_order_override, int32_t history_end_override) |
| static void | _build_display_image (dt_dev_snapshot_t *snap, float render_scale, float vis_x0, float vis_y0, float vis_x1, float vis_y1) |
| 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) |
|
static |
Definition at line 225 of file dev_snapshot.c.
References dt_dev_snapshot_t::crop_h, dt_dev_snapshot_t::crop_w, dt_dev_snapshot_t::crop_x, dt_dev_snapshot_t::crop_y, darktable, dt_dev_snapshot_t::display_image, dt_dev_snapshot_t::display_scale, dt_alloc_align_float(), dt_free_align, DT_INTERPOLATION_MITCHELL, dt_interpolation_new(), dt_interpolation_resample(), darktable_t::gui, dt_dev_snapshot_t::image, IS_NULL_PTR, MAX, mitchell(), dt_gui_gtk_t::ppd, row, x, and dt_iop_roi_t::x.
Referenced by dt_dev_snapshot_draw().
|
static |
Definition at line 50 of file dev_snapshot.c.
References dt_dev_pixelpipe_t::backbuf, dt_mipmap_buffer_t::buf, cleanup(), darktable, darktable_t::develop, DT_DEBUG_DEV, dt_dev_backbuf_get_hash(), dt_dev_pixelpipe_cache_rdlock_entry(), dt_dev_pixelpipe_cache_ref_count_entry(), dt_dev_pixelpipe_cache_ref_entry_by_hash(), dt_dev_pixelpipe_cleanup(), dt_dev_pixelpipe_create_nodes(), dt_dev_pixelpipe_get_roi_out(), dt_dev_pixelpipe_init_preview(), dt_dev_pixelpipe_process(), dt_dev_pixelpipe_propagate_formats(), dt_dev_pixelpipe_set_icc(), dt_dev_pixelpipe_set_input(), dt_dev_pixelpipe_synch_all, DT_MIPMAP_BLOCKING, dt_mipmap_cache_get, dt_mipmap_cache_release, DT_MIPMAP_FULL, dt_pixel_cache_entry_get_size(), DT_PIXELPIPE_CACHE_HASH_INVALID, dt_print(), FALSE, darktable_t::gui, dt_mipmap_buffer_t::height, dt_backbuf_t::height, dt_dev_pixelpipe_t::icc_filename, dt_dev_pixelpipe_t::icc_intent, dt_dev_pixelpipe_t::icc_type, dt_image_t::id, dt_dev_pixelpipe_t::iheight, dt_develop_t::image_storage, IS_NULL_PTR, dt_mipmap_buffer_t::iscale, dt_dev_pixelpipe_t::iwidth, MAX, darktable_t::mipmap_cache, darktable_t::pixelpipe_cache, dt_gui_gtk_t::ppd, dt_develop_t::preview_pipe, dt_dev_pixelpipe_t::processed_height, dt_dev_pixelpipe_t::processed_width, TRUE, dt_mipmap_buffer_t::width, dt_backbuf_t::width, and dt_iop_roi_t::x.
Referenced by dt_dev_snapshot_capture().
| gboolean dt_dev_snapshot_capture | ( | dt_dev_snapshot_t * | snap, |
| int32_t | imgid, | ||
| float | scale, | ||
| GList * | history_override, | ||
| GList * | iop_order_override, | ||
| int32_t | history_end_override | ||
| ) |
Definition at line 154 of file dev_snapshot.c.
References _render(), DT_DEBUG_DEV, dt_dev_cleanup(), dt_dev_create_module_instance(), dt_dev_get_module_instance(), dt_dev_history_compute_hash(), dt_dev_history_free_history(), dt_dev_init(), dt_dev_load_image(), 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_print(), FALSE, dt_develop_t::history, dt_dev_snapshot_t::image, dt_develop_t::iop, dt_develop_t::iop_order_list, IS_NULL_PTR, dt_dev_history_item_t::multi_name, dt_dev_history_item_t::multi_priority, dt_dev_history_item_t::op_name, and dt_dev_snapshot_t::sample_scale.
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 33 of file dev_snapshot.c.
References dt_dev_snapshot_t::crop_h, dt_dev_snapshot_t::crop_w, dt_dev_snapshot_t::crop_x, dt_dev_snapshot_t::crop_y, dt_dev_snapshot_t::display_image, dt_dev_snapshot_t::display_scale, dt_dev_snapshot_t::image, IS_NULL_PTR, and dt_dev_snapshot_t::sample_scale.
Referenced by _lib_duplicate_init_callback(), _lib_snapshot_clear_state(), 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 351 of file dev_snapshot.c.
References _build_display_image(), dt_dev_snapshot_t::crop_x, dt_dev_snapshot_t::crop_y, darktable, dt_dev_snapshot_t::display_image, double(), dt_dev_get_zoom_level(), darktable_t::gui, height, dt_dev_snapshot_t::image, IS_NULL_PTR, dt_gui_gtk_t::ppd, dt_develop_t::roi, dt_dev_snapshot_t::sample_scale, width, dt_develop_t::x, and dt_develop_t::y.
Referenced by gui_post_expose().