![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "iop/drawlayer/coordinates.h"
Include dependency graph for coordinates.c:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| static void | _virtual_piece_input_offset (dt_iop_module_t *self, int *x, int *y) |
| gboolean | dt_drawlayer_widget_points_to_layer_coords (dt_iop_module_t *self, float *pts, const int count) |
| gboolean | dt_drawlayer_layer_points_to_widget_coords (dt_iop_module_t *self, float *pts, const int count) |
| gboolean | dt_drawlayer_widget_to_layer_coords (dt_iop_module_t *self, const double wx, const double wy, float *lx, float *ly) |
| gboolean | dt_drawlayer_layer_to_widget_coords (dt_iop_module_t *self, const float x, const float y, float *wx, float *wy) |
| gboolean | dt_drawlayer_layer_bounds_to_widget_bounds (dt_iop_module_t *self, const float x0, const float y0, const float x1, const float y1, float *left, float *top, float *right, float *bottom) |
| float | dt_drawlayer_widget_brush_radius (dt_iop_module_t *self, const dt_drawlayer_brush_dab_t *dab, const float fallback) |
| float | dt_drawlayer_current_live_padding (dt_iop_module_t *self) |
| gboolean | dt_drawlayer_compute_view_patch (dt_iop_module_t *self, const float padding, drawlayer_view_patch_info_t *view) |
| gboolean | dt_drawlayer_compute_process_patch_geometry (const dt_dev_pixelpipe_iop_t *piece, const dt_iop_roi_t *roi_in, const dt_iop_roi_t *roi_out, const int base_width, const int base_height, const float brush_radius, dt_drawlayer_process_patch_geometry_t *geometry) |
|
static |
| gboolean dt_drawlayer_compute_process_patch_geometry | ( | const dt_dev_pixelpipe_iop_t * | piece, |
| const dt_iop_roi_t * | roi_in, | ||
| const dt_iop_roi_t * | roi_out, | ||
| const int | base_width, | ||
| const int | base_height, | ||
| const float | brush_radius, | ||
| dt_drawlayer_process_patch_geometry_t * | geometry | ||
| ) |
References dt_drawlayer_process_patch_geometry_t::combined_roi, dt_drawlayer_cache_build_combined_process_roi_for_piece(), FALSE, dt_iop_roi_t::height, MAX, dt_drawlayer_process_patch_geometry_t::padded_roi, dt_drawlayer_process_patch_geometry_t::patch_height, dt_drawlayer_process_patch_geometry_t::patch_width, dt_dev_pixelpipe_iop_t::pipe, dt_drawlayer_process_patch_geometry_t::process_pad, dt_drawlayer_process_patch_geometry_t::process_roi, dt_iop_roi_t::scale, dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.
Referenced by dt_drawlayer_build_process_patch_from_base().
| gboolean dt_drawlayer_compute_view_patch | ( | dt_iop_module_t * | self, |
| const float | padding, | ||
| drawlayer_view_patch_info_t * | view | ||
| ) |
References dt_develop_t::border_size, dt_iop_module_t::dev, dt_dev_get_overlay_scale(), dt_drawlayer_widget_points_to_layer_coords(), FALSE, i, MAX, MIN, dt_develop_t::orig_height, dt_develop_t::orig_width, dt_develop_t::preview_height, dt_develop_t::preview_width, dt_develop_t::raw_height, dt_develop_t::raw_width, dt_develop_t::roi, and view().
Referenced by _ensure_widget_cache().
| float dt_drawlayer_current_live_padding | ( | dt_iop_module_t * | self | ) |
References _conf_brush_shape(), _conf_hardness(), _conf_size(), and dt_drawlayer_brush_dab_t::radius.
Referenced by _fill_runtime_inputs().
| gboolean dt_drawlayer_layer_bounds_to_widget_bounds | ( | dt_iop_module_t * | self, |
| const float | x0, | ||
| const float | y0, | ||
| const float | x1, | ||
| const float | y1, | ||
| float * | left, | ||
| float * | top, | ||
| float * | right, | ||
| float * | bottom | ||
| ) |
References dt_iop_module_t::dev, dt_drawlayer_layer_points_to_widget_coords(), FALSE, i, top, TRUE, and dt_develop_t::virtual_pipe.
Referenced by _ensure_widget_cache().
| gboolean dt_drawlayer_layer_points_to_widget_coords | ( | dt_iop_module_t * | self, |
| float * | pts, | ||
| const int | count | ||
| ) |
References _virtual_piece_input_offset(), dt_iop_module_t::dev, dt_dev_coordinates_image_abs_to_image_norm(), dt_dev_coordinates_image_norm_to_widget(), dt_dev_distort_transform_plus(), DT_DEV_TRANSFORM_DIR_FORW_EXCL, FALSE, i, dt_iop_module_t::iop_order, TRUE, and dt_develop_t::virtual_pipe.
Referenced by dt_drawlayer_layer_bounds_to_widget_bounds(), dt_drawlayer_layer_to_widget_coords(), and dt_drawlayer_widget_brush_radius().
| gboolean dt_drawlayer_layer_to_widget_coords | ( | dt_iop_module_t * | self, |
| const float | x, | ||
| const float | y, | ||
| float * | wx, | ||
| float * | wy | ||
| ) |
References dt_iop_module_t::dev, dt_drawlayer_layer_points_to_widget_coords(), FALSE, TRUE, dt_develop_t::virtual_pipe, and x.
Referenced by _paint_layer_to_widget_cb().
| float dt_drawlayer_widget_brush_radius | ( | dt_iop_module_t * | self, |
| const dt_drawlayer_brush_dab_t * | dab, | ||
| const float | fallback | ||
| ) |
| gboolean dt_drawlayer_widget_points_to_layer_coords | ( | dt_iop_module_t * | self, |
| float * | pts, | ||
| const int | count | ||
| ) |
References _virtual_piece_input_offset(), dt_iop_module_t::dev, dt_dev_coordinates_image_norm_to_image_abs(), dt_dev_coordinates_widget_to_image_norm(), dt_dev_distort_backtransform_plus(), DT_DEV_TRANSFORM_DIR_FORW_EXCL, FALSE, i, dt_iop_module_t::iop_order, TRUE, and dt_develop_t::virtual_pipe.
Referenced by dt_drawlayer_compute_view_patch(), and dt_drawlayer_widget_to_layer_coords().
| gboolean dt_drawlayer_widget_to_layer_coords | ( | dt_iop_module_t * | self, |
| const double | wx, | ||
| const double | wy, | ||
| float * | lx, | ||
| float * | ly | ||
| ) |
References dt_iop_module_t::dev, dt_drawlayer_widget_points_to_layer_coords(), FALSE, TRUE, and dt_develop_t::virtual_pipe.
Referenced by _fill_input_layer_coords(), dt_drawlayer_build_worker_input_dab(), and gui_post_expose().