![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"#include "common/imagebuf.h"#include "common/opencl.h"#include "control/control.h"#include "develop/develop.h"#include "develop/imageop.h"#include "develop/imageop_math.h"#include "develop/imageop_gui.h"#include "develop/tiling.h"#include "gui/gtk.h"#include "gui/presets.h"#include "iop/iop_api.h"#include <assert.h>#include <math.h>#include <stdlib.h>#include <string.h>#include <gtk/gtk.h>#include <inttypes.h>
Include dependency graph for sharpen.c:Data Structures | |
| struct | dt_iop_sharpen_params_t |
| struct | dt_iop_sharpen_gui_data_t |
| struct | dt_iop_sharpen_data_t |
| struct | dt_iop_sharpen_global_data_t |
Macros | |
| #define | MAXR 12 |
Typedefs | |
| typedef struct dt_iop_sharpen_params_t | dt_iop_sharpen_params_t |
| typedef struct dt_iop_sharpen_gui_data_t | dt_iop_sharpen_gui_data_t |
| typedef struct dt_iop_sharpen_data_t | dt_iop_sharpen_data_t |
| typedef struct dt_iop_sharpen_global_data_t | dt_iop_sharpen_global_data_t |
| #define MAXR 12 |
| typedef struct dt_iop_sharpen_data_t dt_iop_sharpen_data_t |
| typedef struct dt_iop_sharpen_global_data_t dt_iop_sharpen_global_data_t |
| typedef struct dt_iop_sharpen_gui_data_t dt_iop_sharpen_gui_data_t |
| typedef struct dt_iop_sharpen_params_t dt_iop_sharpen_params_t |
| void cleanup_global | ( | dt_iop_module_so_t * | module | ) |
| 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, and dt_free_align.
| 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 | ||
| ) |
References d, dt_dev_pixelpipe_iop_t::data, and p.
| int default_colorspace | ( | dt_iop_module_t * | self, |
| dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
References IOP_CS_LAB.
| int default_group | ( | ) |
References IOP_GROUP_SHARPNESS.
| const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
| int flags | ( | ) |
References IOP_FLAGS_ALLOW_TILING, IOP_FLAGS_DEPRECATED, and IOP_FLAGS_SUPPORTS_BLENDING.
| void gui_init | ( | struct dt_iop_module_t * | self | ) |
|
static |
References dt_pixelpipe_cache_alloc_align_float_cache, IS_NULL_PTR, and weight().
Referenced by process(), and process_cl().
| void init_global | ( | dt_iop_module_so_t * | module | ) |
| 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, dt_dev_pixelpipe_iop_t::data_size, and dt_calloc_align().
| void init_presets | ( | dt_iop_module_so_t * | self | ) |
| const char * name | ( | ) |
| __DT_CLONE_TARGETS__ int process | ( | struct 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 | ||
| ) |
References __OMP_PARALLEL_FOR__, dt_iop_sharpen_data_t::amount, copy_pixel(), dt_dev_pixelpipe_iop_t::data, DT_DEV_PIXELPIPE_DISPLAY_MASK, dt_get_perthread, DT_IMGSZ_PERTHREAD, DT_IMGSZ_WIDTH, dt_iop_alloc_image_buffers(), dt_iop_copy_image_roi(), dt_iop_image_copy_by_size(), dt_pixelpipe_cache_free_align, for_four_channels, dt_iop_roi_t::height, i, init_gaussian_kernel(), IS_NULL_PTR, k, dt_dev_pixelpipe_t::mask_display, MAX, MAXR, MIN, ovoid, dt_iop_sharpen_data_t::radius, dt_dev_pixelpipe_iop_t::roi_in, dt_dev_pixelpipe_iop_t::roi_out, dt_iop_roi_t::scale, threshold, dt_iop_sharpen_data_t::threshold, TRUE, width, and dt_iop_roi_t::width.
| int process_cl | ( | struct dt_iop_module_t * | self, |
| const dt_dev_pixelpipe_t * | pipe, | ||
| const dt_dev_pixelpipe_iop_t * | piece, | ||
| cl_mem | dev_in, | ||
| cl_mem | dev_out | ||
| ) |
References d, dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_t::devid, DT_DEBUG_OPENCL, dt_opencl_alloc_device(), dt_opencl_copy_host_to_device_constant(), dt_opencl_enqueue_copy_image(), dt_opencl_enqueue_kernel_2d(), dt_opencl_enqueue_kernel_2d_with_local(), dt_opencl_local_buffer_opt(), dt_opencl_release_mem_object(), dt_opencl_set_kernel_arg(), dt_pixelpipe_cache_free_align, dt_print(), error(), FALSE, dt_iop_module_t::global_data, height, dt_iop_roi_t::height, init_gaussian_kernel(), IS_NULL_PTR, dt_iop_sharpen_global_data_t::kernel_sharpen_hblur, dt_iop_sharpen_global_data_t::kernel_sharpen_mix, dt_iop_sharpen_global_data_t::kernel_sharpen_vblur, MAXR, MIN, dt_dev_pixelpipe_iop_t::roi_in, ROUNDUP, ROUNDUPDHT, ROUNDUPDWD, dt_iop_roi_t::scale, dt_opencl_local_buffer_t::sizex, dt_opencl_local_buffer_t::sizey, TRUE, width, dt_iop_roi_t::width, and dt_opencl_local_buffer_t::xoffset.
| void tiling_callback | ( | struct dt_iop_module_t * | self, |
| const struct dt_dev_pixelpipe_t * | pipe, | ||
| const struct dt_dev_pixelpipe_iop_t * | piece, | ||
| struct dt_develop_tiling_t * | tiling | ||
| ) |
References d, dt_dev_pixelpipe_iop_t::data, MAXR, MIN, dt_dev_pixelpipe_iop_t::roi_in, and dt_iop_roi_t::scale.