Roll back 'dst_palette into the pixel_swizzler'

See the previous commit for the rationale.
This commit is contained in:
Nigel Tao committed 2020-05-26 14:13:28 +10:00
1 parent 2d8ec9ace9
commit 1239280ad8
9 files changed
+310 -236

No files matched your search

+2 -1
View File
@@ -212,7 +212,8 @@ pub func decoder.decode_frame?(dst: ptr base.pixel_buffer, src: base.io_reader,
// v_c <<= 1;
c = (((c as base.u32) << 1) & 0xFF) as base.u8
this.swizzler.swizzle_interleaved!(dst: dst, src: src[..])
this.swizzler.swizzle_interleaved!(
dst: dst, dst_palette: this.util.empty_slice_u8(), src: src[..])
if dst_bytes_per_pixel <= dst.length() {
dst = dst[dst_bytes_per_pixel ..]