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

Method invert

src/OpenColorIO/Op.cpp:340–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340OpRcPtrVec OpRcPtrVec::invert() const
341{
342 OpRcPtrVec inverted;
343
344 OpRcPtrVec::const_reverse_iterator iter = m_ops.rbegin();
345 OpRcPtrVec::const_reverse_iterator end = m_ops.rend();
346 for (; iter!=end; ++iter)
347 {
348 ConstOpRcPtr op = *iter;
349 if (op->isNoOpType())
350 {
351 // Keep track of the information.
352 inverted.push_back(op->clone());
353 }
354 else
355 {
356 ConstOpDataRcPtr data = op->data();
357 CreateOpVecFromOpData(inverted, data, TRANSFORM_DIR_INVERSE);
358 }
359 }
360
361 return inverted;
362}
363
364void OpRcPtrVec::validate() const
365{

Callers 1

OCIO_ADD_TESTFunction · 0.45

Calls 7

CreateOpVecFromOpDataFunction · 0.85
rbeginMethod · 0.80
rendMethod · 0.80
isNoOpTypeMethod · 0.80
push_backMethod · 0.45
cloneMethod · 0.45
dataMethod · 0.45

Tested by 1

OCIO_ADD_TESTFunction · 0.36