Blender V5.0
ColorSpaceManager Class Reference

#include <colorspace.h>

Static Public Member Functions

static ustring detect_known_colorspace (ustring colorspace, const char *file_colorspace, const char *file_format, bool is_float)
static bool colorspace_is_data (ustring colorspace)
template<typename T>
static void to_scene_linear (ustring colorspace, T *pixels, const size_t num_pixels, bool is_rgba, bool compress_as_srgb, bool ignore_alpha)
static ColorSpaceProcessor * get_processor (ustring colorspace)
static void to_scene_linear (ColorSpaceProcessor *processor, float *pixel, const int channels)
static void free_memory ()
static void init_fallback_config ()

Detailed Description

Definition at line 17 of file scene/colorspace.h.

Member Function Documentation

◆ colorspace_is_data()

bool ColorSpaceManager::colorspace_is_data ( ustring colorspace)
static

Definition at line 117 of file colorspace.cpp.

References LOG_ERROR, u_colorspace_auto, u_colorspace_raw, and u_colorspace_srgb.

Referenced by image_associate_alpha().

◆ detect_known_colorspace()

ustring ColorSpaceManager::detect_known_colorspace ( ustring colorspace,
const char * file_colorspace,
const char * file_format,
bool is_float )
static

◆ free_memory()

void ColorSpaceManager::free_memory ( )
static

Definition at line 507 of file colorspace.cpp.

References map_free_memory().

Referenced by exit_func().

◆ get_processor()

ColorSpaceProcessor * ColorSpaceManager::get_processor ( ustring colorspace)
static

◆ init_fallback_config()

void ColorSpaceManager::init_fallback_config ( )
static

Definition at line 515 of file colorspace.cpp.

Referenced by RenderGraph::SetUp().

◆ to_scene_linear() [1/2]

void ColorSpaceManager::to_scene_linear ( ColorSpaceProcessor * processor,
float * pixel,
const int channels )
static

Definition at line 460 of file colorspace.cpp.

References average(), make_float3(), and float3::x.

◆ to_scene_linear() [2/2]

template<typename T>
void ColorSpaceManager::to_scene_linear ( ustring colorspace,
T * pixels,
const size_t num_pixels,
bool is_rgba,
bool compress_as_srgb,
bool ignore_alpha )
static

The documentation for this class was generated from the following files: