![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "common/imagebuf.h"#include "control/control.h"#include "develop/imageop.h"#include "dwt.h"
Include dependency graph for dwt.c:Functions | |
| dwt_params_t * | dt_dwt_init (float *image, const int width, const int height, const int ch, const int scales, const int return_layer, const int merge_from_scale, void *user_data, const float preview_scale, const int use_sse) |
| void | dt_dwt_free (dwt_params_t *p) |
| static __DT_CLONE_TARGETS__ int | _get_max_scale (const int width, const int height, const float preview_scale) |
| int | dwt_get_max_scale (dwt_params_t *p) |
| static __DT_CLONE_TARGETS__ int | _first_scale_visible (const int num_scales, const float preview_scale) |
| int | dt_dwt_first_scale_visible (dwt_params_t *p) |
| static | __attribute__ ((always_inline)) |
| static __DT_CLONE_TARGETS__ void | dwt_decompose_vert (float *const restrict out, const float *const restrict in, const size_t height, const size_t width, const size_t lev) |
| static __DT_CLONE_TARGETS__ void | dwt_decompose_horiz (float *const restrict out, float *const restrict in, float *const temp, const size_t height, const size_t width, const size_t lev) |
| static __DT_CLONE_TARGETS__ int | dwt_wavelet_decompose (float *img, dwt_params_t *const p, _dwt_layer_func layer_func) |
| int | dwt_decompose (dwt_params_t *p, _dwt_layer_func layer_func) |
| static __DT_CLONE_TARGETS__ void | dwt_denoise_vert_1ch (float *const restrict out, const float *const restrict in, const size_t height, const size_t width, const size_t lev) |
| static __DT_CLONE_TARGETS__ void | dwt_denoise_horiz_1ch (float *const restrict out, float *const restrict in, float *const restrict accum, const size_t height, const size_t width, const size_t lev, const float thold, const int last) |
| __DT_CLONE_TARGETS__ int | dwt_denoise (float *const img, const int width, const int height, const int bands, const float *const noise) |
| dt_dwt_cl_global_t * | dt_dwt_init_cl_global () |
| void | dt_dwt_free_cl_global (dt_dwt_cl_global_t *g) |
| dwt_params_cl_t * | dt_dwt_init_cl (const int devid, cl_mem image, const int width, const int height, const int scales, const int return_layer, const int merge_from_scale, void *user_data, const float preview_scale) |
| void | dt_dwt_free_cl (dwt_params_cl_t *p) |
| int | dwt_get_max_scale_cl (dwt_params_cl_t *p) |
| int | dt_dwt_first_scale_visible_cl (dwt_params_cl_t *p) |
| static cl_int | dwt_subtract_layer_cl (cl_mem bl, cl_mem bh, dwt_params_cl_t *const p) |
| static cl_int | dwt_add_layer_cl (cl_mem img, cl_mem layers, dwt_params_cl_t *const p, const int n_scale) |
| static cl_int | dwt_get_image_layer_cl (cl_mem layer, dwt_params_cl_t *const p) |
| static cl_int | dwt_wavelet_decompose_cl (cl_mem img, dwt_params_cl_t *const p, _dwt_layer_func_cl layer_func) |
| cl_int | dwt_decompose_cl (dwt_params_cl_t *p, _dwt_layer_func_cl layer_func) |
|
inlinestatic |
References p.
|
static |
Referenced by dt_dwt_first_scale_visible(), and dt_dwt_first_scale_visible_cl().
|
static |
References height, MIN, size, and width.
Referenced by dwt_get_max_scale(), and dwt_get_max_scale_cl().
| int dt_dwt_first_scale_visible | ( | dwt_params_t * | p | ) |
References _first_scale_visible(), and p.
Referenced by process_internal().
| int dt_dwt_first_scale_visible_cl | ( | dwt_params_cl_t * | p | ) |
References _first_scale_visible(), and p.
Referenced by process_cl().
| void dt_dwt_free | ( | dwt_params_t * | p | ) |
References dt_free, IS_NULL_PTR, and p.
Referenced by process_internal().
| void dt_dwt_free_cl | ( | dwt_params_cl_t * | p | ) |
References dt_free, IS_NULL_PTR, and p.
Referenced by process_cl().
| void dt_dwt_free_cl_global | ( | dt_dwt_cl_global_t * | g | ) |
References dt_free, dt_opencl_free_kernel(), g, and IS_NULL_PTR.
Referenced by dt_opencl_cleanup().
| dwt_params_t * dt_dwt_init | ( | float * | image, |
| const int | width, | ||
| const int | height, | ||
| const int | ch, | ||
| const int | scales, | ||
| const int | return_layer, | ||
| const int | merge_from_scale, | ||
| void * | user_data, | ||
| const float | preview_scale, | ||
| const int | use_sse | ||
| ) |
References ch, height, dwt_params_t::image, IS_NULL_PTR, p, and width.
Referenced by process_internal().
| dwt_params_cl_t * dt_dwt_init_cl | ( | const int | devid, |
| cl_mem | image, | ||
| const int | width, | ||
| const int | height, | ||
| const int | scales, | ||
| const int | return_layer, | ||
| const int | merge_from_scale, | ||
| void * | user_data, | ||
| const float | preview_scale | ||
| ) |
References darktable, dt_opencl_t::dwt, dwt_params_cl_t::global, height, IS_NULL_PTR, darktable_t::opencl, p, and width.
Referenced by process_cl().
| dt_dwt_cl_global_t * dt_dwt_init_cl_global | ( | void | ) |
References dt_opencl_create_kernel(), g, and dt_dwt_cl_global_t::kernel_dwt_add_img_to_layer.
Referenced by dt_opencl_init().
|
static |
References dt_opencl_enqueue_kernel_2d(), dt_opencl_set_kernel_arg(), height, kernel(), p, ROUNDUPDHT, ROUNDUPDWD, and width.
Referenced by dwt_wavelet_decompose_cl().
| int dwt_decompose | ( | dwt_params_t * | p, |
| _dwt_layer_func | layer_func | ||
| ) |
References dwt_get_max_scale(), dwt_wavelet_decompose(), and p.
Referenced by process_internal().
| cl_int dwt_decompose_cl | ( | dwt_params_cl_t * | p, |
| _dwt_layer_func_cl | layer_func | ||
| ) |
References dwt_get_max_scale_cl(), dwt_wavelet_decompose_cl(), and p.
Referenced by process_cl().
|
static |
References __OMP_PARALLEL_FOR__, dt_get_thread_num(), for_each_channel, height, MIN, out, row, and width.
|
static |
References __OMP_PARALLEL_FOR__, dwt_interleave_rows(), for_each_channel, height, MIN, out, row, and width.
| __DT_CLONE_TARGETS__ int dwt_denoise | ( | float *const | img, |
| const int | width, | ||
| const int | height, | ||
| const int | bands, | ||
| const float *const | noise | ||
| ) |
References dt_iop_image_fill(), dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, dwt_denoise_horiz_1ch(), dwt_denoise_vert_1ch(), height, IS_NULL_PTR, noise, and width.
Referenced by wavelet_denoise(), and wavelet_denoise_xtrans().
|
static |
References __OMP_PARALLEL_FOR__, __OMP_SIMD__, height, MAX, MIN, out, row, and width.
Referenced by dwt_denoise().
|
static |
References __OMP_PARALLEL_FOR__, __OMP_SIMD__, dwt_interleave_rows(), height, MIN, out, row, and width.
Referenced by dwt_denoise().
|
static |
References dt_opencl_enqueue_copy_buffer_to_buffer(), and p.
Referenced by dwt_wavelet_decompose_cl().
| int dwt_get_max_scale | ( | dwt_params_t * | p | ) |
References _get_max_scale(), and p.
Referenced by dwt_decompose(), and process_internal().
| int dwt_get_max_scale_cl | ( | dwt_params_cl_t * | p | ) |
References _get_max_scale(), and p.
Referenced by dwt_decompose_cl(), and process_cl().
|
static |
References dt_opencl_enqueue_kernel_2d(), dt_opencl_set_kernel_arg(), height, kernel(), p, ROUNDUPDHT, ROUNDUPDWD, and width.
Referenced by dwt_wavelet_decompose_cl().
|
static |
References cleanup(), darktable, dt_iop_image_add_image(), dt_iop_image_fill(), dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, IS_NULL_PTR, darktable_t::num_openmp_threads, p, and size.
Referenced by dwt_decompose().
|
static |
References cleanup(), dt_opencl_alloc_device_buffer(), dt_opencl_enqueue_kernel_2d(), dt_opencl_release_mem_object(), dt_opencl_set_kernel_arg(), dwt_add_layer_cl(), dwt_get_image_layer_cl(), dwt_subtract_layer_cl(), height, IS_NULL_PTR, kernel(), p, ROUNDUPDHT, ROUNDUPDWD, and width.
Referenced by dwt_decompose_cl().