![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "common/gaussian.h"#include "develop/imageop_math.h"#include "iop/highlights/blur.h"#include "iop/highlights/chroma.h"#include "iop/highlights/coefficient_field.h"#include "iop/highlights/core.h"#include "iop/highlights/dome.h"#include "iop/highlights/knee.h"#include "iop/highlights/pde.h"#include "iop/highlights/region.h"#include "iop/highlights/selftests.h"#include <math.h>#include <string.h>
Include dependency graph for selftests.c:Go to the source code of this file.
Macros | |
| #define | OFF2(chan_a, chan_b) (((chan_a) + (chan_b)) == 1 ? cross_rg : (((chan_a) + (chan_b)) == 2 ? cross_rb : cross_gb)) |
| #define | OFF3(chan_a, chan_b) (((chan_a) + (chan_b)) == 1 ? cross_rg : (((chan_a) + (chan_b)) == 2 ? cross_rb : cross_gb)) |
| #define OFF2 | ( | chan_a, | |
| chan_b | |||
| ) | (((chan_a) + (chan_b)) == 1 ? cross_rg : (((chan_a) + (chan_b)) == 2 ? cross_rb : cross_gb)) |
| #define OFF3 | ( | chan_a, | |
| chan_b | |||
| ) | (((chan_a) + (chan_b)) == 1 ? cross_rg : (((chan_a) + (chan_b)) == 2 ? cross_rb : cross_gb)) |
| void _aniso_stage_cl_selftest | ( | const int | devid, |
| void * | gd_void, | ||
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 1592 of file selftests.c.
References _aniso_div_solve(), _aniso_iterate_obs(), _aniso_tensor(), dist(), dt_opencl_alloc_device_buffer(), dt_opencl_read_buffer_from_device(), dt_opencl_release_mem_object(), dt_opencl_write_buffer_to_device(), dt_pixelpipe_cache_alloc_align, dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, i, IS_NULL_PTR, k, luminance, MAX, MIN, value, and x.
Referenced by process_harmonic_cl().
| void _cf_harmonic_fill_cl_selftest | ( | const int | devid, |
| void * | gd_void, | ||
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 193 of file selftests.c.
References _cf_harmonic_fill(), _cf_harmonic_fill_cl(), dt_opencl_alloc_device_buffer(), dt_opencl_read_buffer_from_device(), dt_opencl_release_mem_object(), dt_opencl_write_buffer_to_device(), dt_pixelpipe_cache_alloc_align, dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, i, IS_NULL_PTR, and x.
Referenced by process_harmonic_cl().
| void _cf_joint_stage_cl_selftest | ( | const int | devid, |
| void * | gd_void, | ||
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 300 of file selftests.c.
References _cf_harmonic_fill(), _cf_joint_stage_cl(), _region_blur(), _region_blur_cl(), dt_opencl_alloc_device(), dt_opencl_alloc_device_buffer(), dt_opencl_enqueue_kernel_2d(), dt_opencl_read_buffer_from_device(), dt_opencl_release_mem_object(), dt_opencl_set_kernel_arg(), dt_opencl_write_buffer_to_device(), dt_pixelpipe_cache_alloc_align, dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, i, IS_NULL_PTR, k, kernel(), dt_iop_highlights_global_data_t::kernel_hl_cf_pack_joint, luminance, OFF2, ROUNDUPDHT, ROUNDUPDWD, weight(), and x.
Referenced by process_harmonic_cl().
| void _cf_stage_cl_selftest | ( | const int | devid, |
| void * | gd_void, | ||
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 562 of file selftests.c.
References _cf_harmonic_fill(), _cf_stage_cl(), _region_blur(), dt_opencl_alloc_device_buffer(), dt_opencl_read_buffer_from_device(), dt_opencl_release_mem_object(), dt_opencl_write_buffer_to_device(), dt_pixelpipe_cache_alloc_align, dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, i, IS_NULL_PTR, k, luminance, weight(), and x.
Referenced by process_harmonic_cl().
| void _hf_stage_cl_selftest | ( | const int | devid, |
| void * | gd_void, | ||
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 918 of file selftests.c.
References _cf_harmonic_fill(), _hf_stage_cl(), _region_blur(), dt_opencl_alloc_device_buffer(), dt_opencl_read_buffer_from_device(), dt_opencl_release_mem_object(), dt_opencl_write_buffer_to_device(), dt_pixelpipe_cache_alloc_align, dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, i, IS_NULL_PTR, k, luminance, OFF3, weight(), and x.
Referenced by process_harmonic_cl().
| void _joint_core_stage_cl_selftest | ( | const int | devid, |
| void * | gd_void, | ||
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 1394 of file selftests.c.
References _biharmonic_dome(), _knee_blur(), _region_pde_solve(), _sp_chol_free(), _sp_pde_factor(), _sp_pde_solve(), dist(), double(), dt_opencl_alloc_device_buffer(), dt_opencl_read_buffer_from_device(), dt_opencl_release_mem_object(), dt_opencl_write_buffer_to_device(), dt_pixelpipe_cache_alloc_align, dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, i, IS_NULL_PTR, k, luminance, and x.
Referenced by process_harmonic_cl().
| void _knee_cl_selftest | ( | const int | devid, |
| void * | gd_void, | ||
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 1885 of file selftests.c.
References _hl_knee_apply_cfa(), _hl_knee_apply_cfa_cl(), _hl_knee_estimate(), _hl_knee_estimate_cl(), cleanup(), DT_HL_KNEE_BINS, dt_opencl_alloc_device_buffer(), dt_opencl_read_buffer_from_device(), dt_opencl_release_mem_object(), dt_opencl_write_buffer_to_device(), dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, _hl_knee_curve_t::engaged, FC(), height, i, IS_NULL_PTR, value, and width.
Referenced by process_harmonic_cl().
| void _region_blur_cl_selftest | ( | const int | devid, |
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 143 of file selftests.c.
References _region_blur(), _region_blur_cl(), dt_opencl_alloc_device(), dt_opencl_copy_device_to_host(), dt_opencl_release_mem_object(), dt_opencl_write_host_to_device(), dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, i, IS_NULL_PTR, and sigma.
Referenced by process_harmonic_cl().
| void _region_guided_filter_cl_selftest | ( | const int | devid, |
| void * | gd_void, | ||
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 1779 of file selftests.c.
References _region_guided_filter(), cleanup(), dist(), double(), dt_opencl_alloc_device_buffer(), dt_opencl_read_buffer_from_device(), dt_opencl_release_mem_object(), dt_opencl_write_buffer_to_device(), dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, height, i, IS_NULL_PTR, MAX, MIN, _hl_region_t::pad, _hl_region_t::radius, _hl_region_t::rx0, _hl_region_t::rx1, _hl_region_t::ry0, _hl_region_t::ry1, width, x, _hl_region_t::x0, _hl_region_t::x1, _hl_region_t::y0, and _hl_region_t::y1.
Referenced by process_harmonic_cl().
| void _selfdome_stage_cl_selftest | ( | const int | devid, |
| void * | gd_void, | ||
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 1166 of file selftests.c.
References _biharmonic_dome(), _cf_harmonic_fill(), dist(), DT_HL_DOME_NMAX_SPARSE, dt_opencl_alloc_device_buffer(), dt_opencl_read_buffer_from_device(), dt_opencl_release_mem_object(), dt_opencl_write_buffer_to_device(), dt_pixelpipe_cache_alloc_align, dt_pixelpipe_cache_alloc_align_float, dt_pixelpipe_cache_free_align, i, IS_NULL_PTR, k, luminance, MAX, weight(), and x.
Referenced by process_harmonic_cl().
| void _sp_chol_cl_selftest | ( | const int | devid, |
| void * | gd_void, | ||
| const dt_dev_pixelpipe_t * | pipe | ||
| ) |
Definition at line 39 of file selftests.c.
References _hl_sp_chol_kernels(), _sp_chol_cl_free(), _sp_chol_factor(), _sp_chol_factor_cl(), _sp_chol_free(), _sp_chol_solve(), _sp_chol_solve_cl(), _sp_cl_upload(), _sp_chol_t::col_ptr, dimension(), double(), dt_opencl_read_buffer_from_device(), dt_opencl_release_mem_object(), i, _sp_chol_cl_t::nlev, _sp_chol_cl_t::nlev_bwd, and x.
Referenced by process_harmonic_cl().