Blender V4.5
blender::ocio::ColorSpace Class Referenceabstract

#include <OCIO_colorspace.hh>

Inherited by blender::ocio::FallbackColorSpace.

Public Member Functions

virtual ~ColorSpace ()=default
virtual StringRefNull name () const =0
virtual StringRefNull description () const =0
virtual bool is_invertible () const =0
virtual bool is_scene_linear () const =0
virtual bool is_srgb () const =0
virtual bool is_data () const =0
virtual const CPUProcessorget_to_scene_linear_cpu_processor () const =0
virtual const CPUProcessorget_from_scene_linear_cpu_processor () const =0

Public Attributes

int index = -1

Detailed Description

Definition at line 14 of file OCIO_colorspace.hh.

Constructor & Destructor Documentation

◆ ~ColorSpace()

virtual blender::ocio::ColorSpace::~ColorSpace ( )
virtualdefault

Member Function Documentation

◆ description()

virtual StringRefNull blender::ocio::ColorSpace::description ( ) const
pure virtual

◆ get_from_scene_linear_cpu_processor()

virtual const CPUProcessor * blender::ocio::ColorSpace::get_from_scene_linear_cpu_processor ( ) const
pure virtual

◆ get_to_scene_linear_cpu_processor()

virtual const CPUProcessor * blender::ocio::ColorSpace::get_to_scene_linear_cpu_processor ( ) const
pure virtual

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.

Implemented in blender::ocio::FallbackColorSpace.

Referenced by IMB_colormanagement_colorspace_to_scene_linear(), IMB_colormanagement_colorspace_to_scene_linear_v3(), IMB_colormanagement_colorspace_to_scene_linear_v4(), and IMB_colormanagement_imbuf_to_float_texture().

◆ is_data()

virtual bool blender::ocio::ColorSpace::is_data ( ) const
pure virtual

◆ is_invertible()

virtual bool blender::ocio::ColorSpace::is_invertible ( ) const
pure virtual

Returns true if there is a conversion from this color space to the scene linear.

Implemented in blender::ocio::FallbackColorSpace.

Referenced by IMB_colormanagement_colorspace_items_add().

◆ is_scene_linear()

virtual bool blender::ocio::ColorSpace::is_scene_linear ( ) const
pure virtual

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

Implemented in blender::ocio::FallbackColorSpace.

Referenced by IMB_colormanagement_space_is_scene_linear().

◆ is_srgb()

virtual bool blender::ocio::ColorSpace::is_srgb ( ) const
pure virtual

◆ name()

virtual StringRefNull blender::ocio::ColorSpace::name ( ) const
pure virtual

Member Data Documentation

◆ index

int blender::ocio::ColorSpace::index = -1

Global index of the color space within the OpenColorIO configuration. The index is 0-based.

Definition at line 22 of file OCIO_colorspace.hh.

Referenced by blender::ocio::FallbackColorSpace::FallbackColorSpace(), IMB_colormanagement_colorspace_get_named_index(), and IMB_colormanagement_colorspace_items_add().


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