|
Blender V5.3
|
#include <libocio_display.hh>
Inherits blender::ocio::Display.
Public Member Functions | |
| LibOCIODisplay (int index, const LibOCIOConfig &config) | |
| LibOCIODisplay (const LibOCIODisplay &other)=delete | |
| LibOCIODisplay (LibOCIODisplay &&other) noexcept=default | |
| ~LibOCIODisplay () override=default | |
| LibOCIODisplay & | operator= (const LibOCIODisplay &other)=delete |
| LibOCIODisplay & | operator= (LibOCIODisplay &&other)=default |
| StringRefNull | name () const override |
| StringRefNull | ui_name () const override |
| StringRefNull | description () const override |
| const View * | get_default_view () const override |
| const View * | get_untonemapped_view () const override |
| const View * | get_view_by_name (StringRefNull name) const override |
| int | get_num_views () const override |
| const View * | get_view_by_index (int index) const override |
| const CPUProcessor * | get_to_scene_linear_cpu_processor (bool use_display_emulation) const override |
| const CPUProcessor * | get_from_scene_linear_cpu_processor (bool use_display_emulation) const override |
| bool | is_hdr () const override |
| void | clear_caches () |
| MEM_CXX_CLASS_ALLOC_FUNCS ("LibOCIOConfig") | |
| Public Member Functions inherited from blender::ocio::Display | |
| virtual | ~Display ()=default |
Protected Member Functions | |
| std::unique_ptr< LibOCIOCPUProcessor > | create_scene_linear_cpu_processor (const bool use_display_emulation, const bool inverse) const |
Additional Inherited Members | |
| Public Attributes inherited from blender::ocio::Display | |
| int | index = -1 |
Definition at line 24 of file libocio_display.hh.
| blender::ocio::LibOCIODisplay::LibOCIODisplay | ( | int | index, |
| const LibOCIOConfig & | config ) |
Definition at line 44 of file libocio_display.cc.
References blender::StringRefNull::c_str(), CLOG_TRACE, blender::blender::StringRefBase::endswith(), blender::ocio::ExtendedsRGB, blender::ocio::Gamma18, blender::ocio::Gamma22, blender::ocio::Gamma24, blender::ocio::Gamma26, blender::ocio::LibOCIOConfig::get_color_space(), blender::ocio::get_display_view_colorspace(), blender::ocio::LibOCIOConfig::get_ocio_config(), blender::ocio::HLG, blender::ocio::Display::index, blender::IndexRange::IndexRange(), blender::ocio::LibOCIOColorSpace::interop_id(), blender::ocio::interop_id_drop_namespace(), blender::blender::StringRefBase::is_empty(), blender::LOG, blender::ocio::LibOCIOColorSpace::name(), blender::ocio::P3D65, blender::ocio::PQ, blender::ocio::Rec2020, blender::ocio::Rec709, blender::ocio::report_error(), blender::ocio::sRGB, blender::blender::StringRefBase::startswith(), blender::StringRef::StringRef(), and blender::ocio::Unknown.
Referenced by LibOCIODisplay(), LibOCIODisplay(), operator=(), and operator=().
|
delete |
References LibOCIODisplay().
|
defaultnoexcept |
References LibOCIODisplay().
|
overridedefault |
| void blender::ocio::LibOCIODisplay::clear_caches | ( | ) |
Definition at line 305 of file libocio_display.cc.
References blender::ocio::CPUProcessorCache::CPUProcessorCache().
|
protected |
Definition at line 257 of file libocio_display.cc.
References blender::ocio::create_ocio_display_processor(), blender::ocio::DisplayParameters::display, blender::ocio::DisplayParameters::from_colorspace, get_default_view(), get_untonemapped_view(), blender::ocio::DisplayParameters::inverse, inverse, blender::ocio::View::name(), blender::ocio::DisplayParameters::use_display_emulation, and blender::ocio::DisplayParameters::view.
Referenced by get_from_scene_linear_cpu_processor(), get_to_scene_linear_cpu_processor(), and MEM_CXX_CLASS_ALLOC_FUNCS().
|
inlineoverridevirtual |
Description of the display from the OpenColorIO config.
Implements blender::ocio::Display.
Definition at line 61 of file libocio_display.hh.
|
inlineoverridevirtual |
Get default view of this display.
Implements blender::ocio::Display.
Definition at line 66 of file libocio_display.hh.
References get_view_by_index().
Referenced by create_scene_linear_cpu_processor().
|
overridevirtual |
Implements blender::ocio::Display.
Definition at line 295 of file libocio_display.cc.
References create_scene_linear_cpu_processor(), and blender::ocio::CPUProcessorCache::get().
|
overridevirtual |
Get the number of view in this display.
Implements blender::ocio::Display.
Definition at line 244 of file libocio_display.cc.
|
overridevirtual |
Quick access to processors that convert color space from the display to scene linear and vice versa. The call is allowed to be caching from the color space implementation perspective.
With #use_display_emulation, rather than converting to the display space, this converts to extended sRGB emulating the display space.
Implements blender::ocio::Display.
Definition at line 286 of file libocio_display.cc.
References create_scene_linear_cpu_processor(), and blender::ocio::CPUProcessorCache::get().
|
overridevirtual |
Get the view without tonemapping.
Implements blender::ocio::Display.
Definition at line 228 of file libocio_display.cc.
Referenced by create_scene_linear_cpu_processor(), and blender::ocio::create_untonemapped_ocio_display_transform().
|
overridevirtual |
Get view with the given index within the display. If the index is invalid nullptr is returned.
Implements blender::ocio::Display.
Definition at line 249 of file libocio_display.cc.
References blender::ocio::Display::index.
Referenced by get_default_view().
|
overridevirtual |
Get view with the given name for this display. If the view does not exist nullptr is returned.
Implements blender::ocio::Display.
Definition at line 233 of file libocio_display.cc.
References name().
Referenced by blender::ocio::adjust_for_hdr_image_file(), blender::ocio::display_as_extended_srgb(), and blender::ocio::display_as_scope_space().
|
inlineoverridevirtual |
Determine if the display supports HDR.
Implements blender::ocio::Display.
Definition at line 83 of file libocio_display.hh.
Referenced by blender::ocio::display_as_extended_srgb().
| blender::ocio::LibOCIODisplay::MEM_CXX_CLASS_ALLOC_FUNCS | ( | "LibOCIOConfig" | ) |
References create_scene_linear_cpu_processor(), and inverse.
|
inlineoverridevirtual |
Name of this display. The name is used to address to this display from various places of the configuration.
Implements blender::ocio::Display.
Definition at line 51 of file libocio_display.hh.
Referenced by get_view_by_name().
|
delete |
References LibOCIODisplay().
|
default |
References LibOCIODisplay().
|
inlineoverridevirtual |
Name to display in the user interface.
Implements blender::ocio::Display.
Definition at line 56 of file libocio_display.hh.
References blender::StringRefNull::c_str().