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

Method setRGB

src/OpenColorIO/ops/lut3d/Lut3DOpData.cpp:224–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void Lut3DOpData::Lut3DArray::setRGB(long i, long j, long k, float* RGB)
225{
226 const long length = getLength();
227 const long maxChannels = getMaxColorComponents();
228 Array::Values& values = getValues();
229 // Array order matches ctf order: channels vary most rapidly, then B, G, R.
230 long offset = (i*length*length + j*length + k) * maxChannels;
231 values[offset] = RGB[0];
232 values[++offset] = RGB[1];
233 values[++offset] = RGB[2];
234}
235
236void Lut3DOpData::Lut3DArray::scale(float scaleFactor)
237{

Callers 2

extrapolate3DArrayMethod · 0.45
OCIO_ADD_TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

OCIO_ADD_TESTFunction · 0.36