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

#include <libocio_view.hh>

Inherits blender::ocio::View.

Public Member Functions

 LibOCIOView (const int index, const StringRefNull name, const StringRefNull description, const bool is_hdr, const bool is_data, const bool support_emulation, const Gamut gamut, const TransferFunction transfer_function, const LibOCIOColorSpace *display_colorspace)
StringRefNull name () const override
StringRefNull description () const override
bool is_hdr () const override
bool support_emulation () const override
Gamut gamut () const override
TransferFunction transfer_function () const override
const ColorSpace * display_colorspace () const override
int max_nits () const override
const ScopeInfo & scope_info () const override
void append_scope_space_transforms (OCIO_NAMESPACE::GroupTransformRcPtr &group, StringRefNull lin_cie_xyz_d65_name) const
 MEM_CXX_CLASS_ALLOC_FUNCS ("LibOCIOView")
Public Member Functions inherited from blender::ocio::View
virtual ~View ()=default

Additional Inherited Members

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

Detailed Description

Definition at line 20 of file libocio_view.hh.

Constructor & Destructor Documentation

◆ LibOCIOView()

blender::ocio::LibOCIOView::LibOCIOView ( const int index,
const StringRefNull name,
const StringRefNull description,
const bool is_hdr,
const bool is_data,
const bool support_emulation,
const Gamut gamut,
const TransferFunction transfer_function,
const LibOCIOColorSpace * display_colorspace )
inline

Member Function Documentation

◆ append_scope_space_transforms()

void blender::ocio::LibOCIOView::append_scope_space_transforms ( OCIO_NAMESPACE::GroupTransformRcPtr & group,
StringRefNull lin_cie_xyz_d65_name ) const

◆ description()

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

Description of the view from the OpenColorIO config.

Implements blender::ocio::View.

Definition at line 58 of file libocio_view.hh.

Referenced by LibOCIOView().

◆ display_colorspace()

const ColorSpace * blender::ocio::LibOCIOView::display_colorspace ( ) const
inlineoverridevirtual

Display colorspace that this view transform transforms into. Not guaranteed to be display referred.

Implements blender::ocio::View.

Definition at line 83 of file libocio_view.hh.

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

◆ gamut()

Gamut blender::ocio::LibOCIOView::gamut ( ) const
inlineoverridevirtual

Gamut of the display colorspace.

Implements blender::ocio::View.

Definition at line 73 of file libocio_view.hh.

Referenced by blender::ocio::display_as_extended_srgb(), and LibOCIOView().

◆ is_hdr()

bool blender::ocio::LibOCIOView::is_hdr ( ) const
inlineoverridevirtual

Does this view transform output HDR colors?

Implements blender::ocio::View.

Definition at line 63 of file libocio_view.hh.

Referenced by LibOCIOView(), and blender::ocio::system_extended_srgb_transfer_function().

◆ max_nits()

int blender::ocio::LibOCIOView::max_nits ( ) const
overridevirtual

Max luminance of the view transform, or 0 if no maximum found.

Reimplemented from blender::ocio::View.

Definition at line 9 of file libocio_view.cc.

References blender::blender::StringRefBase::endswith(), blender::blender::StringRefBase::find(), and blender::blender::StringRefBase::not_found.

Referenced by scope_info().

◆ MEM_CXX_CLASS_ALLOC_FUNCS()

blender::ocio::LibOCIOView::MEM_CXX_CLASS_ALLOC_FUNCS ( "LibOCIOView" )

◆ name()

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

Name of this view. The name is used to address to this view from various places of the configuration.

Implements blender::ocio::View.

Definition at line 53 of file libocio_view.hh.

Referenced by LibOCIOView().

◆ scope_info()

◆ support_emulation()

bool blender::ocio::LibOCIOView::support_emulation ( ) const
inlineoverridevirtual

Does this view transform support display emulation?

Implements blender::ocio::View.

Definition at line 68 of file libocio_view.hh.

Referenced by LibOCIOView().

◆ transfer_function()

TransferFunction blender::ocio::LibOCIOView::transfer_function ( ) const
inlineoverridevirtual

Transfer function of the display colorspace.

Implements blender::ocio::View.

Definition at line 78 of file libocio_view.hh.

Referenced by blender::ocio::display_as_extended_srgb(), and LibOCIOView().


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