![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "system/macros.h"#include "system/openmp.h"#include "system/target_clones.h"#include "system/mem_alloc.h"#include "system/simd.h"#include "caches/pixelpipe_cache_alloc.h"#include "common/imagebuf.h"#include "dwt.h"
Include dependency graph for dwt.c:Go to the source code of this file.
Variables | |
| static dt_dwt_cl_global_t * | _dwt_cl_global = NULL |
|
inlinestatic |
|
static |
Definition at line 98 of file dwt.c.
References L.
Referenced by dt_dwt_first_scale_visible(), and dt_dwt_first_scale_visible_cl().
|
static |
Definition at line 72 of file dwt.c.
References height, L, 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 | ) |
Definition at line 116 of file dwt.c.
References _first_scale_visible(), and p.
Referenced by process_internal().
| int dt_dwt_first_scale_visible_cl | ( | dwt_params_cl_t * | p | ) |
Definition at line 610 of file dwt.c.
References _first_scale_visible(), and p.
Referenced by process_cl().
| void dt_dwt_free | ( | dwt_params_t * | p | ) |
Definition at line 64 of file dwt.c.
References dt_free, IS_NULL_PTR, and p.
Referenced by process_internal().
| void dt_dwt_free_cl | ( | dwt_params_cl_t * | p | ) |
Definition at line 599 of file dwt.c.
References dt_free, IS_NULL_PTR, and p.
Referenced by process_cl().
Definition at line 561 of file dwt.c.
References _dwt_cl_global, dt_free, dt_opencl_free_kernel(), g, IS_NULL_PTR, and L.
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 | ||
| ) |
Definition at line 43 of file dwt.c.
References ch, height, dwt_params_t::image, IS_NULL_PTR, L, 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 | ||
| ) |
Definition at line 577 of file dwt.c.
References _dwt_cl_global, dwt_params_cl_t::global, height, IS_NULL_PTR, L, p, and width.
Referenced by process_cl().
Definition at line 548 of file dwt.c.
References _dwt_cl_global, dt_opencl_create_kernel(), g, dt_dwt_cl_global_t::kernel_dwt_add_img_to_layer, and L.
Referenced by dt_opencl_init().
|
static |
Definition at line 638 of file dwt.c.
References dt_opencl_enqueue_kernel_2d(), dt_opencl_set_kernel_arg(), height, kernel(), L, p, ROUNDUPDHT, ROUNDUPDWD, and width.
Referenced by dwt_wavelet_decompose_cl().
| int dwt_decompose | ( | dwt_params_t * | p, |
| _dwt_layer_func | layer_func | ||
| ) |
Definition at line 380 of file dwt.c.
References dwt_get_max_scale(), dwt_wavelet_decompose(), L, and p.
Referenced by process_internal().
| cl_int dwt_decompose_cl | ( | dwt_params_cl_t * | p, |
| _dwt_layer_func_cl | layer_func | ||
| ) |
Definition at line 925 of file dwt.c.
References dwt_get_max_scale_cl(), dwt_wavelet_decompose_cl(), L, and p.
Referenced by process_cl().
|
static |
Definition at line 161 of file dwt.c.
References __OMP_PARALLEL_FOR__, dt_get_thread_num(), for_each_channel, height, L, MIN, out, row, and width.
|
static |
Definition at line 128 of file dwt.c.
References __OMP_PARALLEL_FOR__, dwt_interleave_rows(), for_each_channel, height, L, 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 | ||
| ) |
Definition at line 516 of file dwt.c.
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, L, noise, and width.
Referenced by wavelet_denoise(), and wavelet_denoise_xtrans().
|
static |
Definition at line 441 of file dwt.c.
References __OMP_PARALLEL_FOR__, __OMP_SIMD__, height, L, MAX, MIN, out, row, and width.
Referenced by dwt_denoise().
|
static |
Definition at line 411 of file dwt.c.
References __OMP_PARALLEL_FOR__, __OMP_SIMD__, dwt_interleave_rows(), height, L, MIN, out, row, and width.
Referenced by dwt_denoise().
|
static |
Definition at line 659 of file dwt.c.
References dt_opencl_enqueue_copy_buffer_to_buffer(), L, and p.
Referenced by dwt_wavelet_decompose_cl().
| int dwt_get_max_scale | ( | dwt_params_t * | p | ) |
Definition at line 92 of file dwt.c.
References _get_max_scale(), and p.
Referenced by dwt_decompose(), and process_internal().
| int dwt_get_max_scale_cl | ( | dwt_params_cl_t * | p | ) |
Definition at line 605 of file dwt.c.
References _get_max_scale(), and p.
Referenced by dwt_decompose_cl(), and process_cl().
|
static |
Definition at line 615 of file dwt.c.
References dt_opencl_enqueue_kernel_2d(), dt_opencl_set_kernel_arg(), height, kernel(), L, p, ROUNDUPDHT, ROUNDUPDWD, and width.
Referenced by dwt_wavelet_decompose_cl().
|
static |
Definition at line 226 of file dwt.c.
References cleanup(), dt_get_num_openmp_threads(), dt_iop_image_add_image(), dt_iop_image_fill(), dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, IS_NULL_PTR, L, p, and size.
Referenced by dwt_decompose().
|
static |
Definition at line 670 of file dwt.c.
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(), L, p, ROUNDUPDHT, ROUNDUPDWD, and width.
Referenced by dwt_decompose_cl().
|
static |
Definition at line 546 of file dwt.c.
Referenced by dt_dwt_free_cl_global(), dt_dwt_init_cl(), and dt_dwt_init_cl_global().