MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / setTransform

Method setTransform

src/OpenColorIO/Processor.cpp:623–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623void Processor::Impl::setTransform(const Config & config,
624 const ConstContextRcPtr & context,
625 const ConstTransformRcPtr & transform,
626 TransformDirection direction)
627{
628 if (!m_ops.empty())
629 {
630 throw Exception("Internal error: Processor should be empty");
631 }
632
633 transform->validate();
634
635 BuildOps(m_ops, config, context, transform, direction);
636
637 // NB: No-ops are not removed yet since they are still needed to build the legacy GPU processor.
638 m_ops.finalize();
639
640 m_ops.validateDynamicProperties();
641}
642
643void Processor::Impl::concatenate(ConstProcessorRcPtr & p1, ConstProcessorRcPtr & p2)
644{

Callers

nothing calls this directly

Calls 5

BuildOpsFunction · 0.85
emptyMethod · 0.45
validateMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected