| 261 | } |
| 262 | |
| 263 | void 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 |