in cpp/spectrum/core/proc/ScanlineConversion.cpp [176:203]
inline void _convertDynamicPixel(
const indices::RGB& inputIndices,
const std::uint8_t* const inputPixel,
const indices::RGB& outputIndices,
std::uint8_t* const outputPixel,
const image::Color& backgroundColor) {
outputPixel[outputIndices.red] = _extractComponent(
inputPixel,
inputIndices.red,
inputIndices.hasAlpha,
outputIndices.hasAlpha,
inputIndices.alpha,
backgroundColor.red);
outputPixel[outputIndices.green] = _extractComponent(
inputPixel,
inputIndices.green,
inputIndices.hasAlpha,
outputIndices.hasAlpha,
inputIndices.alpha,
backgroundColor.green);
outputPixel[outputIndices.blue] = _extractComponent(
inputPixel,
inputIndices.blue,
inputIndices.hasAlpha,
outputIndices.hasAlpha,
inputIndices.alpha,
backgroundColor.blue);
}