|
Blender V5.3
|
#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 |
Definition at line 20 of file libocio_colorspace.hh.
| blender::ocio::LibOCIOColorSpace::LibOCIOColorSpace | ( | int | index, |
| const OCIO_NAMESPACE::ConstConfigRcPtr & | ocio_config, | ||
| const OCIO_NAMESPACE::ConstColorSpaceRcPtr & | ocio_color_space, | ||
| Set< StringRef > & | primary_interop_ids ) |
Definition at line 22 of file libocio_colorspace.cc.
References blender::ocio::cleanup_description(), family(), blender::ocio::ColorSpace::index, and ocio_color_space().
|
inlineoverridevirtual |
Implements blender::ocio::ColorSpace.
Definition at line 65 of file libocio_colorspace.hh.
| 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().
|
inlineoverridevirtual |
Implements blender::ocio::ColorSpace.
Definition at line 51 of file libocio_colorspace.hh.
|
inlineoverridevirtual |
Implements blender::ocio::ColorSpace.
Definition at line 55 of file libocio_colorspace.hh.
Referenced by LibOCIOColorSpace().
|
overridevirtual |
Implements blender::ocio::ColorSpace.
Definition at line 211 of file libocio_colorspace.cc.
References blender::ocio::create_ocio_processor(), blender::ocio::create_ocio_processor_between_configs(), and get_from_scene_linear_cpu_processor().
Referenced by get_from_scene_linear_cpu_processor().
|
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().
|
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().
|
inlineoverridevirtual |
Implements blender::ocio::ColorSpace.
Definition at line 60 of file libocio_colorspace.hh.
Referenced by blender::ocio::LibOCIODisplay::LibOCIODisplay().
|
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().
|
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().
|
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().
|
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().
|
overridevirtual |
Implements blender::ocio::ColorSpace.
Definition at line 183 of file libocio_colorspace.cc.
References ELEM, and is_srgb().
Referenced by is_srgb().
| blender::ocio::LibOCIOColorSpace::MEM_CXX_CLASS_ALLOC_FUNCS | ( | "LibOCIOColorSpace" | ) |
|
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().
|
inline |
Definition at line 90 of file libocio_colorspace.hh.
Referenced by LibOCIOColorSpace().
| 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().