pub fn apply_palette_dc6(frame: &DC6Frame, palette: &D2Palette, out: &mut Vec<u8>) {
    for pixel in &frame.data {
        let color = palette.get(*pixel as _);
        out.push(color.b);
        out.push(color.g);
        out.push(color.r);
    }
}
/// Apply palette to a DC6 frame.
Apply palette to a DC6 frame.
Apply palette to a DC6 frame .
pub fn apply_palette_dc6(frame: &DC6Frame, palette: &D2Palette, out: &mut Vec<u8>) {
    for pixel in &frame.data {
        let color = palette.get(*pixel as _);
        out.push(color.b);
        out.push(color.g);
        out.push(color.r);
    }
}
pub fn apply_palette_dc6 ( frame : & DC6Frame , palette : & D2Palette , out : & mut Vec < u8 > ) { for pixel in & frame . data { let color = palette . get ( * pixel as _ ) ; out . push ( color . b ) ; out . push ( color . g ) ; out . push ( color . r ) ; } }
Apply palette to a DC6 frame.
Apply palette to a DC6 frame .
frame
&DC6Frame
palette
&D2Palette
out
&mut Vec<u8>
frame
&DC6Frame
palette
&D2Palette
out
&mut Vec<u8>