![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Include dependency graph for blur.c:Go to the source code of this file.
Functions | |
| dt_gaussian_t * | _hl_gauss_get (const int width, const int height, const int channels, const float sigma) |
| void | _hl_gauss_cache_flush (void) |
| dt_gaussian_cl_t * | _region_blur_handle (const int devid, const int region_w, const int region_h, const float sigma) |
| cl_int | _region_blur_cl (const int devid, cl_mem in, cl_mem out, const int region_w, const int region_h, const float sigma) |
| void | _region_edge_blur (const float *const restrict in, float *const restrict out, const float *const restrict guide, float *const restrict step_x, float *const restrict step_y, const int region_w, const int region_h, const float sigma_s, const float sigma_r) |
| cl_int | _region_edge_blur_cl (const int devid, void *gd_void, cl_mem in_image, cl_mem out_image, cl_mem guide, cl_mem data, cl_mem step_x, cl_mem step_y, const int region_w, const int region_h, const float sigma_s, const float sigma_r) |
Variables | |
| static __thread _hl_gauss_slot_t | _hl_gauss_cache [HL_GAUSS_SLOTS] = { { 0 } } |
| static __thread int | _hl_gauss_rr = 0 |
Definition at line 47 of file blur.c.
References _hl_gauss_cache, dt_gaussian_free(), gaussian(), HL_GAUSS_SLOTS, and i.
Referenced by _harmonic_reconstruct_cl(), _harmonic_reconstruct_host(), and process_harmonic().
| dt_gaussian_t * _hl_gauss_get | ( | const int | width, |
| const int | height, | ||
| const int | channels, | ||
| const float | sigma | ||
| ) |
Definition at line 28 of file blur.c.
References _hl_gauss_cache, _hl_gauss_rr, _hl_gauss_slot_t::channels, dt_gaussian_free(), dt_gaussian_init(), gaussian(), _hl_gauss_slot_t::gaussian, height, _hl_gauss_slot_t::height, HL_GAUSS_SLOTS, i, _hl_gauss_slot_t::sigma, sigma, width, and _hl_gauss_slot_t::width.
Referenced by _knee_blur(), _knee_blur4(), and _region_blur().
| cl_int _region_blur_cl | ( | const int | devid, |
| cl_mem | in, | ||
| cl_mem | out, | ||
| const int | region_w, | ||
| const int | region_h, | ||
| const float | sigma | ||
| ) |
Definition at line 74 of file blur.c.
References _region_blur_handle(), dt_gaussian_blur_cl(), dt_gaussian_free_cl(), DT_OPENCL_DEFAULT_ERROR, gaussian(), out, and sigma.
Referenced by _cf_joint_stage_cl_selftest(), _cf_stage_cl(), _hf_stage_cl(), and _region_blur_cl_selftest().
| dt_gaussian_cl_t * _region_blur_handle | ( | const int | devid, |
| const int | region_w, | ||
| const int | region_h, | ||
| const float | sigma | ||
| ) |
Definition at line 67 of file blur.c.
References dt_gaussian_init_cl(), and sigma.
Referenced by _hl_knee_estimate_cl(), and _region_blur_cl().
| void _region_edge_blur | ( | const float *const restrict | in, |
| float *const restrict | out, | ||
| const float *const restrict | guide, | ||
| float *const restrict | step_x, | ||
| float *const restrict | step_y, | ||
| const int | region_w, | ||
| const int | region_h, | ||
| const float | sigma_s, | ||
| const float | sigma_r | ||
| ) |
| cl_int _region_edge_blur_cl | ( | const int | devid, |
| void * | gd_void, | ||
| cl_mem | in_image, | ||
| cl_mem | out_image, | ||
| cl_mem | guide, | ||
| cl_mem | data, | ||
| cl_mem | step_x, | ||
| cl_mem | step_y, | ||
| const int | region_w, | ||
| const int | region_h, | ||
| const float | sigma_s, | ||
| const float | sigma_r | ||
| ) |
Definition at line 177 of file blur.c.
References dt_opencl_enqueue_copy_buffer_to_image(), dt_opencl_enqueue_copy_image_to_buffer(), dt_opencl_enqueue_kernel_2d(), dt_opencl_set_kernel_arg(), kernel(), dt_iop_highlights_global_data_t::kernel_hl_dt_cols, dt_iop_highlights_global_data_t::kernel_hl_dt_rows, dt_iop_highlights_global_data_t::kernel_hl_dt_warp, ROUNDUP, ROUNDUPDHT, ROUNDUPDWD, sigma_r, and sigma_s.
Referenced by _cf_stage_cl().
|
static |
Definition at line 25 of file blur.c.
Referenced by _hl_gauss_cache_flush(), and _hl_gauss_get().
|
static |
Definition at line 26 of file blur.c.
Referenced by _hl_gauss_get().