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

Method updateData

src/OpenColorIO/ops/lut3d/Lut3DOpCPU.cpp:327–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327void BaseLut3DRenderer::updateData(ConstLut3DOpDataRcPtr & lut)
328{
329 m_dim = lut->getArray().getLength();
330
331 m_step = ((float)m_dim - 1.0f);
332
333#if OCIO_USE_SSE2
334 Platform::AlignedFree(m_optLut);
335 m_components = 4;
336#else
337 m_components = 3;
338 free(m_optLut);
339#endif
340 m_optLut = createOptLut(lut->getArray().getValues());
341}
342
343#if OCIO_USE_SSE2
344// Creates a LUT aligned to a 16 byte boundary with RGB and 0 for alpha

Callers

nothing calls this directly

Calls 5

AlignedFreeFunction · 0.85
getValuesMethod · 0.80
getLengthMethod · 0.45
initializeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected