21constant sampler_t
sampleri = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST;
23constant sampler_t
samplerf = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_LINEAR;
25constant sampler_t
samplerc = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST;
28constant sampler_t
samplerA = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_NONE | CLK_FILTER_NEAREST;
32#define M_PI_F 3.14159265358979323846
35#define ICLAMP(a, mn, mx) ((a) < (mn) ? (mn) : ((a) > (mx) ? (mx) : (a)))
43FC(
const int row,
const int col,
const unsigned int filters)
45 return filters >> ((((row) << 1 & 14) + ((col) & 1)) << 1) & 3;
50FCxtrans(
const int row,
const int col, global
const unsigned char (*
const xtrans)[6])
52 return xtrans[row % 6][col % 6];
58#pragma OPENCL FP_CONTRACT ON
constant sampler_t sampleri
Definition data/kernels/common.h:21
constant sampler_t samplerf
Definition data/kernels/common.h:23
constant sampler_t samplerA
Definition data/kernels/common.h:28
constant sampler_t samplerc
Definition data/kernels/common.h:25
static int FCxtrans(const int row, const int col, global const unsigned char(*const xtrans)[6])
Definition data/kernels/common.h:50
static int FC(const int row, const int col, const unsigned int filters)
Definition data/kernels/common.h:43