Helper method to build unit tests
| 31 | |
| 32 | // Helper method to build unit tests |
| 33 | OCIO::ExponentWithLinearTransformRcPtr AddExponentWithLinear(OCIO::TransformDirection direction, |
| 34 | const double(&gamma)[4], |
| 35 | const double(&offset)[4], |
| 36 | OCIO::NegativeStyle style) |
| 37 | { |
| 38 | OCIO::ExponentWithLinearTransformRcPtr exp = OCIO::ExponentWithLinearTransform::Create(); |
| 39 | exp->setDirection(direction); |
| 40 | exp->setGamma(gamma); |
| 41 | exp->setOffset(offset); |
| 42 | exp->setNegativeStyle(style); |
| 43 | |
| 44 | return exp; |
| 45 | } |
| 46 | |
| 47 | } // anon. namespace |
| 48 |
no test coverage detected