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

Method optimizeForBitdepth

src/OpenColorIO/OpOptimizers.cpp:758–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758void 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

Callers 3

FinalizeOpsForCPUFunction · 0.80
getOptimizedProcessorMethod · 0.80
OCIO_ADD_TESTFunction · 0.80

Calls 5

IsFloatBitDepthFunction · 0.85
HasFlagFunction · 0.85
OptimizeSeparablePrefixFunction · 0.85

Tested by 1

OCIO_ADD_TESTFunction · 0.64