34dt_rgb_norm(
const float4 in,
const int norm,
const int work_profile,
43 return max(in.x,
max(in.y, in.z));
47 return (in.x + in.y + in.z) / 3.0f;
51 return in.x + in.y + in.z;
55 return native_powr(in.x * in.x + in.y * in.y + in.z * in.z, 0.5f);
63 return (in.x *
R + in.y * G + in.z *
B) / (
R + G +
B);
65 else return (in.x + in.y + in.z) / 3.0f;
static float dt_rgb_norm(const float4 in, const int norm, const int work_profile, constant dt_colorspaces_iccprofile_info_cl_t *profile_info, read_only image2d_t lut)