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

◆ BLUE

#define BLUE   2

◆ GREEN

#define GREEN   1

◆ ICLAMP

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

◆ M_PI_F

#define M_PI_F   3.14159265358979323846

◆ RED

#define RED   0

Function Documentation

◆ FC()

◆ FCxtrans()

Variable Documentation

◆ samplerA

constant sampler_t samplerA = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_NONE | CLK_FILTER_NEAREST

◆ samplerc

constant sampler_t samplerc = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST

◆ samplerf

constant sampler_t samplerf = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_LINEAR

◆ sampleri

constant sampler_t sampleri = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST