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

Method getSlope

src/OpenColorIO/transforms/CDLTransform.cpp:198–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void CDLTransformImpl::getSlope(double * rgb) const
199{
200 if (!rgb)
201 {
202 throw Exception("CDLTransform: Invalid 'slope' pointer");
203 }
204
205 const CDLOpData::ChannelParams & params = data().getSlopeParams();
206 rgb[0] = params[0];
207 rgb[1] = params[1];
208 rgb[2] = params[2];
209}
210
211void CDLTransformImpl::setOffset(const double * rgb)
212{

Callers 15

__init__Method · 0.45
update_from_transformMethod · 0.45
saveFunction · 0.45
WriteFunction · 0.45
writeCurveMethod · 0.45
_cdltransform_to_nodeFunction · 0.45
test_slopesMethod · 0.45
test_slopeMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_slopesMethod · 0.36
test_slopeMethod · 0.36
test_get_processorMethod · 0.36
test_cccidMethod · 0.36
test_add_display_viewMethod · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36