Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
chroma.h File Reference
#include "common/opencl.h"
#include "iop/highlights/common.h"
#include <math.h>
#include <stdint.h>
+ Include dependency graph for chroma.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void _aniso_tensor (const float *const restrict luminance, float *const restrict tensor_xx, float *const restrict tensor_xy, float *const restrict tensor_yy, float *const restrict scratch, const int region_w, const int region_h)
 
void _aniso_iterate_obs (float *const restrict field, const float *const restrict obstacle, const uint8_t *const restrict hole, const float *const restrict tensor_xx, const float *const restrict tensor_xy, const float *const restrict tensor_yy, float *const restrict tmp, const int region_w, const int region_h, const int iters, const int box_x_lo, const int box_y_lo, const int box_x_hi, const int box_y_hi)
 
static float _aniso_edge_w (const float *const restrict tensor_xx, const float *const restrict tensor_xy, const float *const restrict tensor_yy, const size_t i, const size_t j, const int offset_x, const int offset_y)
 
int _aniso_div_solve (float *const restrict ratios, const float *const restrict valid, const float *const restrict luminance, float *const restrict scratch_planes, const int region_w, const int region_h, const dt_dev_pixelpipe_t *pipe)
 
void _aniso_chroma (_hl_region_ctx_t *const ctx)
 

Function Documentation

◆ _aniso_chroma()

◆ _aniso_div_solve()

int _aniso_div_solve ( float *const restrict  ratios,
const float *const restrict  valid,
const float *const restrict  luminance,
float *const restrict  scratch_planes,
const int  region_w,
const int  region_h,
const dt_dev_pixelpipe_t pipe 
)

◆ _aniso_edge_w()

static float _aniso_edge_w ( const float *const restrict  tensor_xx,
const float *const restrict  tensor_xy,
const float *const restrict  tensor_yy,
const size_t  i,
const size_t  j,
const int  offset_x,
const int  offset_y 
)
inlinestatic

Definition at line 54 of file chroma.h.

References i.

Referenced by _aniso_div_solve(), and _cf_harmonic_fill_n().

◆ _aniso_iterate_obs()

void _aniso_iterate_obs ( float *const restrict  field,
const float *const restrict  obstacle,
const uint8_t *const restrict  hole,
const float *const restrict  tensor_xx,
const float *const restrict  tensor_xy,
const float *const restrict  tensor_yy,
float *const restrict  tmp,
const int  region_w,
const int  region_h,
const int  iters,
const int  box_x_lo,
const int  box_y_lo,
const int  box_x_hi,
const int  box_y_hi 
)

Definition at line 102 of file chroma.c.

References __OMP_PARALLEL_FOR__, i, MAX, MIN, and x.

Referenced by _aniso_chroma(), and _aniso_stage_cl_selftest().

◆ _aniso_tensor()

void _aniso_tensor ( const float *const restrict  luminance,
float *const restrict  tensor_xx,
float *const restrict  tensor_xy,
float *const restrict  tensor_yy,
float *const restrict  scratch,
const int  region_w,
const int  region_h 
)

Definition at line 31 of file chroma.c.

References __OMP_PARALLEL_FOR__, i, luminance, MAX, MIN, and x.

Referenced by _aniso_chroma(), _aniso_div_solve(), and _aniso_stage_cl_selftest().