fn expand_8bit_into_rgb8(
    input: &[u8],
    output: &mut [u8],
    rgba_palette: &[[u8; 4]; 256]
)