mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Roll back 'dst_palette into the pixel_swizzler'
See the previous commit for the rationale.
This commit is contained in:
1 parent
2d8ec9ace9
commit
1239280ad8
9 files changed
+310
-236
No files matched your search
@@ -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 ..]
|
||||
|
||||
Reference in new issue
Block a user