forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on fbc29d12fa2e194b105dd2344342fc50da4e90cdFiltered to crates/engine-hw/src/slice_fix.rsClear filter

2026-08-22

🐛 fix(engine): H.264 level_idc from Table A-1 on the software seat tooAhmet Kaan Gümüş · 4a00a35
🐛 fix(engine): H.264 level_idc from Table A-1 on the software seat too

rusty_h264 left level_idc at its default 3.0, out of spec above 720p30.
The Table A-1 lookup moves from the plugin into engine::export so both
seats write the same byte; the plugin maps it onto the vendored enum.
Verified: a 2560x1440@30 software export now carries level 5.0.

Also vendors proc-macro-error2 2.0.1 with its `pub use proc_macro;`
re-export dropped (E0365 future-incompat, the one warning left on a
workspace build; nothing names that re-export).
🐛 fix(engine-hw): rewrite H.264 frame_num/POC the driver zeroesAhmet Kaan Gümüş · 2436826
🐛 fix(engine-hw): rewrite H.264 frame_num/POC the driver zeroes

mesa radeonsi (26.1.7) writes its own slice headers and ignores the
frame_num and pic_order_cnt_lsb cros-codecs passes in, so every slice of
every export carried 0 for both. Desktop decoders tolerate it; stateful
phone decoders judder at every GOP (measured on three real exports).

slice_fix rewrites both fields per access unit on the plugin side
(frame_num on reference pictures, POC per picture, IDR resets), and the
level_idc now follows Table A-1 / Table A.8 instead of a hard-coded L4.
Header-only: macroblock data is byte-identical, bitrate unchanged.

Verified: ffmpeg trace_headers on a plugin dump (frame_num 0..31 wrap,
POC 2n, IDR restart, level 40 at 1080p30); 2560x1440 re-export plays
clean on the phone that juddered before.