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

Go to the source code of this file.

Macros

#define M_PI_F   3.14159265358979323846
 
#define ICLAMP(a, mn, mx)   ((a) < (mn) ? (mn) : ((a) > (mx) ? (mx) : (a)))
 
#define RED   0
 
#define GREEN   1
 
#define BLUE   2
 
#define ALPHA   3
 

Functions

static int FC (const int row, const int col, const unsigned int filters)
 
static int FCxtrans (const int row, const int col, global const unsigned char(*const xtrans)[6])
 

Variables

constant sampler_t sampleri = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST
 
constant sampler_t samplerf = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_LINEAR
 
constant sampler_t samplerc = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST
 
constant sampler_t samplerA = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_NONE | CLK_FILTER_NEAREST
 

Macro Definition Documentation

◆ ALPHA

#define ALPHA   3

Definition at line 43 of file data/kernels/common.h.

◆ BLUE

#define BLUE   2

Definition at line 42 of file data/kernels/common.h.

◆ GREEN

#define GREEN   1

Definition at line 41 of file data/kernels/common.h.

◆ ICLAMP

#define ICLAMP (   a,
  mn,
  mx 
)    ((a) < (mn) ? (mn) : ((a) > (mx) ? (mx) : (a)))

Definition at line 39 of file data/kernels/common.h.

◆ M_PI_F

#define M_PI_F   3.14159265358979323846

Definition at line 36 of file data/kernels/common.h.

◆ RED

#define RED   0

Definition at line 40 of file data/kernels/common.h.

Function Documentation

◆ FC()

◆ FCxtrans()

Variable Documentation

◆ samplerA

constant sampler_t samplerA = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_NONE | CLK_FILTER_NEAREST

Definition at line 32 of file data/kernels/common.h.

◆ samplerc

constant sampler_t samplerc = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST

Definition at line 29 of file data/kernels/common.h.

◆ samplerf

constant sampler_t samplerf = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_LINEAR

Definition at line 27 of file data/kernels/common.h.

Referenced by lerp_lookup_unbounded().

◆ sampleri

constant sampler_t sampleri = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST

Definition at line 25 of file data/kernels/common.h.

Referenced by lerp_lookup_unbounded(), lookup(), and lookup_unbounded().