mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +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
@@ -341,6 +341,7 @@ pri func decoder.swizzle!(dst: ptr base.pixel_buffer, src: slice base.u8) base.s
|
||||
if i < dst.length() {
|
||||
this.swizzler.swizzle_interleaved!(
|
||||
dst: dst[i ..],
|
||||
dst_palette: this.util.empty_slice_u8(),
|
||||
src: this.stash[.. this.num_stashed])
|
||||
this.dst_x ~sat+= 1
|
||||
}
|
||||
@@ -376,6 +377,7 @@ pri func decoder.swizzle!(dst: ptr base.pixel_buffer, src: slice base.u8) base.s
|
||||
if i < dst.length() {
|
||||
n = this.swizzler.swizzle_interleaved!(
|
||||
dst: dst[i ..],
|
||||
dst_palette: this.util.empty_slice_u8(),
|
||||
src: args.src)
|
||||
this.dst_x ~sat+= (n & 0xFFFF_FFFF) as base.u32
|
||||
n = (n & 0xFFFF_FFFF) * (src_bytes_per_pixel as base.u64)
|
||||
|
||||
Reference in new issue
Block a user