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

Function ApplyOffset

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

Apply the offset component to the the pixel's values

Source from the content-addressed store, hash-verified

189
190// Apply the offset component to the the pixel's values
191inline void ApplyOffset(float * pix, const float * offset)
192{
193 pix[0] = pix[0] + offset[0];
194 pix[1] = pix[1] + offset[1];
195 pix[2] = pix[2] + offset[2];
196}
197
198// Apply the saturation component to the the pixel's values
199inline void ApplySaturation(float * pix, const float saturation)

Callers 1

applyMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected