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

Function AddExponentWithLinear

tests/gpu/GammaOp_test.cpp:41–58  ·  view source on GitHub ↗

Helper method to build unit tests

Source from the content-addressed store, hash-verified

39
40// Helper method to build unit tests
41void AddExponentWithLinear(OCIOGPUTest & test,
42 OCIO::TransformDirection direction,
43 const double(&gamma)[4],
44 const double(&offset)[4],
45 OCIO::NegativeStyle style,
46 float epsilon)
47{
48 OCIO::ExponentWithLinearTransformRcPtr exp = OCIO::ExponentWithLinearTransform::Create();
49 exp->setDirection(direction);
50 exp->setGamma(gamma);
51 exp->setOffset(offset);
52 exp->setNegativeStyle(style);
53
54 OCIO_NAMESPACE::ConfigRcPtr config = OCIO_NAMESPACE::Config::Create();
55
56 test.setErrorThreshold(epsilon);
57 test.setProcessor(config, exp);
58}
59
60
61OCIO_ADD_GPU_TEST(ExponentOp, legacy_shader_v1)

Callers 1

OCIO_ADD_GPU_TESTFunction · 0.70

Calls 6

setErrorThresholdMethod · 0.80
setProcessorMethod · 0.80
setDirectionMethod · 0.45
setGammaMethod · 0.45
setOffsetMethod · 0.45
setNegativeStyleMethod · 0.45

Tested by

no test coverage detected