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

Go to the source code of this file.

Data Structures

struct  _hl_gauss_slot_t
 
struct  _hl_region_t
 
struct  _hl_knee_curve_t
 
struct  _hl_region_ctx_t
 
struct  dt_iop_highlights_params_t
 
struct  dt_iop_highlights_global_data_t
 

Macros

#define DT_HL_BIHARMONIC   1
 
#define DT_HL_BAND_OVR   0.9f
 
#define HL_PFOR(...)   __OMP_PARALLEL_FOR__(__VA_ARGS__)
 
#define HL_GAUSS_SLOTS   4
 
#define DT_HL_PAIR_VARIANCE   1
 
#define DT_HL_GUIDE_GATE   2
 
#define DT_HL_CLIP_FLOOR   1
 
#define DT_HL_DOME_NMAX   2000
 
#define DT_HL_DOME_NMAX_SPARSE   8192
 
#define DT_HL_SELF_DOME   1
 
#define DT_HL_ANISO_CHROMA   1
 
#define DT_HL_KNEE   1
 
#define DT_HL_COEFF_FIELD   1
 
#define DT_HL_HF_GUIDE   1
 
#define DT_HL_CF_K   0.15f
 
#define DT_HL_FILL_CL_MAXP   3
 
#define DT_HL_SPARSE_SOLVE   1
 
#define DT_HL_SPARSE_MAX   (1 << 14)
 
#define DT_HL_ANISO_SOLVER   2
 
#define DT_HL_FILL_MAXP   4
 
#define DT_HL_CL_CPU_REGION_PX   (1u << 20)
 
#define DT_HL_KNEE_LO   0.80f
 
#define DT_HL_KNEE_DET   0.995f
 
#define DT_HL_KNEE_BINS   24
 
#define DT_HL_KNEE_FMIN   0.02f
 
#define DT_HL_KNEE_R2MIN   0.25f
 
#define DT_HL_KNEE_MINVOTES   100
 
#define DT_HL_KNEE_NSIGMA   2.0f
 
#define DT_HL_KNEE_ENGAGE   0.005f
 
#define DT_HL_KNEE_NSIGMAS   5
 
#define MAX_NUM_SCALES   12
 
#define REDUCESIZE   64
 
#define DS_FACTOR   4
 
#define SQRT3   1.7320508075688772935274463415058723669L
 
#define SQRT12   3.4641016151377545870548926830117447339L
 

Typedefs

typedef struct _hl_knee_curve_t _hl_knee_curve_t
 
typedef struct _hl_region_ctx_t _hl_region_ctx_t
 
typedef enum dt_iop_highlights_mode_t dt_iop_highlights_mode_t
 
typedef enum dt_atrous_wavelets_scales_t dt_atrous_wavelets_scales_t
 
typedef struct dt_iop_highlights_params_t dt_iop_highlights_params_t
 
typedef dt_iop_highlights_params_t dt_iop_highlights_data_t
 
typedef struct dt_iop_highlights_global_data_t dt_iop_highlights_global_data_t
 
typedef enum diffuse_reconstruct_variant_t diffuse_reconstruct_variant_t
 

Enumerations

enum  dt_iop_highlights_mode_t {
  DT_IOP_HIGHLIGHTS_CLIP = 0 ,
  DT_IOP_HIGHLIGHTS_LCH = 1 ,
  DT_IOP_HIGHLIGHTS_INPAINT = 2 ,
  DT_IOP_HIGHLIGHTS_LAPLACIAN = 3 ,
  DT_IOP_HIGHLIGHTS_HARMONIC = 4
}
 
enum  dt_atrous_wavelets_scales_t {
  WAVELETS_1_SCALE = 0 ,
  WAVELETS_2_SCALE = 1 ,
  WAVELETS_3_SCALE = 2 ,
  WAVELETS_4_SCALE = 3 ,
  WAVELETS_5_SCALE = 4 ,
  WAVELETS_6_SCALE = 5 ,
  WAVELETS_7_SCALE = 6 ,
  WAVELETS_8_SCALE = 7 ,
  WAVELETS_9_SCALE = 8 ,
  WAVELETS_10_SCALE = 9 ,
  WAVELETS_11_SCALE = 10 ,
  WAVELETS_12_SCALE = 11
}
 
enum  diffuse_reconstruct_variant_t {
  DIFFUSE_RECONSTRUCT_RGB = 0 ,
  DIFFUSE_RECONSTRUCT_CHROMA
}
 
enum  wavelets_scale_t {
  ANY_SCALE = 1 << 0 ,
  FIRST_SCALE = 1 << 1 ,
  LAST_SCALE = 1 << 2
}
 

Macro Definition Documentation

◆ DS_FACTOR

#define DS_FACTOR   4

Definition at line 491 of file src/iop/highlights/common.h.

◆ DT_HL_ANISO_CHROMA

#define DT_HL_ANISO_CHROMA   1

Definition at line 143 of file src/iop/highlights/common.h.

◆ DT_HL_ANISO_SOLVER

#define DT_HL_ANISO_SOLVER   2

Definition at line 233 of file src/iop/highlights/common.h.

◆ DT_HL_BAND_OVR

#define DT_HL_BAND_OVR   0.9f

Definition at line 74 of file src/iop/highlights/common.h.

◆ DT_HL_BIHARMONIC

#define DT_HL_BIHARMONIC   1

Definition at line 64 of file src/iop/highlights/common.h.

◆ DT_HL_CF_K

#define DT_HL_CF_K   0.15f

Definition at line 217 of file src/iop/highlights/common.h.

◆ DT_HL_CL_CPU_REGION_PX

#define DT_HL_CL_CPU_REGION_PX   (1u << 20)

Definition at line 245 of file src/iop/highlights/common.h.

◆ DT_HL_CLIP_FLOOR

#define DT_HL_CLIP_FLOOR   1

Definition at line 113 of file src/iop/highlights/common.h.

◆ DT_HL_COEFF_FIELD

#define DT_HL_COEFF_FIELD   1

Definition at line 180 of file src/iop/highlights/common.h.

◆ DT_HL_DOME_NMAX

#define DT_HL_DOME_NMAX   2000

Definition at line 117 of file src/iop/highlights/common.h.

◆ DT_HL_DOME_NMAX_SPARSE

#define DT_HL_DOME_NMAX_SPARSE   8192

Definition at line 121 of file src/iop/highlights/common.h.

◆ DT_HL_FILL_CL_MAXP

#define DT_HL_FILL_CL_MAXP   3

Definition at line 220 of file src/iop/highlights/common.h.

◆ DT_HL_FILL_MAXP

#define DT_HL_FILL_MAXP   4

Definition at line 239 of file src/iop/highlights/common.h.

◆ DT_HL_GUIDE_GATE

#define DT_HL_GUIDE_GATE   2

Definition at line 106 of file src/iop/highlights/common.h.

◆ DT_HL_HF_GUIDE

#define DT_HL_HF_GUIDE   1

Definition at line 189 of file src/iop/highlights/common.h.

◆ DT_HL_KNEE

#define DT_HL_KNEE   1

Definition at line 155 of file src/iop/highlights/common.h.

◆ DT_HL_KNEE_BINS

#define DT_HL_KNEE_BINS   24

Definition at line 249 of file src/iop/highlights/common.h.

◆ DT_HL_KNEE_DET

#define DT_HL_KNEE_DET   0.995f

Definition at line 248 of file src/iop/highlights/common.h.

◆ DT_HL_KNEE_ENGAGE

#define DT_HL_KNEE_ENGAGE   0.005f

Definition at line 254 of file src/iop/highlights/common.h.

◆ DT_HL_KNEE_FMIN

#define DT_HL_KNEE_FMIN   0.02f

Definition at line 250 of file src/iop/highlights/common.h.

◆ DT_HL_KNEE_LO

#define DT_HL_KNEE_LO   0.80f

Definition at line 247 of file src/iop/highlights/common.h.

◆ DT_HL_KNEE_MINVOTES

#define DT_HL_KNEE_MINVOTES   100

Definition at line 252 of file src/iop/highlights/common.h.

◆ DT_HL_KNEE_NSIGMA

#define DT_HL_KNEE_NSIGMA   2.0f

Definition at line 253 of file src/iop/highlights/common.h.

◆ DT_HL_KNEE_NSIGMAS

#define DT_HL_KNEE_NSIGMAS   5

Definition at line 255 of file src/iop/highlights/common.h.

◆ DT_HL_KNEE_R2MIN

#define DT_HL_KNEE_R2MIN   0.25f

Definition at line 251 of file src/iop/highlights/common.h.

◆ DT_HL_PAIR_VARIANCE

#define DT_HL_PAIR_VARIANCE   1

Definition at line 105 of file src/iop/highlights/common.h.

◆ DT_HL_SELF_DOME

#define DT_HL_SELF_DOME   1

Definition at line 137 of file src/iop/highlights/common.h.

◆ DT_HL_SPARSE_MAX

#define DT_HL_SPARSE_MAX   (1 << 14)

Definition at line 230 of file src/iop/highlights/common.h.

◆ DT_HL_SPARSE_SOLVE

#define DT_HL_SPARSE_SOLVE   1

Definition at line 225 of file src/iop/highlights/common.h.

◆ HL_GAUSS_SLOTS

#define HL_GAUSS_SLOTS   4

Definition at line 93 of file src/iop/highlights/common.h.

◆ HL_PFOR

#define HL_PFOR (   ...)    __OMP_PARALLEL_FOR__(__VA_ARGS__)

Definition at line 76 of file src/iop/highlights/common.h.

◆ MAX_NUM_SCALES

#define MAX_NUM_SCALES   12

Definition at line 489 of file src/iop/highlights/common.h.

◆ REDUCESIZE

#define REDUCESIZE   64

Definition at line 490 of file src/iop/highlights/common.h.

◆ SQRT12

#define SQRT12   3.4641016151377545870548926830117447339L

Definition at line 493 of file src/iop/highlights/common.h.

◆ SQRT3

#define SQRT3   1.7320508075688772935274463415058723669L

Definition at line 492 of file src/iop/highlights/common.h.

Typedef Documentation

◆ _hl_knee_curve_t

◆ _hl_region_ctx_t

◆ diffuse_reconstruct_variant_t

◆ dt_atrous_wavelets_scales_t

◆ dt_iop_highlights_data_t

◆ dt_iop_highlights_global_data_t

◆ dt_iop_highlights_mode_t

◆ dt_iop_highlights_params_t

Enumeration Type Documentation

◆ diffuse_reconstruct_variant_t

Enumerator
DIFFUSE_RECONSTRUCT_RGB 
DIFFUSE_RECONSTRUCT_CHROMA 

Definition at line 494 of file src/iop/highlights/common.h.

◆ dt_atrous_wavelets_scales_t

Enumerator
WAVELETS_1_SCALE 
WAVELETS_2_SCALE 
WAVELETS_3_SCALE 
WAVELETS_4_SCALE 
WAVELETS_5_SCALE 
WAVELETS_6_SCALE 
WAVELETS_7_SCALE 
WAVELETS_8_SCALE 
WAVELETS_9_SCALE 
WAVELETS_10_SCALE 
WAVELETS_11_SCALE 
WAVELETS_12_SCALE 

Definition at line 333 of file src/iop/highlights/common.h.

◆ dt_iop_highlights_mode_t

Enumerator
DT_IOP_HIGHLIGHTS_CLIP 
DT_IOP_HIGHLIGHTS_LCH 
DT_IOP_HIGHLIGHTS_INPAINT 
DT_IOP_HIGHLIGHTS_LAPLACIAN 
DT_IOP_HIGHLIGHTS_HARMONIC 

Definition at line 324 of file src/iop/highlights/common.h.

◆ wavelets_scale_t

Enumerator
ANY_SCALE 
FIRST_SCALE 
LAST_SCALE 

Definition at line 499 of file src/iop/highlights/common.h.