25constant sampler_t
sampleri = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST;
27constant sampler_t
samplerf = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_LINEAR;
29constant sampler_t
samplerc = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST;
32constant sampler_t
samplerA = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_NONE | CLK_FILTER_NEAREST;
36#define M_PI_F 3.14159265358979323846
39#define ICLAMP(a, mn, mx) ((a) < (mn) ? (mn) : ((a) > (mx) ? (mx) : (a)))
47FC(
const int row,
const int col,
const unsigned int filters)
49 return filters >> ((((
row) << 1 & 14) + ((col) & 1)) << 1) & 3;
54FCxtrans(
const int row,
const int col, global
const unsigned char (*
const xtrans)[6])
56 return xtrans[
row % 6][col % 6];
62#pragma OPENCL FP_CONTRACT ON
static const int row
Definition colorspaces_inline_conversions.h:175
constant sampler_t sampleri
Definition data/kernels/common.h:25
constant sampler_t samplerf
Definition data/kernels/common.h:27
constant sampler_t samplerA
Definition data/kernels/common.h:32
constant sampler_t samplerc
Definition data/kernels/common.h:29
static int FCxtrans(const int row, const int col, global const unsigned char(*const xtrans)[6])
Definition data/kernels/common.h:54
static int FC(const int row, const int col, const unsigned int filters)
Definition data/kernels/common.h:47