Blender V4.3
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, size_t num_pixels, bool is_rgba, bool compress_as_srgb)
 
static ColorSpaceProcessor * get_processor (ustring colorspace)
 
static void to_scene_linear (ColorSpaceProcessor *processor, float *pixel, int channels)
 
static void free_memory ()
 
static void init_fallback_config ()
 

Detailed Description

Definition at line 19 of file colorspace.h.

Member Function Documentation

◆ colorspace_is_data()

bool ColorSpaceManager::colorspace_is_data ( ustring colorspace)
static

Definition at line 73 of file colorspace.cpp.

References 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 441 of file colorspace.cpp.

References map_free_memory().

Referenced by ShaderManager::free_memory().

◆ get_processor()

ColorSpaceProcessor * ColorSpaceManager::get_processor ( ustring colorspace)
static

◆ init_fallback_config()

void ColorSpaceManager::init_fallback_config ( )
static

Definition at line 449 of file colorspace.cpp.

Referenced by RenderGraph::SetUp().

◆ to_scene_linear() [1/2]

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

Definition at line 394 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,
size_t num_pixels,
bool is_rgba,
bool compress_as_srgb )
static

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