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

Function BuildRangeOp

src/OpenColorIO/ops/range/RangeOp.cpp:263–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void BuildRangeOp(OpRcPtrVec & ops,
264 const RangeTransform & transform,
265 TransformDirection dir)
266{
267 const auto & data = dynamic_cast<const RangeTransformImpl*>(&transform)->data();
268
269 data.validate();
270
271 if (transform.getStyle() == RANGE_CLAMP)
272 {
273 auto d = data.clone();
274 CreateRangeOp(ops, d, dir);
275 }
276 else
277 {
278 MatrixOpDataRcPtr m = data.convertToMatrix();
279 CreateMatrixOp(ops, m, dir);
280 }
281}
282
283} // namespace OCIO_NAMESPACE

Callers 2

BuildOpsFunction · 0.85
OCIO_ADD_TESTFunction · 0.85

Calls 7

CreateRangeOpFunction · 0.85
CreateMatrixOpFunction · 0.85
convertToMatrixMethod · 0.80
dataMethod · 0.45
validateMethod · 0.45
getStyleMethod · 0.45
cloneMethod · 0.45

Tested by 1

OCIO_ADD_TESTFunction · 0.68