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

Function AddExponent

tests/gpu/GammaOp_test.cpp:21–38  ·  view source on GitHub ↗

Helper method to build unit tests

Source from the content-addressed store, hash-verified

19
20// Helper method to build unit tests
21void AddExponent(OCIOGPUTest & test,
22 OCIO::TransformDirection direction,
23 const double(&gamma)[4],
24 OCIO::NegativeStyle style,
25 float epsilon,
26 Version ver)
27{
28 OCIO::ExponentTransformRcPtr exp = OCIO::ExponentTransform::Create();
29 exp->setNegativeStyle(style);
30 exp->setDirection(direction);
31 exp->setValue(gamma);
32
33 OCIO_NAMESPACE::ConfigRcPtr config = OCIO_NAMESPACE::Config::Create();
34 config->setMajorVersion(ver);
35
36 test.setErrorThreshold(epsilon);
37 test.setProcessor(config, exp);
38}
39
40// Helper method to build unit tests
41void AddExponentWithLinear(OCIOGPUTest & test,

Callers 1

OCIO_ADD_GPU_TESTFunction · 0.70

Calls 6

setMajorVersionMethod · 0.80
setErrorThresholdMethod · 0.80
setProcessorMethod · 0.80
setNegativeStyleMethod · 0.45
setDirectionMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected