17 #ifndef __COLORSPACE_H__
18 #define __COLORSPACE_H__
29 class ColorSpaceProcessor;
37 const char *file_format,
49 bool compress_as_srgb);
54 static ColorSpaceProcessor *
get_processor(ustring colorspace);
55 static void to_scene_linear(ColorSpaceProcessor *processor,
float *pixel,
int channels);
61 static void is_builtin_colorspace(ustring colorspace,
bool &is_no_op,
bool &is_srgb);
static bool colorspace_is_data(ustring colorspace)
static void free_memory()
static void to_scene_linear(ustring colorspace, T *pixels, size_t num_pixels, bool compress_as_srgb)
static ColorSpaceProcessor * get_processor(ustring colorspace)
static ustring detect_known_colorspace(ustring colorspace, const char *file_format, bool is_float)
ustring u_colorspace_srgb
CCL_NAMESPACE_BEGIN ustring u_colorspace_auto
#define CCL_NAMESPACE_END