![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <assert.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include <inttypes.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "common/debug.h"
#include "common/imageio.h"
#include "common/opencl.h"
#include "control/conf.h"
#include "control/control.h"
#include "develop/develop.h"
#include "develop/imageop.h"
#include "develop/imageop_gui.h"
#include "dtgtk/resetlabel.h"
#include "gui/draw.h"
#include "gui/gtk.h"
#include "gui/presets.h"
#include "iop/iop_api.h"
Data Structures | |
struct | dt_iop_flip_params_t |
struct | dt_iop_flip_global_data_t |
Typedefs | |
typedef struct dt_iop_flip_params_t | dt_iop_flip_params_t |
typedef struct dt_iop_flip_params_t | dt_iop_flip_data_t |
typedef struct dt_iop_flip_global_data_t | dt_iop_flip_global_data_t |
Functions | |
static void | get_corner (const int32_t *aabb, const int i, int32_t *p) |
static void | adjust_aabb (const int32_t *p, int32_t *aabb) |
const char * | name () |
const char * | aliases () |
int | default_group () |
int | operation_tags () |
int | flags () |
int | default_colorspace (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece) |
const char ** | description (struct dt_iop_module_t *self) |
static dt_image_orientation_t | merge_two_orientations (dt_image_orientation_t raw_orientation, dt_image_orientation_t user_orientation) |
int | legacy_params (dt_iop_module_t *self, const void *const old_params, const int old_version, void *new_params, const int new_version) |
static void | backtransform (const int32_t *x, int32_t *o, const dt_image_orientation_t orientation, int32_t iw, int32_t ih) |
int | distort_transform (dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, float *const restrict points, size_t points_count) |
int | distort_backtransform (dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, float *const restrict points, size_t points_count) |
void | distort_mask (struct dt_iop_module_t *self, 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) |
void | modify_roi_out (struct dt_iop_module_t *self, struct dt_dev_pixelpipe_iop_t *piece, dt_iop_roi_t *roi_out, const dt_iop_roi_t *roi_in) |
void | modify_roi_in (struct dt_iop_module_t *self, struct dt_dev_pixelpipe_iop_t *piece, const dt_iop_roi_t *roi_out, dt_iop_roi_t *roi_in) |
void | process (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const void *const ivoid, void *const ovoid, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out) |
void | init_global (dt_iop_module_so_t *self) |
void | cleanup_global (dt_iop_module_so_t *self) |
void | commit_params (struct dt_iop_module_t *self, dt_iop_params_t *p1, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece) |
void | init_pipe (struct dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece) |
void | cleanup_pipe (struct dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece) |
void | init_presets (dt_iop_module_so_t *self) |
void | reload_defaults (dt_iop_module_t *self) |
static void | do_rotate (dt_iop_module_t *self, uint32_t cw) |
static void | rotate_cw (GtkWidget *widget, dt_iop_module_t *self) |
static void | rotate_ccw (GtkWidget *widget, dt_iop_module_t *self) |
static void | _flip_h (GtkWidget *widget, dt_iop_module_t *self) |
static void | _flip_v (GtkWidget *widget, dt_iop_module_t *self) |
void | gui_init (struct dt_iop_module_t *self) |
void | gui_cleanup (struct dt_iop_module_t *self) |
typedef struct dt_iop_flip_params_t dt_iop_flip_data_t |
typedef struct dt_iop_flip_global_data_t dt_iop_flip_global_data_t |
typedef struct dt_iop_flip_params_t dt_iop_flip_params_t |
|
static |
References darktable, dt_iop_module_t::dev, darktable_t::develop, dt_dev_add_history_item, dt_image_orientation(), dt_develop_t::image_storage, ORIENTATION_FLIP_HORIZONTALLY, ORIENTATION_FLIP_VERTICALLY, ORIENTATION_NULL, ORIENTATION_SWAP_XY, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
|
static |
References darktable, dt_iop_module_t::dev, darktable_t::develop, dt_dev_add_history_item, dt_image_orientation(), dt_develop_t::image_storage, ORIENTATION_FLIP_HORIZONTALLY, ORIENTATION_FLIP_VERTICALLY, ORIENTATION_NULL, ORIENTATION_SWAP_XY, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
|
static |
Referenced by modify_roi_in().
const char * aliases | ( | ) |
|
static |
References ORIENTATION_FLIP_X, ORIENTATION_FLIP_Y, and ORIENTATION_SWAP_XY.
Referenced by modify_roi_in().
void cleanup_global | ( | dt_iop_module_so_t * | self | ) |
void cleanup_pipe | ( | struct dt_iop_module_t * | self, |
dt_dev_pixelpipe_t * | pipe, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
References dt_dev_pixelpipe_iop_t::data.
void commit_params | ( | struct dt_iop_module_t * | self, |
dt_iop_params_t * | p1, | ||
dt_dev_pixelpipe_t * | pipe, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
int default_colorspace | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_t * | pipe, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
References IOP_CS_RGB.
int default_group | ( | ) |
References IOP_GROUP_TECHNICAL.
const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
int distort_backtransform | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
float *const restrict | points, | ||
size_t | points_count | ||
) |
void distort_mask | ( | struct dt_iop_module_t * | self, |
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 | ||
) |
int distort_transform | ( | dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
float *const restrict | points, | ||
size_t | points_count | ||
) |
|
static |
References darktable, dt_iop_module_t::dev, darktable_t::develop, dt_dev_add_history_item, dt_image_orientation(), dt_develop_t::image_storage, ORIENTATION_FLIP_X, ORIENTATION_FLIP_Y, ORIENTATION_NULL, ORIENTATION_SWAP_XY, dt_iop_module_t::params, and TRUE.
Referenced by rotate_ccw(), and rotate_cw().
int flags | ( | ) |
|
static |
Referenced by modify_roi_in().
void gui_cleanup | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_module_t::gui_data.
void gui_init | ( | struct dt_iop_module_t * | self | ) |
void init_global | ( | dt_iop_module_so_t * | self | ) |
void init_pipe | ( | struct dt_iop_module_t * | self, |
dt_dev_pixelpipe_t * | pipe, | ||
dt_dev_pixelpipe_iop_t * | piece | ||
) |
References dt_dev_pixelpipe_iop_t::data, and dt_dev_pixelpipe_iop_t::data_size.
void init_presets | ( | dt_iop_module_so_t * | self | ) |
References darktable, darktable_t::db, DEVELOP_BLEND_CS_NONE, dt_database_release_transaction, dt_database_start_transaction, dt_gui_presets_add_generic(), dt_gui_presets_update_autoapply(), dt_iop_module_so_t::op, ORIENTATION_FLIP_HORIZONTALLY, ORIENTATION_FLIP_VERTICALLY, ORIENTATION_NONE, ORIENTATION_NULL, ORIENTATION_ROTATE_180_DEG, ORIENTATION_ROTATE_CCW_90_DEG, and ORIENTATION_ROTATE_CW_90_DEG.
int legacy_params | ( | dt_iop_module_t * | self, |
const void *const | old_params, | ||
const int | old_version, | ||
void * | new_params, | ||
const int | new_version | ||
) |
|
static |
References ORIENTATION_FLIP_X, ORIENTATION_FLIP_Y, and ORIENTATION_SWAP_XY.
Referenced by legacy_params(), and reload_defaults().
void modify_roi_in | ( | struct dt_iop_module_t * | self, |
struct dt_dev_pixelpipe_iop_t * | piece, | ||
const dt_iop_roi_t * | roi_out, | ||
dt_iop_roi_t * | roi_in | ||
) |
void modify_roi_out | ( | struct dt_iop_module_t * | self, |
struct dt_dev_pixelpipe_iop_t * | piece, | ||
dt_iop_roi_t * | roi_out, | ||
const dt_iop_roi_t * | roi_in | ||
) |
const char * name | ( | ) |
int operation_tags | ( | ) |
References IOP_TAG_DISTORT.
void process | ( | struct dt_iop_module_t * | self, |
dt_dev_pixelpipe_iop_t * | piece, | ||
const void *const | ivoid, | ||
void *const | ovoid, | ||
const dt_iop_roi_t *const | roi_in, | ||
const dt_iop_roi_t *const | roi_out | ||
) |
void reload_defaults | ( | dt_iop_module_t * | self | ) |
References darktable, darktable_t::db, dt_iop_module_t::default_enabled, dt_iop_module_t::default_params, dt_iop_module_t::dev, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_image_orientation(), dt_image_t::id, dt_develop_t::image_storage, dt_image_t::legacy_flip, merge_two_orientations(), dt_iop_flip_params_t::orientation, ORIENTATION_NULL, and dt_image_raw_parameters_t::user_flip.
|
static |
References do_rotate().
Referenced by gui_init().
|
static |
References do_rotate().
Referenced by gui_init().