7#if defined(WITH_OPENCOLORIO)
24class LibOCIOCPUProcessor;
26class LibOCIODisplay :
public Display {
29 const LibOCIOConfig *config_ =
nullptr;
33 StringRefNull description_;
34 Vector<LibOCIOView> views_;
35 const LibOCIOView *untonemapped_view_ =
nullptr;
38 CPUProcessorCache to_scene_linear_cpu_processor_;
39 CPUProcessorCache to_scene_linear_emulation_cpu_processor_;
40 CPUProcessorCache from_scene_linear_cpu_processor_;
41 CPUProcessorCache from_scene_linear_emulation_cpu_processor_;
44 LibOCIODisplay(
int index,
const LibOCIOConfig &config);
45 LibOCIODisplay(
const LibOCIODisplay &other) =
delete;
46 LibOCIODisplay(LibOCIODisplay &&other)
noexcept =
default;
48 ~LibOCIODisplay()
override =
default;
50 LibOCIODisplay &
operator=(
const LibOCIODisplay &other) =
delete;
51 LibOCIODisplay &
operator=(LibOCIODisplay &&other) =
default;
53 StringRefNull
name()
const override
58 StringRefNull ui_name()
const override
60 return (ui_name_.empty()) ? name_ : ui_name_.
c_str();
63 StringRefNull description()
const override
68 const View *get_default_view()
const override
72 return get_view_by_index(0);
75 const View *get_untonemapped_view()
const override;
77 const View *get_view_by_name(StringRefNull
name)
const override;
78 int get_num_views()
const override;
79 const View *get_view_by_index(
int index)
const override;
81 const CPUProcessor *get_to_scene_linear_cpu_processor(
bool use_display_emulation)
const override;
82 const CPUProcessor *get_from_scene_linear_cpu_processor(
83 bool use_display_emulation)
const override;
85 bool is_hdr()
const override
92 MEM_CXX_CLASS_ALLOC_FUNCS(
"LibOCIOConfig");
95 std::unique_ptr<LibOCIOCPUProcessor> create_scene_linear_cpu_processor(
96 const bool use_display_emulation,
const bool inverse)
const;
static void View(GHOST_IWindow *window, bool stereo, int eye=0)
Read Guarded memory(de)allocation.
btGeneric6DofConstraint & operator=(btGeneric6DofConstraint &other)
constexpr const char * c_str() const
MatBase< C, R > inverse(MatBase< C, R >) RET