| 362 | } |
| 363 | |
| 364 | bool 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 | |
| 381 | bool LogOpData::allComponentsEqual() const |
| 382 | { |
nothing calls this directly
no test coverage detected