![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"#include "common/interpolation.h"#include "common/math.h"#include "develop/develop.h"#include "develop/imageop.h"#include "develop/tiling.h"#include "gui/gtk.h"#include "iop/iop_api.h"#include <stdlib.h>
Include dependency graph for rotatepixels.c:Go to the source code of this file.
Data Structures | |
| struct | dt_iop_rotatepixels_gui_data_t |
| struct | dt_iop_rotatepixels_params_t |
| struct | dt_iop_rotatepixels_data_t |
Typedefs | |
| typedef struct dt_iop_rotatepixels_gui_data_t | dt_iop_rotatepixels_gui_data_t |
| typedef struct dt_iop_rotatepixels_params_t | dt_iop_rotatepixels_params_t |
| typedef struct dt_iop_rotatepixels_data_t | dt_iop_rotatepixels_data_t |
Variables | |
| dt_iop_rotatepixels_gui_data_t | dummy |
| typedef struct dt_iop_rotatepixels_data_t dt_iop_rotatepixels_data_t |
| typedef struct dt_iop_rotatepixels_gui_data_t dt_iop_rotatepixels_gui_data_t |
| typedef struct dt_iop_rotatepixels_params_t dt_iop_rotatepixels_params_t |
|
static |
|
static |
Definition at line 131 of file rotatepixels.c.
References d, mul_mat_vec_2(), and x.
Referenced by distort_backtransform(), modify_roi_in(), and process().
| void cleanup_pipe | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 350 of file rotatepixels.c.
References dt_dev_pixelpipe_iop_t::data, and dt_free_align.
| void commit_params | ( | dt_iop_module_t * | self, |
| dt_iop_params_t * | p1, | ||
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 325 of file rotatepixels.c.
References d, dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_iop_t::enabled, k, M_PI, and p.
| int default_colorspace | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 104 of file rotatepixels.c.
References IOP_CS_RGB.
| int default_group | ( | ) |
Definition at line 94 of file rotatepixels.c.
References IOP_GROUP_TECHNICAL.
| const char ** description | ( | struct dt_iop_module_t * | self | ) |
Definition at line 109 of file rotatepixels.c.
References dt_iop_set_description().
| int distort_backtransform | ( | dt_iop_module_t * | self, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece, | ||
| float *const restrict | points, | ||
| size_t | points_count | ||
| ) |
Definition at line 164 of file rotatepixels.c.
References __OMP_PARALLEL_FOR_SIMD__, backtransform(), dt_dev_pixelpipe_iop_t::buf_in, i, and dt_iop_roi_t::scale.
| void distort_mask | ( | struct dt_iop_module_t * | self, |
| const struct dt_dev_pixelpipe_t * | pipe, | ||
| struct dt_dev_pixelpipe_iop_t * | piece, | ||
| const float *const | in, | ||
| float *const | out, | ||
| const dt_iop_roi_t *const | roi_in, | ||
| const dt_iop_roi_t *const | roi_out | ||
| ) |
Definition at line 185 of file rotatepixels.c.
References dt_iop_roi_t::height, out, void(), and dt_iop_roi_t::width.
| int distort_transform | ( | dt_iop_module_t * | self, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece, | ||
| float *const restrict | points, | ||
| size_t | points_count | ||
| ) |
Definition at line 143 of file rotatepixels.c.
References __OMP_PARALLEL_FOR_SIMD__, dt_dev_pixelpipe_iop_t::buf_in, i, dt_iop_roi_t::scale, and transform().
| int flags | ( | ) |
Definition at line 88 of file rotatepixels.c.
References IOP_FLAGS_ALLOW_TILING, IOP_FLAGS_ONE_INSTANCE, IOP_FLAGS_TILING_FULL_ROI, and IOP_FLAGS_UNSAFE_COPY.
|
static |
Definition at line 69 of file rotatepixels.c.
Referenced by modify_roi_in().
| void gui_init | ( | dt_iop_module_t * | self | ) |
Definition at line 378 of file rotatepixels.c.
References dt_ui_label_new(), IOP_GUI_ALLOC, TRUE, and dt_iop_module_t::widget.
| void gui_update | ( | dt_iop_module_t * | self | ) |
Refresh GUI controls from current params and configuration.
Definition at line 375 of file rotatepixels.c.
| void init_pipe | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
Definition at line 344 of file rotatepixels.c.
References dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_iop_t::data_size, and dt_calloc_align().
| void modify_roi_in | ( | dt_iop_module_t * | self, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece, | ||
| const dt_iop_roi_t *const | roi_out, | ||
| dt_iop_roi_t * | roi_in | ||
| ) |
Definition at line 242 of file rotatepixels.c.
References adjust_aabb(), backtransform(), dt_dev_pixelpipe_iop_t::buf_in, dt_interpolation_new(), DT_INTERPOLATION_USERPREF, get_corner(), dt_iop_roi_t::height, p, dt_iop_roi_t::scale, dt_interpolation::width, dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.
| void modify_roi_out | ( | dt_iop_module_t * | self, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece, | ||
| dt_iop_roi_t * | roi_out, | ||
| const dt_iop_roi_t *const | roi_in | ||
| ) |
Definition at line 197 of file rotatepixels.c.
References d, dt_dev_pixelpipe_iop_t::data, dt_interpolation_new(), DT_INTERPOLATION_USERPREF, dt_iop_roi_t::height, MAX, dt_iop_roi_t::scale, dt_interpolation::width, dt_iop_roi_t::width, and x.
| const char * name | ( | ) |
Definition at line 83 of file rotatepixels.c.
| int operation_tags | ( | ) |
Definition at line 99 of file rotatepixels.c.
References IOP_TAG_DISTORT.
| __DT_CLONE_TARGETS__ int process | ( | dt_iop_module_t * | self, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece, | ||
| const void *const | ivoid, | ||
| void *const | ovoid | ||
| ) |
Definition at line 288 of file rotatepixels.c.
References __OMP_PARALLEL_FOR__, backtransform(), ch, dt_iop_buffer_dsc_t::channels, dt_dev_pixelpipe_iop_t::dsc_in, dt_interpolation_compute_pixel4c(), dt_interpolation_new(), DT_INTERPOLATION_USERPREF, dt_iop_roi_t::height, i, out, ovoid, dt_dev_pixelpipe_iop_t::roi_in, dt_dev_pixelpipe_iop_t::roi_out, dt_iop_roi_t::scale, void(), dt_iop_roi_t::width, dt_iop_roi_t::x, and dt_iop_roi_t::y.
| void reload_defaults | ( | dt_iop_module_t * | self | ) |
Definition at line 356 of file rotatepixels.c.
References d, dt_iop_module_t::default_enabled, dt_iop_module_t::default_params, dt_iop_module_t::dev, dt_image_t::fuji_rotation_pos, dt_iop_module_t::hide_enable_button, dt_develop_t::image_storage, and dt_iop_module_t::widget.
|
static |
Definition at line 119 of file rotatepixels.c.
References d, mul_mat_vec_2(), and x.
Referenced by distort_transform().
Definition at line 66 of file rotatepixels.c.