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

Method isInverse

src/OpenColorIO/ops/log/LogOpData.cpp:364–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364bool LogOpData::isInverse(ConstLogOpDataRcPtr & log) const
365{
366 if (GetInverseTransformDirection(m_direction) == log->m_direction
367 && allComponentsEqual() && log->allComponentsEqual()
368 && getRedParams() == log->getRedParams()
369 && getBase() == log->getBase())
370 {
371 return true;
372 }
373
374 // Note: Actually the R/G/B channels would not need to be equal for an
375 // inverse, however, the identity replacement would get more complicated if
376 // we allowed that case. Since it is not a typical use-case, we don't
377 // consider it an inverse since it is not easy to optimize out.
378 return false;
379}
380
381bool LogOpData::allComponentsEqual() const
382{

Callers

nothing calls this directly

Calls 3

allComponentsEqualMethod · 0.80
getBaseMethod · 0.45

Tested by

no test coverage detected