Blender V5.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)
static const char * colorspace_interop_id (ustring colorspace)
template<typename T>
static void to_scene_linear (ustring colorspace, T *pixels, const int64_t width, const int64_t height, const int64_t y_stride, bool is_rgba, bool compress_as_srgb, bool ignore_alpha)
static void free_memory ()
static void init_fallback_config ()
static Transform get_xyz_to_scene_linear_rgb ()
static Transform get_xyz_to_rec709 ()
static Transform get_xyz_to_rec2020 ()
static Transform get_xyz_to_acescg ()
static string get_xyz_to_scene_linear_rgb_string ()
static const char * get_scene_linear_interop_id (const bool srgb_encoded=false)

Detailed Description

Definition at line 26 of file util/colorspace.h.

Member Function Documentation

◆ colorspace_interop_id()

const char * ColorSpaceManager::colorspace_interop_id ( ustring colorspace)
static

◆ colorspace_is_data()

bool ColorSpaceManager::colorspace_is_data ( ustring colorspace)
static

◆ 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 724 of file colorspace.cpp.

Referenced by exit_func().

◆ get_scene_linear_interop_id()

const char * ColorSpaceManager::get_scene_linear_interop_id ( const bool srgb_encoded = false)
static

◆ get_xyz_to_acescg()

Transform ColorSpaceManager::get_xyz_to_acescg ( )
static

Definition at line 808 of file colorspace.cpp.

References make_transform(), and transform_inverse().

Referenced by get_scene_linear_interop_id().

◆ get_xyz_to_rec2020()

Transform ColorSpaceManager::get_xyz_to_rec2020 ( )
static

Definition at line 792 of file colorspace.cpp.

References make_transform().

Referenced by get_scene_linear_interop_id().

◆ get_xyz_to_rec709()

Transform ColorSpaceManager::get_xyz_to_rec709 ( )
static

◆ get_xyz_to_scene_linear_rgb()

Transform ColorSpaceManager::get_xyz_to_scene_linear_rgb ( )
static

◆ get_xyz_to_scene_linear_rgb_string()

std::string ColorSpaceManager::get_xyz_to_scene_linear_rgb_string ( )
static

◆ init_fallback_config()

void ColorSpaceManager::init_fallback_config ( )
static

Definition at line 733 of file colorspace.cpp.

Referenced by RenderGraph::SetUp().

◆ to_scene_linear()

template<typename T>
template void ColorSpaceManager::to_scene_linear ( ustring colorspace,
T * pixels,
const int64_t width,
const int64_t height,
const int64_t y_stride,
bool is_rgba,
bool compress_as_srgb,
bool ignore_alpha )
static

Definition at line 676 of file colorspace.cpp.

References T, and u_colorspace_srgb.

Referenced by conform_pixels_to_metadata_type(), and ImageMetaData::finalize().


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