| 462 | } |
| 463 | |
| 464 | ConstTransformRcPtr ColorSpace::getTransform(ColorSpaceDirection dir) const noexcept |
| 465 | { |
| 466 | switch (dir) |
| 467 | { |
| 468 | case COLORSPACE_DIR_TO_REFERENCE: |
| 469 | return getImpl()->m_toRefTransform; |
| 470 | case COLORSPACE_DIR_FROM_REFERENCE: |
| 471 | return getImpl()->m_fromRefTransform; |
| 472 | } |
| 473 | return ConstTransformRcPtr(); |
| 474 | } |
| 475 | |
| 476 | void ColorSpace::setTransform(const ConstTransformRcPtr & transform, |
| 477 | ColorSpaceDirection dir) |