Blender V5.0
blender::ocio::FallbackColorSpace Class Reference

#include <fallback_colorspace.hh>

Inherits blender::ocio::ColorSpace.

Public Types

enum class  Type { LINEAR , SRGB , DATA }

Public Member Functions

 FallbackColorSpace (const int index, const StringRefNull name, const Type type)
StringRefNull name () const override
StringRefNull description () const override
StringRefNull interop_id () const override
bool is_invertible () 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 CPUProcessorget_to_scene_linear_cpu_processor () const override
CPUProcessorget_from_scene_linear_cpu_processor () const override
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 15 of file fallback_colorspace.hh.

Member Enumeration Documentation

◆ Type

Enumerator
LINEAR 
SRGB 
DATA 

Definition at line 19 of file fallback_colorspace.hh.

Constructor & Destructor Documentation

◆ FallbackColorSpace()

blender::ocio::FallbackColorSpace::FallbackColorSpace ( const int index,
const StringRefNull name,
const Type type )
inline

Definition at line 25 of file fallback_colorspace.hh.

References blender::ocio::ColorSpace::index, and name().

Member Function Documentation

◆ description()

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

Implements blender::ocio::ColorSpace.

Definition at line 35 of file fallback_colorspace.hh.

◆ get_from_scene_linear_cpu_processor()

CPUProcessor * blender::ocio::FallbackColorSpace::get_from_scene_linear_cpu_processor ( ) const
inlineoverridevirtual

Implements blender::ocio::ColorSpace.

Definition at line 88 of file fallback_colorspace.hh.

References SRGB.

◆ get_to_scene_linear_cpu_processor()

const CPUProcessor * blender::ocio::FallbackColorSpace::get_to_scene_linear_cpu_processor ( ) const
inlineoverridevirtual

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 77 of file fallback_colorspace.hh.

References SRGB.

◆ interop_id()

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

Implements blender::ocio::ColorSpace.

Definition at line 39 of file fallback_colorspace.hh.

References DATA, LINEAR, and SRGB.

◆ is_data()

bool blender::ocio::FallbackColorSpace::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 67 of file fallback_colorspace.hh.

References DATA.

◆ is_display_referred()

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

The color space is display referred rather than scene referred.

Implements blender::ocio::ColorSpace.

Definition at line 72 of file fallback_colorspace.hh.

References SRGB.

◆ is_invertible()

bool blender::ocio::FallbackColorSpace::is_invertible ( ) const
inlineoverridevirtual

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

Implements blender::ocio::ColorSpace.

Definition at line 53 of file fallback_colorspace.hh.

◆ is_scene_linear()

bool blender::ocio::FallbackColorSpace::is_scene_linear ( ) const
inlineoverridevirtual

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 58 of file fallback_colorspace.hh.

References LINEAR.

◆ is_srgb()

bool blender::ocio::FallbackColorSpace::is_srgb ( ) const
inlineoverridevirtual

Implements blender::ocio::ColorSpace.

Definition at line 62 of file fallback_colorspace.hh.

References SRGB.

◆ name()

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

Name and description 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.

Implements blender::ocio::ColorSpace.

Definition at line 31 of file fallback_colorspace.hh.

Referenced by FallbackColorSpace().


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