Blender V5.3
blender::ocio::LibOCIOColorSpace Class Reference

#include <libocio_colorspace.hh>

Inherits blender::ocio::ColorSpace.

Public Member Functions

 LibOCIOColorSpace (int index, const OCIO_NAMESPACE::ConstConfigRcPtr &ocio_config, const OCIO_NAMESPACE::ConstColorSpaceRcPtr &ocio_color_space, Set< StringRef > &primary_interop_ids)
StringRefNull name () const override
StringRefNull description () const override
StringRefNull family () const override
StringRefNull interop_id () const override
bool is_primary_interop_id () const override
StringRefNull alternate_interop_id () const override
std::string icc_profile_path () const override
bool is_scene_linear () const override
bool is_srgb () const override
bool is_data () const override
bool is_display_referred () const override
const CPUProcessor * get_to_scene_linear_cpu_processor () const override
const CPUProcessor * get_from_scene_linear_cpu_processor () const override
void switch_scene_linear_config (const OCIO_NAMESPACE::ConstConfigRcPtr &ocio_config)
const OCIO_NAMESPACE::ConstColorSpaceRcPtr & ocio_color_space () const
void clear_caches ()
 MEM_CXX_CLASS_ALLOC_FUNCS ("LibOCIOColorSpace")
Public Member Functions inherited from blender::ocio::ColorSpace
virtual ~ColorSpace ()=default

Additional Inherited Members

Public Attributes inherited from blender::ocio::ColorSpace
int index = -1

Detailed Description

Definition at line 20 of file libocio_colorspace.hh.

Constructor & Destructor Documentation

◆ LibOCIOColorSpace()

blender::ocio::LibOCIOColorSpace::LibOCIOColorSpace ( int index,
const OCIO_NAMESPACE::ConstConfigRcPtr & ocio_config,
const OCIO_NAMESPACE::ConstColorSpaceRcPtr & ocio_color_space,
Set< StringRef > & primary_interop_ids )

Member Function Documentation

◆ alternate_interop_id()

StringRefNull blender::ocio::LibOCIOColorSpace::alternate_interop_id ( ) const
inlineoverridevirtual

Implements blender::ocio::ColorSpace.

Definition at line 65 of file libocio_colorspace.hh.

◆ clear_caches()

void blender::ocio::LibOCIOColorSpace::clear_caches ( )

Definition at line 242 of file libocio_colorspace.cc.

References clear_caches().

Referenced by clear_caches(), and switch_scene_linear_config().

◆ description()

StringRefNull blender::ocio::LibOCIOColorSpace::description ( ) const
inlineoverridevirtual

Implements blender::ocio::ColorSpace.

Definition at line 51 of file libocio_colorspace.hh.

◆ family()

StringRefNull blender::ocio::LibOCIOColorSpace::family ( ) const
inlineoverridevirtual

Implements blender::ocio::ColorSpace.

Definition at line 55 of file libocio_colorspace.hh.

Referenced by LibOCIOColorSpace().

◆ get_from_scene_linear_cpu_processor()

const CPUProcessor * blender::ocio::LibOCIOColorSpace::get_from_scene_linear_cpu_processor ( ) const
overridevirtual

◆ get_to_scene_linear_cpu_processor()

const CPUProcessor * blender::ocio::LibOCIOColorSpace::get_to_scene_linear_cpu_processor ( ) const
overridevirtual

Quick access to CPU processors that convert color space from the current one to scene linear and vice versa. The call is allowed to be caching from the color space implementation perspective.

Implements blender::ocio::ColorSpace.

Definition at line 190 of file libocio_colorspace.cc.

References blender::ocio::create_ocio_processor(), blender::ocio::create_ocio_processor_between_configs(), and get_to_scene_linear_cpu_processor().

Referenced by get_to_scene_linear_cpu_processor(), and is_scene_linear().

◆ icc_profile_path()

std::string blender::ocio::LibOCIOColorSpace::icc_profile_path ( ) const
overridevirtual

Implements blender::ocio::ColorSpace.

Definition at line 157 of file libocio_colorspace.cc.

References icc_profile_path(), and blender::ocio::report_exception().

Referenced by icc_profile_path().

◆ interop_id()

StringRefNull blender::ocio::LibOCIOColorSpace::interop_id ( ) const
inlineoverridevirtual

◆ is_data()

bool blender::ocio::LibOCIOColorSpace::is_data ( ) const
inlineoverridevirtual

The color space is a non-color data. Data color spaces do not change values of underlying pixels when converting to other color spaces.

Implements blender::ocio::ColorSpace.

Definition at line 75 of file libocio_colorspace.hh.

Referenced by blender::ocio::display_as_scope_space().

◆ is_display_referred()

bool blender::ocio::LibOCIOColorSpace::is_display_referred ( ) const
inlineoverridevirtual

The color space is display referred rather than scene referred.

Implements blender::ocio::ColorSpace.

Definition at line 80 of file libocio_colorspace.hh.

Referenced by blender::ocio::adjust_for_hdr_image_file(), blender::ocio::display_as_extended_srgb(), and blender::ocio::display_as_scope_space().

◆ is_primary_interop_id()

bool blender::ocio::LibOCIOColorSpace::is_primary_interop_id ( ) const
overridevirtual

Implements blender::ocio::ColorSpace.

Definition at line 125 of file libocio_colorspace.cc.

References is_primary_interop_id().

Referenced by is_primary_interop_id().

◆ is_scene_linear()

bool blender::ocio::LibOCIOColorSpace::is_scene_linear ( ) const
overridevirtual

Check whether this color space matches one of the built-in spaces like scene linear or sRGB (in its standard Blender notation).

Implements blender::ocio::ColorSpace.

Definition at line 176 of file libocio_colorspace.cc.

References get_to_scene_linear_cpu_processor(), blender::ocio::CPUProcessor::is_noop(), and is_scene_linear().

Referenced by is_scene_linear().

◆ is_srgb()

bool blender::ocio::LibOCIOColorSpace::is_srgb ( ) const
overridevirtual

Implements blender::ocio::ColorSpace.

Definition at line 183 of file libocio_colorspace.cc.

References ELEM, and is_srgb().

Referenced by is_srgb().

◆ MEM_CXX_CLASS_ALLOC_FUNCS()

blender::ocio::LibOCIOColorSpace::MEM_CXX_CLASS_ALLOC_FUNCS ( "LibOCIOColorSpace" )

◆ name()

StringRefNull blender::ocio::LibOCIOColorSpace::name ( ) const
inlineoverridevirtual

Name, description, and family of this space.

The name is used to address to this color space from various places of the configuration. The description is used for UI to give better clue what the space is to artists. The family is used for organizational purposes in menus.

Implements blender::ocio::ColorSpace.

Definition at line 46 of file libocio_colorspace.hh.

Referenced by blender::ocio::adjust_for_hdr_image_file(), blender::ocio::display_as_extended_srgb(), blender::ocio::display_as_scope_space(), and blender::ocio::LibOCIODisplay::LibOCIODisplay().

◆ ocio_color_space()

const OCIO_NAMESPACE::ConstColorSpaceRcPtr & blender::ocio::LibOCIOColorSpace::ocio_color_space ( ) const
inline

Definition at line 90 of file libocio_colorspace.hh.

Referenced by LibOCIOColorSpace().

◆ switch_scene_linear_config()

void blender::ocio::LibOCIOColorSpace::switch_scene_linear_config ( const OCIO_NAMESPACE::ConstConfigRcPtr & ocio_config)

Definition at line 232 of file libocio_colorspace.cc.

References clear_caches(), and switch_scene_linear_config().

Referenced by switch_scene_linear_config().


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