![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "bauhaus/bauhaus.h"#include "common/nlmeans_core.h"#include "common/opencl.h"#include "control/control.h"#include "develop/imageop.h"#include "develop/imageop_math.h"#include "develop/imageop_gui.h"#include "develop/tiling.h"#include "gui/gtk.h"#include "iop/iop_api.h"#include <gtk/gtk.h>#include <stdlib.h>
Include dependency graph for nlmeans.c:Data Structures | |
| struct | dt_iop_nlmeans_params_v1_t |
| struct | dt_iop_nlmeans_params_t |
| struct | dt_iop_nlmeans_gui_data_t |
| struct | dt_iop_nlmeans_global_data_t |
Macros | |
| #define | USE_NEW_IMPL_CL 0 |
| #define | NUM_BUCKETS 4 |
Typedefs | |
| typedef struct dt_iop_nlmeans_params_v1_t | dt_iop_nlmeans_params_v1_t |
| typedef struct dt_iop_nlmeans_params_t | dt_iop_nlmeans_params_t |
| typedef struct dt_iop_nlmeans_gui_data_t | dt_iop_nlmeans_gui_data_t |
| typedef dt_iop_nlmeans_params_t | dt_iop_nlmeans_data_t |
| typedef struct dt_iop_nlmeans_global_data_t | dt_iop_nlmeans_global_data_t |
| #define NUM_BUCKETS 4 |
| #define USE_NEW_IMPL_CL 0 |
| typedef struct dt_iop_nlmeans_global_data_t dt_iop_nlmeans_global_data_t |
| typedef struct dt_iop_nlmeans_gui_data_t dt_iop_nlmeans_gui_data_t |
| typedef struct dt_iop_nlmeans_params_t dt_iop_nlmeans_params_t |
| typedef struct dt_iop_nlmeans_params_v1_t dt_iop_nlmeans_params_v1_t |
|
inlinestatic |
| const char * aliases | ( | ) |
|
static |
Referenced by process_cl().
| void cleanup_global | ( | dt_iop_module_so_t * | module | ) |
References dt_iop_module_so_t::data, dt_free, dt_opencl_free_kernel(), dt_iop_nlmeans_global_data_t::kernel_nlmeans_accu, dt_iop_nlmeans_global_data_t::kernel_nlmeans_dist, dt_iop_nlmeans_global_data_t::kernel_nlmeans_finish, dt_iop_nlmeans_global_data_t::kernel_nlmeans_horiz, dt_iop_nlmeans_global_data_t::kernel_nlmeans_init, and dt_iop_nlmeans_global_data_t::kernel_nlmeans_vert.
| 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 * | params, | ||
| dt_dev_pixelpipe_t * | pipe, | ||
| dt_dev_pixelpipe_iop_t * | piece | ||
| ) |
commit is the synch point between core and gui, so it copies params to pipe data.
References d, dt_dev_pixelpipe_iop_t::data, MAX, 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_REPAIR.
| const char ** description | ( | struct dt_iop_module_t * | self | ) |
References dt_iop_set_description().
| int flags | ( | ) |
References IOP_FLAGS_ALLOW_TILING, and IOP_FLAGS_SUPPORTS_BLENDING.
| void gui_init | ( | dt_iop_module_t * | self | ) |
| void init_global | ( | dt_iop_module_so_t * | module | ) |
References dt_opencl_create_kernel(), dt_iop_nlmeans_global_data_t::kernel_nlmeans_accu, dt_iop_nlmeans_global_data_t::kernel_nlmeans_dist, dt_iop_nlmeans_global_data_t::kernel_nlmeans_finish, dt_iop_nlmeans_global_data_t::kernel_nlmeans_horiz, dt_iop_nlmeans_global_data_t::kernel_nlmeans_init, and dt_iop_nlmeans_global_data_t::kernel_nlmeans_vert.
| 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().
| int legacy_params | ( | dt_iop_module_t * | self, |
| const void *const | old_params, | ||
| const int | old_version, | ||
| void * | new_params, | ||
| const int | new_version | ||
| ) |
| const char * name | ( | ) |
| 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 nlmeans_denoise(), ovoid, dt_dev_pixelpipe_iop_t::roi_in, and dt_dev_pixelpipe_iop_t::roi_out.
| 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 bucket_next(), d, dt_dev_pixelpipe_iop_t::data, dt_dev_pixelpipe_t::devid, DT_DEBUG_OPENCL, dt_opencl_alloc_device_buffer(), 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_print(), error(), FALSE, dt_iop_module_t::global_data, height, dt_iop_roi_t::height, i, IS_NULL_PTR, k, dt_iop_nlmeans_global_data_t::kernel_nlmeans_accu, dt_iop_nlmeans_global_data_t::kernel_nlmeans_dist, dt_iop_nlmeans_global_data_t::kernel_nlmeans_finish, dt_iop_nlmeans_global_data_t::kernel_nlmeans_horiz, dt_iop_nlmeans_global_data_t::kernel_nlmeans_init, dt_iop_nlmeans_global_data_t::kernel_nlmeans_vert, nlmeans_denoise_cl(), NUM_BUCKETS, P, 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, state, TRUE, dt_dev_pixelpipe_t::type, weight(), 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, NUM_BUCKETS, P, dt_dev_pixelpipe_iop_t::roi_in, and dt_iop_roi_t::scale.