![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "control/control.h"#include "develop/imageop.h"#include "develop/openmp_maths.h"#include "heal.h"
Include dependency graph for heal.c:Data Structures | |
| struct | _aligned_pixel |
Typedefs | |
| typedef struct _aligned_pixel | _aligned_pixel |
Functions | |
| static void | _heal_sub (const float *const top_buffer, const float *const bottom_buffer, float *const restrict red_buffer, float *const restrict black_buffer, const size_t width, const size_t height) |
| static void | _heal_add (const float *const restrict red_buffer, const float *const black_buffer, const float *const restrict second_buffer, float *const restrict result_buffer, const size_t width, const size_t height) |
| static float | _heal_laplace_iteration (float *const restrict active_pixels, const float *const restrict neighbor_pixels, const size_t height, const size_t width, const unsigned *const restrict runs, const size_t num_runs, const size_t start_parity, const float w) |
| static size_t | _collect_color_runs (const float *const restrict mask, const size_t start_index, size_t start, const size_t width, unsigned *const restrict runs, size_t count, size_t *nmask) |
| static void | collect_runs (const int start, const float *const restrict mask, const size_t width, const size_t height, const size_t subwidth, unsigned *const restrict runs, size_t *count, size_t *nmask) |
| static void | _heal_laplace_loop (float *const restrict red_pixels, float *const restrict black_pixels, const size_t width, const size_t height, const float *const restrict mask, const int max_iter) |
| void | dt_heal (const float *const src_buffer, float *dest_buffer, const float *const mask_buffer, const int width, const int height, const int ch, const int max_iter) |
| dt_heal_cl_global_t * | dt_heal_init_cl_global () |
| void | dt_heal_free_cl_global (dt_heal_cl_global_t *g) |
| heal_params_cl_t * | dt_heal_init_cl (const int devid) |
| void | dt_heal_free_cl (heal_params_cl_t *p) |
| cl_int | dt_heal_cl (heal_params_cl_t *p, cl_mem dev_src, cl_mem dev_dest, const float *const mask_buffer, const int width, const int height, const int max_iter) |
| typedef struct _aligned_pixel _aligned_pixel |
|
static |
References FALSE, TRUE, and width.
Referenced by collect_runs().
|
static |
References __OMP_PARALLEL_FOR__, for_each_channel, height, row, and width.
Referenced by dt_heal().
|
static |
References __OMP_PARALLEL_FOR__, copy_pixel(), for_each_channel, height, i, row, _aligned_pixel::v, and width.
Referenced by _heal_laplace_loop().
|
static |
References _heal_laplace_iteration(), cleanup(), collect_runs(), dt_pixelpipe_cache_alloc_align_cache, dt_pixelpipe_cache_free_align, height, IS_NULL_PTR, and width.
Referenced by dt_heal().
|
static |
References __OMP_PARALLEL_FOR__, for_each_channel, height, row, and width.
Referenced by dt_heal().
|
static |
References _collect_color_runs(), height, row, and width.
Referenced by _heal_laplace_loop().
| void dt_heal | ( | const float *const | src_buffer, |
| float * | dest_buffer, | ||
| const float *const | mask_buffer, | ||
| const int | width, | ||
| const int | height, | ||
| const int | ch, | ||
| const int | max_iter | ||
| ) |
References _heal_add(), _heal_laplace_loop(), _heal_sub(), ch, cleanup(), dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, height, IS_NULL_PTR, and width.
Referenced by _retouch_heal(), and dt_heal_cl().
| cl_int dt_heal_cl | ( | heal_params_cl_t * | p, |
| cl_mem | dev_src, | ||
| cl_mem | dev_dest, | ||
| const float *const | mask_buffer, | ||
| const int | width, | ||
| const int | height, | ||
| const int | max_iter | ||
| ) |
| void dt_heal_free_cl | ( | heal_params_cl_t * | p | ) |
References dt_free, IS_NULL_PTR, and p.
Referenced by _retouch_heal_cl().
| void dt_heal_free_cl_global | ( | dt_heal_cl_global_t * | g | ) |
References dt_free, g, and IS_NULL_PTR.
Referenced by dt_opencl_cleanup().
| heal_params_cl_t * dt_heal_init_cl | ( | const int | devid | ) |
References darktable, heal_params_cl_t::global, dt_opencl_t::heal, IS_NULL_PTR, darktable_t::opencl, and p.
Referenced by _retouch_heal_cl().
| dt_heal_cl_global_t * dt_heal_init_cl_global | ( | void | ) |
References g.
Referenced by dt_opencl_init().