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

Method reverse

src/OpenColorIO/LookParse.cpp:103–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void LookParseResult::reverse()
104{
105 // m_options itself should NOT be reversed.
106 // The individual looks
107 // need to be applied in the inverse direction. But, the precedence
108 // for which option to apply is to be maintained!
109
110 for (unsigned int optionindex=0; optionindex<m_options.size(); ++optionindex)
111 {
112 std::reverse(m_options[optionindex].begin(), m_options[optionindex].end());
113
114 for (unsigned int tokenindex=0; tokenindex<m_options[optionindex].size(); ++tokenindex)
115 {
116 m_options[optionindex][tokenindex].dir =
117 GetInverseTransformDirection(m_options[optionindex][tokenindex].dir);
118 }
119 }
120}
121} // namespace OCIO_NAMESPACE
122

Callers 5

BuildDisplayOpsFunction · 0.80
BuildLookOpsFunction · 0.80
OCIO_ADD_TESTFunction · 0.80
SFunction · 0.80
jquery.min.jsFile · 0.80

Calls 4

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

OCIO_ADD_TESTFunction · 0.64