mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
std/vp8: fix luma_mode == 4 HZNC tracking
This commit, part of a series, is inspired by pull request PR #168 by Damian Kaczmarek (with AI assistance), with some modifications. Updates PR #168
This commit is contained in:
1 parent
cae59b4ce8
commit
ecca245226
4 files changed
+25
-15
No files matched your search
@@ -81,6 +81,7 @@ pri func decoder.decode_one_macroblock!(workbuf: slice base.u8, mbx: base.u32[..
|
||||
|
||||
var seg : base.u32[..= 3]
|
||||
var skip : base.u32[..= 1]
|
||||
var mask : base.u32
|
||||
var luma_mode : base.u32[..= 4]
|
||||
var chroma_mode : base.u32[..= 3]
|
||||
|
||||
@@ -108,8 +109,12 @@ pri func decoder.decode_one_macroblock!(workbuf: slice base.u8, mbx: base.u32[..
|
||||
|
||||
if skip <> 0 {
|
||||
// Clear the HNZC bits.
|
||||
this.mb_states_left &= 0x0000_FFFF
|
||||
this.mb_states_top[args.mbx] &= 0x0000_FFFF
|
||||
mask = 0x0000_FFFF
|
||||
if luma_mode >= 4 {
|
||||
mask = 0x0080_FFFF
|
||||
}
|
||||
this.mb_states_left &= mask
|
||||
this.mb_states_top[args.mbx] &= mask
|
||||
this.mb_dc_nz = 0
|
||||
this.mb_ac_nz = 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user