#include "common.h"
#include "colorspace.h"
Go to the source code of this file.
|
| static float | lerp_lookup_unbounded (const float x, read_only image2d_t lut, constant const float *const unbounded_coeffs, const int n_lut, const int lutsize) |
| |
| static float | lookup (read_only image2d_t lut, const float x) |
| |
| static float | lookup_unbounded (read_only image2d_t lut, const float x, constant const float *const a) |
| |
| static float4 | apply_trc_in (const float4 rgb_in, constant const dt_colorspaces_iccprofile_info_cl_t *const profile_info, read_only image2d_t lut) |
| |
| static float4 | apply_trc_out (const float4 rgb_in, constant const dt_colorspaces_iccprofile_info_cl_t *const profile_info, read_only image2d_t lut) |
| |
| static float | get_rgb_matrix_luminance (const float4 rgb, constant const dt_colorspaces_iccprofile_info_cl_t *const profile_info, constant const float *const matrix, read_only image2d_t lut) |
| |
| static float4 | rgb_matrix_to_xyz (const float4 rgb, constant const dt_colorspaces_iccprofile_info_cl_t *const profile_info, constant const float *const matrix, read_only image2d_t lut) |
| |
| static float | dt_camera_rgb_luminance (const float4 rgb) |
| |
◆ dt_colorspaces_iccprofile_info_cl_t
◆ dt_iop_colorspace_type_t
◆ dt_iop_colorspace_type_t
| Enumerator |
|---|
| IOP_CS_NONE | |
| IOP_CS_RAW | |
| IOP_CS_LAB | |
| IOP_CS_RGB | |
| IOP_CS_LCH | |
| IOP_CS_HSL | |
| IOP_CS_JZCZHZ | |
◆ apply_trc_in()
◆ apply_trc_out()
◆ dt_camera_rgb_luminance()
| static float dt_camera_rgb_luminance |
( |
const float4 |
rgb | ) |
|
|
inlinestatic |
◆ get_rgb_matrix_luminance()
| static float get_rgb_matrix_luminance |
( |
const float4 |
rgb, |
|
|
constant const dt_colorspaces_iccprofile_info_cl_t *const |
profile_info, |
|
|
constant const float *const |
matrix, |
|
|
read_only image2d_t |
lut |
|
) |
| |
|
inlinestatic |
◆ lerp_lookup_unbounded()
| static float lerp_lookup_unbounded |
( |
const float |
x, |
|
|
read_only image2d_t |
lut, |
|
|
constant const float *const |
unbounded_coeffs, |
|
|
const int |
n_lut, |
|
|
const int |
lutsize |
|
) |
| |
|
inlinestatic |
References clamp(), f, l1, l2, lut, lutsize, samplerf, sampleri, t, and x.
Referenced by apply_trc_in(), and apply_trc_out().
◆ lookup()
| static float lookup |
( |
read_only image2d_t |
lut, |
|
|
const float |
x |
|
) |
| |
|
inlinestatic |
◆ lookup_unbounded()
| static float lookup_unbounded |
( |
read_only image2d_t |
lut, |
|
|
const float |
x, |
|
|
constant const float *const |
a |
|
) |
| |
|
inlinestatic |
◆ rgb_matrix_to_xyz()
| static float4 rgb_matrix_to_xyz |
( |
const float4 |
rgb, |
|
|
constant const dt_colorspaces_iccprofile_info_cl_t *const |
profile_info, |
|
|
constant const float *const |
matrix, |
|
|
read_only image2d_t |
lut |
|
) |
| |
|
inlinestatic |