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

Function AddExponent

tests/osl/GammaOp_test.cpp:20–30  ·  view source on GitHub ↗

Helper method to build unit tests

Source from the content-addressed store, hash-verified

18
19// Helper method to build unit tests
20OCIO::ExponentTransformRcPtr AddExponent(OCIO::TransformDirection direction,
21 const double(&gamma)[4],
22 OCIO::NegativeStyle style)
23{
24 OCIO::ExponentTransformRcPtr exp = OCIO::ExponentTransform::Create();
25 exp->setNegativeStyle(style);
26 exp->setDirection(direction);
27 exp->setValue(gamma);
28
29 return exp;
30}
31
32// Helper method to build unit tests
33OCIO::ExponentWithLinearTransformRcPtr AddExponentWithLinear(OCIO::TransformDirection direction,

Callers 1

OCIO_OSL_TESTFunction · 0.70

Calls 3

setNegativeStyleMethod · 0.45
setDirectionMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected