| 756 | } |
| 757 | |
| 758 | void OpRcPtrVec::optimizeForBitdepth(const BitDepth & inBitDepth, |
| 759 | const BitDepth & outBitDepth, |
| 760 | OptimizationFlags oFlags) |
| 761 | { |
| 762 | if (!empty()) |
| 763 | { |
| 764 | if (!IsFloatBitDepth(inBitDepth)) |
| 765 | { |
| 766 | RemoveLeadingClampIdentity(*this); |
| 767 | } |
| 768 | if (!IsFloatBitDepth(outBitDepth)) |
| 769 | { |
| 770 | RemoveTrailingClampIdentity(*this); |
| 771 | } |
| 772 | if (HasFlag(oFlags, OPTIMIZATION_COMP_SEPARABLE_PREFIX)) |
| 773 | { |
| 774 | OptimizeSeparablePrefix(*this, inBitDepth); |
| 775 | } |
| 776 | } |
| 777 | } |
| 778 | |
| 779 | } // namespace OCIO_NAMESPACE |
| 780 |