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

Method getDynamicProperty

src/OpenColorIO/CPUProcessor.cpp:288–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288DynamicPropertyRcPtr CPUProcessor::Impl::getDynamicProperty(DynamicPropertyType type) const
289{
290 if (m_inBitDepthOp->hasDynamicProperty(type))
291 {
292 return m_inBitDepthOp->getDynamicProperty(type);
293 }
294
295 for (const auto & op : m_cpuOps)
296 {
297 if (op->hasDynamicProperty(type))
298 {
299 return op->getDynamicProperty(type);
300 }
301 }
302
303 if (m_outBitDepthOp->hasDynamicProperty(type))
304 {
305 return m_outBitDepthOp->getDynamicProperty(type);
306 }
307
308 throw Exception("Cannot find dynamic property; not used by CPU processor.");
309}
310
311void FinalizeOpsForCPU(OpRcPtrVec & ops, const OpRcPtrVec & rawOps,
312 BitDepth in, BitDepth out,

Callers

nothing calls this directly

Calls 2

getImplFunction · 0.50
hasDynamicPropertyMethod · 0.45

Tested by

no test coverage detected