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

Function ApplySlope

src/OpenColorIO/ops/cdl/CDLOpCPU.cpp:183–188  ·  view source on GitHub ↗

Apply the slope component to the the pixel's values

Source from the content-addressed store, hash-verified

181
182// Apply the slope component to the the pixel's values
183inline void ApplySlope(float * pix, const float * slope)
184{
185 pix[0] = pix[0] * slope[0];
186 pix[1] = pix[1] * slope[1];
187 pix[2] = pix[2] * slope[2];
188}
189
190// Apply the offset component to the the pixel's values
191inline void ApplyOffset(float * pix, const float * offset)

Callers 2

ApplySaturationFunction · 0.70
applyMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected