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

Method applyRGB

src/OpenColorIO/CPUProcessor.cpp:435–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void CPUProcessor::Impl::applyRGB(float * pixel) const
436{
437 float v[4]{pixel[0], pixel[1], pixel[2], 0.0f};
438
439 m_inBitDepthOp->apply(v, v, 1);
440
441 const size_t numOps = m_cpuOps.size();
442 for(size_t i = 0; i<numOps; ++i)
443 {
444 m_cpuOps[i]->apply(v, v, 1);
445 }
446
447 m_outBitDepthOp->apply(v, v, 1);
448
449 pixel[0] = v[0];
450 pixel[1] = v[1];
451 pixel[2] = v[2];
452}
453
454void CPUProcessor::Impl::applyRGBA(float * pixel) const
455{

Callers 15

Display2PCS_Sampler16Function · 0.45
_update_visualsMethod · 0.45
_on_processor_readyMethod · 0.45
mouseMoveEventMethod · 0.45
GetSrcRangeFunction · 0.45
test_apply_inverseMethod · 0.45
test_apply_inverseMethod · 0.45
test_dynamic_propertyMethod · 0.45
test_apply_rgb_listMethod · 0.45

Calls 3

getImplFunction · 0.50
applyMethod · 0.45
sizeMethod · 0.45

Tested by 15

test_apply_inverseMethod · 0.36
test_apply_inverseMethod · 0.36
test_dynamic_propertyMethod · 0.36
test_apply_rgb_listMethod · 0.36
test_apply_rgb_bufferMethod · 0.36
test_apply_inverseMethod · 0.36
test_apply_dynamicMethod · 0.36
test_apply_inverseMethod · 0.36
OCIO_ADD_TESTFunction · 0.36
OCIO_ADD_TESTFunction · 0.36