Blender  V3.3
Static Public Member Functions | List of all members
ColorSpaceManager Class Reference

#include <colorspace.h>

Static Public Member Functions

static ustring detect_known_colorspace (ustring 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 ()
 

Detailed Description

Definition at line 18 of file colorspace.h.

Member Function Documentation

◆ colorspace_is_data()

bool ColorSpaceManager::colorspace_is_data ( ustring  colorspace)
static

Definition at line 72 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_format,
bool  is_float 
)
static

◆ free_memory()

void ColorSpaceManager::free_memory ( )
static

Definition at line 434 of file colorspace.cpp.

References map_free_memory().

Referenced by ShaderManager::free_memory().

◆ get_processor()

ColorSpaceProcessor * ColorSpaceManager::get_processor ( ustring  colorspace)
static

◆ to_scene_linear() [1/2]

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

Definition at line 387 of file colorspace.cpp.

References average(), channels(), make_float3, usdtokens::rgb(), and void.

◆ 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: