std/vp8: parse the 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-01 16:07:24 +10:00
1 parent b51fcb811a
commit 3f612e7214
4 files changed
+1011

No files matched your search

+9
View File
@@ -92,6 +92,10 @@ pub struct decoder? implements base.image_decoder(
// hold in the 0x100 bit) and prob_skip_false (in the low 8 bits).
prob_skip : base.u32[..= 0x1FF],
mb_subblock_modes : array[16] base.u8[..= 9],
mb_left_modes : array[4] base.u8[..= 9],
mb_top_modes : array[0x400] array[4] base.u8[..= 9],
dst_x : base.u32,
dst_y : base.u32,
@@ -294,6 +298,11 @@ pri func decoder.do_decode_frame?(dst: ptr base.pixel_buffer, src: base.io_reade
return status
}
status = this.decode_macroblocks!(workbuf: args.workbuf)
if not status.is_ok() {
return status
}
this.dst_x = 0
this.dst_y = 0