![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "system/macros.h"#include "pixel/format.h"#include "system/openmp.h"#include "caches/pixelpipe_cache_alloc.h"#include "pixel/locallaplacian.h"#include "math/math.h"#include <string.h>#include <stdint.h>#include <stdlib.h>#include <assert.h>#include <stdio.h>
Include dependency graph for locallaplacian.c:Go to the source code of this file.
Macros | |
| #define | max_levels 30 |
| #define | num_gamma 6 |
| #define | debug_dump_PFM(f, b, w, h) |
| #define | LL_FILL(fallback) |
Functions | |
| static int | dl (int size, const int level) |
| static float | ll_expand_gaussian (const float *const coarse, const int i, const int j, const int wd, const int ht) |
| static void | ll_fill_boundary1 (float *const input, const int wd, const int ht) |
| static void | ll_fill_boundary2 (float *const input, const int wd, const int ht) |
| static void | pad_by_replication (float *buf, const uint32_t w, const uint32_t h, const uint32_t padding) |
| static void | gauss_expand (const float *const input, float *const fine, const int wd, const int ht) |
| static void | gauss_reduce (const float *const input, float *const coarse, const int wd, const int ht) |
| static float * | ll_pad_input (const float *const input, const int wd, const int ht, const int max_supp, int *wd2, int *ht2, local_laplacian_boundary_t *b) |
| static float | ll_laplacian (const float *const coarse, const float *const fine, const int i, const int j, const int wd, const int ht) |
| static float | curve_scalar (const float x, const float g, const float sigma, const float shadows, const float highlights, const float clarity) |
| void | apply_curve (float *const out, const float *const in, const uint32_t w, const uint32_t h, const uint32_t padding, const float g, const float sigma, const float shadows, const float highlights, const float clarity) |
| int | local_laplacian_internal (const float *const input, float *const out, const int wd, const int ht, const float sigma, const float shadows, const float highlights, const float clarity, const int use_sse2, local_laplacian_boundary_t *b) |
| size_t | local_laplacian_memory_use (const int width, const int height) |
| size_t | local_laplacian_singlebuffer_size (const int width, const int height) |
| #define debug_dump_PFM | ( | f, | |
| b, | |||
| w, | |||
| h | |||
| ) |
Definition at line 73 of file locallaplacian.c.
| #define LL_FILL | ( | fallback | ) |
| #define max_levels 30 |
Definition at line 46 of file locallaplacian.c.
| #define num_gamma 6 |
Definition at line 48 of file locallaplacian.c.
| void apply_curve | ( | float *const | out, |
| const float *const | in, | ||
| const uint32_t | w, | ||
| const uint32_t | h, | ||
| const uint32_t | padding, | ||
| const float | g, | ||
| const float | sigma, | ||
| const float | shadows, | ||
| const float | highlights, | ||
| const float | clarity | ||
| ) |
Definition at line 329 of file locallaplacian.c.
|
inlinestatic |
Definition at line 296 of file locallaplacian.c.
References CLAMPS, i, and ll_expand_gaussian().
|
inlinestatic |
Definition at line 53 of file locallaplacian.c.
References size.
|
inlinestatic |
Definition at line 160 of file locallaplacian.c.
References __OMP_PARALLEL_FOR__, i, ll_expand_gaussian(), and ll_fill_boundary2().
|
inlinestatic |
Definition at line 173 of file locallaplacian.c.
References ch, i, and ll_fill_boundary1().
|
inlinestatic |
Definition at line 80 of file locallaplacian.c.
References i.
Referenced by curve_scalar(), and gauss_expand().
|
inlinestatic |
Definition at line 121 of file locallaplacian.c.
Referenced by gauss_reduce().
|
inlinestatic |
Definition at line 133 of file locallaplacian.c.
Referenced by gauss_expand().
|
inlinestatic |
Definition at line 283 of file locallaplacian.c.
|
inlinestatic |
Definition at line 204 of file locallaplacian.c.
References __OMP_PARALLEL_FOR__, dt_pixelpipe_cache_alloc_align_float_cache, i, IS_NULL_PTR, LL_FILL, out, and pad_by_replication().
| int local_laplacian_internal | ( | const float *const | input, |
| float *const | out, | ||
| const int | wd, | ||
| const int | ht, | ||
| const float | sigma, | ||
| const float | shadows, | ||
| const float | highlights, | ||
| const float | clarity, | ||
| const int | use_sse2, | ||
| local_laplacian_boundary_t * | b | ||
| ) |
Definition at line 355 of file locallaplacian.c.
Referenced by local_laplacian().
| size_t local_laplacian_memory_use | ( | const int | width, |
| const int | height | ||
| ) |
Definition at line 586 of file locallaplacian.c.
Referenced by tiling_callback().
| size_t local_laplacian_singlebuffer_size | ( | const int | width, |
| const int | height | ||
| ) |
Definition at line 602 of file locallaplacian.c.
Referenced by tiling_callback().
|
static |
Definition at line 146 of file locallaplacian.c.
References __OMP_PARALLEL_FOR__.
Referenced by ll_pad_input().