// Scalar color expansion helpers for PNG decode — non-wasm targets.
///|
/// RGB8 -> RGBA8 (alpha = 0xFF) for `width` pixels.
fn rgb8_to_rgba(row : Bytes, out : FixedArray[Byte], width : Int32) -> Unit {
for i in 0.. RGBA8 (alpha = 0xFF) for `width` pixels.
fn gray8_to_rgba(row : Bytes, out : FixedArray[Byte], width : Int32) -> Unit {
for i in 0.. RGBA8 for `width` pixels.
fn gray_alpha8_to_rgba(
row : Bytes,
out : FixedArray[Byte],
width : Int32,
) -> Unit {
for i in 0..