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

Function AddExponentWithLinear

tests/osl/GammaOp_test.cpp:33–45  ·  view source on GitHub ↗

Helper method to build unit tests

Source from the content-addressed store, hash-verified

31
32// Helper method to build unit tests
33OCIO::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

Callers 1

OCIO_OSL_TESTFunction · 0.70

Calls 4

setDirectionMethod · 0.45
setGammaMethod · 0.45
setOffsetMethod · 0.45
setNegativeStyleMethod · 0.45

Tested by

no test coverage detected