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

Method setSOP

src/OpenColorIO/transforms/CDLTransform.cpp:257–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void CDLTransformImpl::setSOP(const double * vec9)
258{
259 if (!vec9)
260 {
261 throw Exception("CDLTransform: Invalid 'SOP' pointer");
262 }
263
264 data().setSlopeParams(CDLOpData::ChannelParams(vec9[0], vec9[1], vec9[2]));
265 data().setOffsetParams(CDLOpData::ChannelParams(vec9[3], vec9[4], vec9[5]));
266 data().setPowerParams(CDLOpData::ChannelParams(vec9[6], vec9[7], vec9[8]));
267}
268
269void CDLTransformImpl::getSOP(double * vec9) const
270{

Callers 2

endMethod · 0.45
OCIO_ADD_TESTFunction · 0.45

Calls 4

ChannelParamsClass · 0.85
setSlopeParamsMethod · 0.80
setOffsetParamsMethod · 0.80
setPowerParamsMethod · 0.80

Tested by 1

OCIO_ADD_TESTFunction · 0.36