![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "system/macros.h"#include "system/mem_alloc.h"#include "common/opencl.h"#include "pixel/locallaplaciancl.h"
Include dependency graph for locallaplaciancl.c:Go to the source code of this file.
Macros | |
| #define | max_levels 30 |
| #define | num_gamma 6 |
Functions | |
| static uint64_t | dl (uint64_t size, const int level) |
| void | dt_local_laplacian_init_cl_global (void) |
| void | dt_local_laplacian_free_cl_global (void) |
| void | dt_local_laplacian_free_cl (dt_local_laplacian_cl_t *g) |
| dt_local_laplacian_cl_t * | dt_local_laplacian_init_cl (const int devid, const int width, const int height, const float sigma, const float shadows, const float highlights, const float clarity) |
| cl_int | dt_local_laplacian_cl (dt_local_laplacian_cl_t *b, cl_mem input, cl_mem output) |
Variables | |
| static dt_local_laplacian_cl_global_t * | _local_laplacian_cl_global = NULL |
| #define max_levels 30 |
Definition at line 31 of file locallaplaciancl.c.
| #define num_gamma 6 |
Definition at line 32 of file locallaplaciancl.c.
Definition at line 35 of file locallaplaciancl.c.
References size.
Referenced by dt_local_laplacian_cl(), and dt_local_laplacian_init_cl().
| cl_int dt_local_laplacian_cl | ( | dt_local_laplacian_cl_t * | b, |
| cl_mem | input, | ||
| cl_mem | output | ||
| ) |
Definition at line 153 of file locallaplaciancl.c.
References dl(), dt_opencl_enqueue_kernel_2d(), dt_opencl_set_kernel_arg(), error(), g, k, num_gamma, ROUNDUPDHT, and ROUNDUPDWD.
Referenced by process_cl().
| void dt_local_laplacian_free_cl | ( | dt_local_laplacian_cl_t * | g | ) |
Definition at line 79 of file locallaplaciancl.c.
References dt_free, dt_opencl_release_mem_object(), g, IS_NULL_PTR, k, max_levels, and num_gamma.
Referenced by dt_local_laplacian_init_cl(), and process_cl().
Definition at line 63 of file locallaplaciancl.c.
References _local_laplacian_cl_global, dt_free, dt_opencl_free_kernel(), g, and IS_NULL_PTR.
Referenced by dt_opencl_cleanup().
| dt_local_laplacian_cl_t * dt_local_laplacian_init_cl | ( | const int | devid, |
| const int | width, | ||
| const int | height, | ||
| const float | sigma, | ||
| const float | shadows, | ||
| const float | highlights, | ||
| const float | clarity | ||
| ) |
Definition at line 100 of file locallaplaciancl.c.
References _local_laplacian_cl_global, dl(), dt_local_laplacian_free_cl(), dt_opencl_alloc_device(), error(), g, height, IS_NULL_PTR, k, max_levels, MIN, num_gamma, ROUNDUPDHT, ROUNDUPDWD, sigma, and width.
Referenced by process_cl().
Definition at line 49 of file locallaplaciancl.c.
References _local_laplacian_cl_global, dt_opencl_create_kernel(), and g.
Referenced by dt_opencl_init().
|
static |
Definition at line 47 of file locallaplaciancl.c.
Referenced by dt_local_laplacian_free_cl_global(), dt_local_laplacian_init_cl(), and dt_local_laplacian_init_cl_global().