![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"#include "common/dwt.h"#include "develop/imageop.h"#include "develop/imageop_gui.h"#include "dtgtk/drawingarea.h"#include "gui/gtk.h"#include "iop/iop_api.h"#include <gtk/gtk.h>#include <stdlib.h>
Include dependency graph for blurs.c:Data Structures | |
| struct | dt_iop_blurs_params_t |
| struct | dt_iop_blurs_gui_data_t |
| struct | dt_iop_blurs_global_data_t |
Macros | |
| #define | FSIZE 5 |
| #define | DEG_TO_RAD 180.f / M_PI_F |
Typedefs | |
| typedef enum dt_iop_blur_type_t | dt_iop_blur_type_t |
| typedef struct dt_iop_blurs_params_t | dt_iop_blurs_params_t |
| typedef struct dt_iop_blurs_gui_data_t | dt_iop_blurs_gui_data_t |
| typedef struct dt_iop_blurs_global_data_t | dt_iop_blurs_global_data_t |
Enumerations | |
| enum | dt_iop_blur_type_t { DT_BLUR_LENS = 0 , DT_BLUR_MOTION = 1 , DT_BLUR_GAUSSIAN = 2 } |
Functions | |
| const char * | name () |
| const char * | aliases () |
| const char ** | description (struct dt_iop_module_t *self) |
| int | flags () |
| int | default_group () |
| int | default_colorspace (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece) |
| void | commit_params (dt_iop_module_t *self, dt_iop_params_t *p1, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece) |
| static void | blur_2D_Bspline (const float *const restrict in, float *const restrict out, const size_t width, const size_t height) |
| static void | init_kernel (float *const restrict buffer, const size_t width, const size_t height) |
| static void | create_lens_kernel (float *const restrict buffer, const size_t width, const size_t height, const float n, const float m, const float k, const float rotation) |
| static void | create_motion_kernel (float *const restrict buffer, const size_t width, const size_t height, const float angle, const float curvature, const float offset) |
| static void | create_gauss_kernel (float *const restrict buffer, const size_t width, const size_t height) |
| static void | build_gui_kernel (unsigned char *const buffer, const size_t width, const size_t height, dt_iop_blurs_params_t *p) |
| static float | compute_norm (float *const buffer, const size_t width, const size_t height) |
| static void | normalize (float *const buffer, const size_t width, const size_t height, const float norm) |
| static void | build_pixel_kernel (float *const buffer, const size_t width, const size_t height, dt_iop_blurs_params_t *p) |
| void | process (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, const void *const restrict ivoid, void *const restrict ovoid, const dt_iop_roi_t *const roi_in, const dt_iop_roi_t *const roi_out) |
| void | gui_changed (dt_iop_module_t *self, GtkWidget *w, void *previous) |
| static gboolean | dt_iop_tonecurve_draw (GtkWidget *widget, cairo_t *crf, gpointer user_data) |
| void | gui_update (dt_iop_module_t *self) |
| void | gui_init (dt_iop_module_t *self) |
| void | gui_cleanup (dt_iop_module_t *self) |
| #define FSIZE 5 |
| typedef enum dt_iop_blur_type_t dt_iop_blur_type_t |
| typedef struct dt_iop_blurs_global_data_t dt_iop_blurs_global_data_t |
| typedef struct dt_iop_blurs_gui_data_t dt_iop_blurs_gui_data_t |
| typedef struct dt_iop_blurs_params_t dt_iop_blurs_params_t |
| enum dt_iop_blur_type_t |
| const char * aliases | ( | ) |
|
inlinestatic |
References DT_ALIGNED_ARRAY, FSIZE, height, and width.
Referenced by build_gui_kernel(), and build_pixel_kernel().
|
inlinestatic |
References blur_2D_Bspline(), create_gauss_kernel(), create_lens_kernel(), create_motion_kernel(), dt_alloc_align_float(), DT_BLUR_GAUSSIAN, DT_BLUR_LENS, DT_BLUR_MOTION, dt_free_align, error(), height, init_kernel(), and width.
Referenced by dt_iop_tonecurve_draw(), and gui_changed().
|
inlinestatic |
References blur_2D_Bspline(), compute_norm(), create_gauss_kernel(), create_lens_kernel(), create_motion_kernel(), dt_alloc_align_float(), DT_BLUR_GAUSSIAN, DT_BLUR_LENS, DT_BLUR_MOTION, dt_free_align, height, init_kernel(), M_PI_F, normalize(), and width.
Referenced by process().
| void commit_params | ( | dt_iop_module_t * | self, |
| dt_iop_params_t * | p1, | ||
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
References dt_dev_pixelpipe_iop_t::data, and dt_iop_module_t::params_size.
|
inlinestatic |
Referenced by build_pixel_kernel().
|
inlinestatic |
Referenced by build_gui_kernel(), and build_pixel_kernel().
|
inlinestatic |
References dt_fast_hypotf(), eps, height, m, M_PI_F, and width.
Referenced by build_gui_kernel(), and build_pixel_kernel().
|
inlinestatic |
References A, B, eps, m, M_PI_F, and width.
Referenced by build_gui_kernel(), and build_pixel_kernel().
| 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_SHARPNESS.
| const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
|
static |
References build_gui_kernel(), dt_alloc_align, dt_free_align, FALSE, dt_iop_module_t::gui_data, dt_iop_module_t::params, and TRUE.
Referenced by gui_init().
| int flags | ( | ) |
References IOP_FLAGS_INCLUDE_IN_STYLES, and IOP_FLAGS_SUPPORTS_BLENDING.
| void gui_changed | ( | dt_iop_module_t * | self, |
| GtkWidget * | w, | ||
| void * | previous | ||
| ) |
References build_gui_kernel(), DT_BLUR_GAUSSIAN, DT_BLUR_LENS, DT_BLUR_MOTION, dt_iop_module_t::gui_data, and dt_iop_module_t::params.
Referenced by gui_update().
| void gui_cleanup | ( | dt_iop_module_t * | self | ) |
References dt_free_align, dt_iop_module_t::gui_data, and IOP_GUI_FREE.
| void gui_init | ( | dt_iop_module_t * | self | ) |
| void gui_update | ( | dt_iop_module_t * | self | ) |
References gui_changed().
|
inlinestatic |
Referenced by build_gui_kernel(), and build_pixel_kernel().
| const char * name | ( | ) |
|
inlinestatic |
Referenced by _update_RGB_colors(), build_pixel_kernel(), legacy_params(), and mask_clipped_pixels().
| void process | ( | struct dt_iop_module_t * | self, |
| dt_dev_pixelpipe_iop_t * | piece, | ||
| const void *const restrict | ivoid, | ||
| void *const restrict | ovoid, | ||
| const dt_iop_roi_t *const | roi_in, | ||
| const dt_iop_roi_t *const | roi_out | ||
| ) |
References build_pixel_kernel(), dt_dev_pixelpipe_iop_t::colors, dt_dev_pixelpipe_iop_t::data, DT_ALIGNED_PIXEL, dt_alloc_align_float(), dt_free_align, dt_iop_have_required_input_format(), for_each_channel, for_four_channels, height, dt_iop_roi_t::height, kernel(), m, MAX, dt_iop_roi_t::scale, width, and dt_iop_roi_t::width.