![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/bilateral.h"#include "common/darktable.h"#include "common/math.h"#include <glib.h>#include <stdlib.h>#include <string.h>#include <stdio.h>
Include dependency graph for bilateral.c:Macros | |
| #define | DT_COMMON_BILATERAL_MAX_RES_S 3000 |
| #define | DT_COMMON_BILATERAL_MAX_RES_R 50 |
Functions | |
| void | dt_bilateral_grid_size (dt_bilateral_t *b, const int width, const int height, const float L_range, float sigma_s, const float sigma_r) |
| size_t | dt_bilateral_memory_use (const int width, const int height, const float sigma_s, const float sigma_r) |
| size_t | dt_bilateral_singlebuffer_size (const int width, const int height, const float sigma_s, const float sigma_r) |
| static | __attribute__ ((always_inline)) |
| dt_bilateral_t * | dt_bilateral_init (const int width, const int height, const float sigma_s, const float sigma_r) |
| __DT_CLONE_TARGETS__ void | dt_bilateral_splat (const dt_bilateral_t *b, const float *const in) |
| static __DT_CLONE_TARGETS__ void | blur_line_z (float *buf, const int offset1, const int offset2, const int offset3, const int size1, const int size2, const int size3) |
| static __DT_CLONE_TARGETS__ void | blur_line (float *buf, const int offset1, const int offset2, const int offset3, const int size1, const int size2, const int size3) |
| void | dt_bilateral_blur (const dt_bilateral_t *b) |
| __DT_CLONE_TARGETS__ void | dt_bilateral_slice (const dt_bilateral_t *const b, const float *const in, float *out, const float detail) |
| __DT_CLONE_TARGETS__ void | dt_bilateral_slice_to_output (const dt_bilateral_t *const b, const float *const in, float *out, const float detail) |
| void | dt_bilateral_free (dt_bilateral_t *b) |
| #define DT_COMMON_BILATERAL_MAX_RES_R 50 |
| #define DT_COMMON_BILATERAL_MAX_RES_S 3000 |
|
static |
References __OMP_PARALLEL_FOR__, i, k, w1, and w2.
Referenced by dt_bilateral_blur().
|
static |
References __OMP_PARALLEL_FOR__, i, k, w1, and w2.
Referenced by dt_bilateral_blur().
| void dt_bilateral_blur | ( | const dt_bilateral_t * | b | ) |
References blur_line(), blur_line_z(), and IS_NULL_PTR.
Referenced by _retouch_blur(), detail_enhance(), process(), and process().
| void dt_bilateral_free | ( | dt_bilateral_t * | b | ) |
References dt_free, dt_pixelpipe_cache_free_align, and IS_NULL_PTR.
Referenced by _retouch_blur(), detail_enhance(), process(), and process().
| void dt_bilateral_grid_size | ( | dt_bilateral_t * | b, |
| const int | width, | ||
| const int | height, | ||
| const float | L_range, | ||
| float | sigma_s, | ||
| const float | sigma_r | ||
| ) |
References CLAMPS, DT_COMMON_BILATERAL_MAX_RES_R, DT_COMMON_BILATERAL_MAX_RES_S, height, MAX, sigma_r, sigma_s, and width.
Referenced by dt_bilateral_init(), dt_bilateral_init_cl(), dt_bilateral_memory_use(), and dt_bilateral_singlebuffer_size().
| dt_bilateral_t * dt_bilateral_init | ( | const int | width, |
| const int | height, | ||
| const float | sigma_s, | ||
| const float | sigma_r | ||
| ) |
References darktable, dt_bilateral_grid_size(), DT_DEBUG_DEV, dt_free, dt_pixelpipe_cache_alloc_align_float_cache, dt_print(), height, IS_NULL_PTR, darktable_t::num_openmp_threads, sigma_r, sigma_s, and width.
Referenced by _retouch_blur(), detail_enhance(), process(), and process().
| size_t dt_bilateral_memory_use | ( | const int | width, |
| const int | height, | ||
| const float | sigma_s, | ||
| const float | sigma_r | ||
| ) |
References darktable, dt_bilateral_grid_size(), height, darktable_t::num_openmp_threads, sigma_r, sigma_s, and width.
Referenced by dt_bilateral_memory_use2(), and tiling_callback().
| size_t dt_bilateral_singlebuffer_size | ( | const int | width, |
| const int | height, | ||
| const float | sigma_s, | ||
| const float | sigma_r | ||
| ) |
References darktable, dt_bilateral_grid_size(), height, darktable_t::num_openmp_threads, sigma_r, sigma_s, and width.
Referenced by dt_bilateral_singlebuffer_size2(), and tiling_callback().
| __DT_CLONE_TARGETS__ void dt_bilateral_slice | ( | const dt_bilateral_t *const | b, |
| const float *const | in, | ||
| float * | out, | ||
| const float | detail | ||
| ) |
References __OMP_PARALLEL_FOR__, height, i, image_to_grid(), IS_NULL_PTR, L, out, and width.
Referenced by _retouch_blur(), process(), and process().
| __DT_CLONE_TARGETS__ void dt_bilateral_slice_to_output | ( | const dt_bilateral_t *const | b, |
| const float *const | in, | ||
| float * | out, | ||
| const float | detail | ||
| ) |
References __OMP_PARALLEL_FOR__, height, i, image_to_grid(), IS_NULL_PTR, L, MAX, out, and width.
Referenced by detail_enhance(), and process().
| __DT_CLONE_TARGETS__ void dt_bilateral_splat | ( | const dt_bilateral_t * | b, |
| const float *const | in | ||
| ) |
References __OMP_PARALLEL_FOR__, __OMP_SIMD__, CLAMPS, darktable, i, IS_NULL_PTR, k, L, MIN, darktable_t::num_openmp_threads, sigma_s, and size_y.
Referenced by _retouch_blur(), detail_enhance(), process(), and process().