mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
std/vp8: blend VP8X ALPH chunk
This commit is contained in:
1 parent
5f398130e8
commit
d9cf0751ca
11 files changed
+1087
-138
No files matched your search
@@ -410,6 +410,9 @@ pub func decoder.decode_frame?(dst: ptr base.pixel_buffer, src: base.io_reader,
|
||||
while true {
|
||||
trimmed = args.workbuf
|
||||
if this.quirk_has_alpha_side_channel {
|
||||
if this.quirk_width_and_height == 0 {
|
||||
return "#inconsistent width and height"
|
||||
}
|
||||
wh = (this.width * this.height) as base.u64
|
||||
if wh > args.workbuf.length() {
|
||||
return base."#bad workbuf length"
|
||||
@@ -433,8 +436,7 @@ pub func decoder.decode_frame?(dst: ptr base.pixel_buffer, src: base.io_reader,
|
||||
yield? status
|
||||
}
|
||||
|
||||
// TODO: trimmed should be args.workbuf.
|
||||
status = this.swizzle!(dst: args.dst, workbuf: trimmed)
|
||||
status = this.swizzle!(dst: args.dst, blend: args.blend, workbuf: args.workbuf)
|
||||
if not status.is_ok() {
|
||||
return status
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user