Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
basic.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SWAP(a, b)
#define SWAPmed(I, J)

Functions

static __DT_CLONE_TARGETS__ void lin_interpolate (float *out, const float *const in, const dt_iop_roi_t *const roi_out, const dt_iop_roi_t *const roi_in, const uint32_t filters, const uint8_t(*const xtrans)[6])
static __DT_CLONE_TARGETS__ void pre_median_b (float *out, const float *const in, const dt_iop_roi_t *const roi, const uint32_t filters, const int num_passes, const float threshold)
static void pre_median (float *out, const float *const in, const dt_iop_roi_t *const roi, const uint32_t filters, const int num_passes, const float threshold)
static __DT_CLONE_TARGETS__ void color_smoothing (float *out, const dt_iop_roi_t *const roi_out, const int num_passes)
static __DT_CLONE_TARGETS__ void green_equilibration_lavg (float *out, const float *const in, const int width, const int height, const uint32_t filters, const int x, const int y, const float thr)
static __DT_CLONE_TARGETS__ void green_equilibration_favg (float *out, const float *const in, const int width, const int height, const uint32_t filters, const int x, const int y)
static int color_smoothing_cl (struct dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, cl_mem dev_in, cl_mem dev_out, const dt_iop_roi_t *const roi_out, const int passes)
static int green_equilibration_cl (struct dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, cl_mem dev_in, cl_mem dev_out, const dt_iop_roi_t *const roi_in)

Macro Definition Documentation

◆ SWAP

#define SWAP ( a,
b )
Value:
{ \
const float tmp = (b); \
(b) = (a); \
(a) = tmp; \
}

Definition at line 129 of file basic.c.

Referenced by pre_median_b().

◆ SWAPmed

#define SWAPmed ( I,
J )
Value:
if(med[I] > med[J]) SWAP(med[I], med[J])
#define SWAP(a, b)

Definition at line 188 of file basic.c.

Referenced by color_smoothing().

Function Documentation

◆ color_smoothing()

__DT_CLONE_TARGETS__ void color_smoothing ( float * out,
const dt_iop_roi_t *const roi_out,
const int num_passes )
static

Definition at line 192 of file basic.c.

References __OMP_PARALLEL_FOR__, dt_iop_roi_t::height, i, out, SWAPmed, and dt_iop_roi_t::width.

Referenced by dual_demosaic(), legacy_params(), and process().

◆ color_smoothing_cl()

◆ green_equilibration_cl()

◆ green_equilibration_favg()

__DT_CLONE_TARGETS__ void green_equilibration_favg ( float * out,
const float *const in,
const int width,
const int height,
const uint32_t filters,
const int x,
const int y )
static

Definition at line 296 of file basic.c.

References __OMP_PARALLEL_FOR__, dt_iop_image_copy_by_size(), FC(), height, i, in, out, width, and x.

Referenced by process().

◆ green_equilibration_lavg()

__DT_CLONE_TARGETS__ void green_equilibration_lavg ( float * out,
const float *const in,
const int width,
const int height,
const uint32_t filters,
const int x,
const int y,
const float thr )
static

Definition at line 248 of file basic.c.

References __OMP_PARALLEL_FOR__, c1, c2, dt_iop_image_copy_by_size(), FC(), height, i, in, out, width, and x.

Referenced by process().

◆ lin_interpolate()

__DT_CLONE_TARGETS__ void lin_interpolate ( float * out,
const float *const in,
const dt_iop_roi_t *const roi_out,
const dt_iop_roi_t *const roi_in,
const uint32_t filters,
const uint8_t(*) xtrans[6] )
static

◆ pre_median()

void pre_median ( float * out,
const float *const in,
const dt_iop_roi_t *const roi,
const uint32_t filters,
const int num_passes,
const float threshold )
static

Definition at line 182 of file basic.c.

References in, out, pre_median_b(), and threshold.

Referenced by demosaic_ppg().

◆ pre_median_b()

__DT_CLONE_TARGETS__ void pre_median_b ( float * out,
const float *const in,
const dt_iop_roi_t *const roi,
const uint32_t filters,
const int num_passes,
const float threshold )
static