std/vp8: fix luma subblock prediction modes

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:
Nigel Tao committed 2026-06-19 19:04:31 +10:00
1 parent 24fae427c1
commit cae59b4ce8
6 files changed
+59 -57

No files matched your search

+4 -2
View File
@@ -201,8 +201,10 @@ pri func decoder.decode_subblock_modes!(
var mode : base.u8[..= 9]
if args.luma_mode < 4 {
this.mb_states_top[args.mbx] = (mode as base.u32) * 0x1111
this.mb_states_left = (mode as base.u32) * 0x1111
this.mb_states_top[args.mbx] = (this.mb_states_top[args.mbx] & 0xFFFF_0000) |
((args.luma_mode as base.u32) * 0x1111)
this.mb_states_left = (this.mb_states_left & 0xFFFF_0000) |
((args.luma_mode as base.u32) * 0x1111)
return nothing
}