Commits
Commits on
f3428f0863e4f5f08c8a5acac0da17281664cc3d2026-09-20
ec-av1: merge lane-av1-txrouting (non-4:2:0 + qmatrix refusals, cdf-update wiring, rect intrabc)Ahmet Kaan Gümüş · f3428f0
ec-av1: merge lane-av1-txrouting (non-4:2:0 + qmatrix refusals, cdf-update wiring, rect intrabc) Merges lane-av1-txrouting (8d8413f0) into main, which had already absorbed lane-av1-mono (7806fd0d) and lane-av1-hdr (e03f7173) since the lane's base -- both of them also touched stream.rs, so this is the day's cross-lane merge. Three conflict hunks, resolved by combining the lineages, never a side: - decode.rs read_intra_mode_sub8: the lane's return type (the third value carries an intrabc DV) plus mono's `has_chroma && !mono(fctx)` fold. - stream.rs decode_frame: keep BOTH per-frame setters -- mono's set_mono and the lane's set_disable_cdf_update. - stream.rs tests: the lane's non-4:2:0 and using_qmatrix gates land ahead of mono's witness; the pilot's monochrome pin stays dropped in favour of a_real_libaom_monochrome_key_frame_decodes_pixel_exact (its doc header dropped with it). Two-way content proof: the staged tree's delta vs main is the lane's own delta line-for-line (787 insertions / 64 deletions, same per-file counts) and its delta vs the lane is main's delta (651/94). Marker grep on all six resolved files: none. Merged-tree gates: cargo check -p ec-av1 --all-targets -> 0 warnings; cargo test -p ec-av1 --lib -> 598 passed, 0 failed, 60 ignored (6708 s). Probes: the 60-frame monochrome key frame and the monochrome fixture decode luma byte-exact vs ffmpeg, a 4:4:4 stream and an aomenc --enable-qm=1 stream refused by name, an aomenc --cdf-update-mode=0 stream byte-exact, and a 10-bit 4K OBU window sha256 d7214bb7...4346784.
lanes: record merge-side follow-ups for av1hdr (merge e03f7173)Ahmet Kaan Gümüş · 1aa3a99
lanes: record merge-side follow-ups for av1hdr (merge e03f7173) Parents c8ac9f46 + 5bb35ca3; auto-merge, no conflicts. Records the two P3 fixes (guard-arm audit, spec-cite correction), the reviewer's withdrawn third finding, the create-list audit, the merged-tree scoped gates and the 10-bit decode_probe sha-parity (d7214bb7...), and the next-lane tripwire on the mixed-lossless refusal pin.
ec-av1: merge lane-av1-hdr (refusal dispositions + mixed-lossless witness)Ahmet Kaan Gümüş · d4ee534
ec-av1: merge lane-av1-hdr (refusal dispositions + mixed-lossless witness) Auto-merge, no conflicts: main also carried lane-av1-mono's stream.rs changes (mono's monochrome pin dropped, its pixel-exact witness kept); this lane's comments and its witness land alongside. - crates/ec-av1/src/refusal_inventory.rs: the SB-strip enumeration test now audits the square-delegate guard arm (drives filter_intra_size_class at 32/64), so a delegate widening turns it red. - crates/ec-av1/src/decode.rs, stream.rs: libaom-verdict disposition comments plus a_real_aomenc_mixed_lossless_segment_frame_is_refused_by_name. - lanes/av1hdr.report.md: the refusal cluster, dispositioned. No decoder behavior change: a 10-bit 4K high-bit-depth OBU decodes byte-identical on the merged tree and the lane (sha256 d7214bb7...4346784, 72 frames).
ec-av1: refuse using_qmatrix by name (third silent-garbage field) + census tableAhmet Kaan Gümüş · 754210b
ec-av1: refuse using_qmatrix by name (third silent-garbage field) + census table The re-verifier refuted the report's "exactly two parsed-but-never-read pixel-affecting fields": QuantizationParams.using_qmatrix/qm_y/qm_u/qm_v are parsed by ec-av1-syntax (frame.rs:190-196, :1418-1426) and read by NOTHING on the decode path -- dequantisation is base_q_idx plus the plane DC/AC deltas -- so a spec-legal aomenc --enable-qm=1 stream decoded into silently wrong pixels. The same class the non-4:2:0 guard just closed for 4:4:4. - stream.rs decode_stream: refuse using_qmatrix=1 at the frame header, named, beside the non-4:2:0 guard. - Gate a_frame_using_quantisation_matrices_is_refused_by_name (stream.rs): real aomenc --enable-qm=0 control decodes; --enable-qm=1 refused by name. Fail-pre-fix measured: with the guard removed the gate panics "the --enable-qm=1 stream now decodes", and decode_probe shows those bytes byte-differ from ffmpeg while the qm-off twin is byte-exact. - refusal_inventory.rs: new REFUSALS entry + PROVEN pair; report 9.2's "exactly two" -> three, plus the field->consumer census table (every SequenceHeader / ColorConfig / QuantizationParams / FrameHeader field with its first production read or its disposition). - cdf_state.rs P3: wide()'s doc comment named the deleted txbset_for_inter, now inter_txbset_for. Gates: cargo test -p ec-av1 --lib -- refusal_inventory <new gate> a_reader_told_not_to_adapt a_non_420 = 16 passed / 0 failed; cargo check -p ec-av1 --all-targets = 0 warnings.
ec-av1: address lane-av1-hdr reviewer P3s (guard-arm audit, spec-cite fix)Ahmet Kaan Gümüş · f92825a
ec-av1: address lane-av1-hdr reviewer P3s (guard-arm audit, spec-cite fix) refusal_inventory: a_sb_level_horz_vert_strip_admits_no_filter_intra_symbol skipped the square-delegate guard arm (`_ if bw == bh => filter_intra_size_class(bw),`), so a widening of the delegate was unaudited. The parser now recognises that arm and the test drives filter_intra_size_class(32)/filter_intra_size_class(64) directly, so a delegate widening turns it red. Doc comment updated to say what it enumerates. lanes/av1hdr.report.md: §3 cited `compute_image_size`, which is AV1-spec pseudocode and not a libaom v3.13.3 symbol; name the real site (`dec_set_mb_mi`, decoder.c:57-58; cf. av1_get_MBs, alloccommon.c:32-33). (reviewer's third finding, the 12-bit warp round_0 value, was withdrawn as an arithmetic slip: FILTER_BITS=7 gives round_0=5 at bd 12, as the report already stated.)
lanes: record merge-side follow-ups for av1mono (merge 7806fd0d)Ahmet Kaan Gümüş · 5f21de3
lanes: record merge-side follow-ups for av1mono (merge 7806fd0d) Pin-drop resolution, merged-tree gate numbers (592/0/60, 0 warnings), the probe spot-checks, and the worktree/target cleanup.
ec-av1: monochrome decode is luma byte-exact (merge lane-av1-mono)Ahmet Kaan Gümüş · 65734b0
ec-av1: monochrome decode is luma byte-exact (merge lane-av1-mono) Merges lane-av1-mono (66a39803) into main. The lane decodes a monochrome AV1 stream (color_config.mono_chrome, NumPlanes == 1) with luma byte-exact against ffmpeg's own decode on three witnesses: a 60-frame gray key frame, a 120-frame gray inter sequence, and the av1-monochrome.ivf fixture. Conflict: crates/ec-av1/src/stream.rs (3 hunks). The pilot's pinning gate a_real_libaom_monochrome_key_frame_is_refused_by_name asserts the very refusal this lane removes, so it was DROPPED and the lane's inverted witness a_real_libaom_monochrome_key_frame_decodes_pixel_exact kept in its place, per the reviewer's merge-side guidance. decode.rs and decode_probe.rs auto-merged to the lane's bytes. Merged-tree gates: cargo test -p ec-av1 --lib -> 592 passed, 0 failed, 60 ignored (8124 s); cargo check -p ec-av1 --all-targets -> 0 warnings; probe spot-checks (3 mono witnesses + one 10-bit film window) all byte-exact.
2026-09-19
ec-av1: witness the mixed-lossless refusal; record libaom verdicts for the header clusterAhmet Kaan Gümüş · 89f30a9
ec-av1: witness the mixed-lossless refusal; record libaom verdicts for the header cluster Disposition the header/reference/segmentation refusal cluster against libaom. - a frame mixing lossless and lossy segments: the lone inventory refusal with no proving test, now WITNESSED by a_real_aomenc_mixed_lossless_segment_frame_is_refused_by_name. aomenc --end-usage=q --cq-level=0 --aq-mode=1 codes such a frame (variance AQ sets SEG_LVL_ALT_Q per segment with no clamp at a lossless base), ffmpeg's libaom decoder accepts it, and this decoder refuses it by name. Kept as a named capability gap, not a spec-conformant guard: the lift is per-segment lossless threading through the block decoder (read_tx_size and the rect tx_depth readers, plus the lossless tables read before a block's segment_id), measured to desync or return non-byte-exact pixels. - spec-conformant pins now cite their libaom site (libaom errors the same way): primary_ref_frame empty slot, show_existing_frame empty slot, reference selected with no picture, inter frame with no key frame before, no mode-info grid. - kept with an assessment: bit depth 12; reference height mismatch (libaom scales both axes, this decoder ports width only); SEG_LVL_REF_FRAME/SKIP/ GLOBALMV (libaom implements them; aomenc exposes no CLI flag, only the library API). - capability claim: filter intra on a superblock-level HORZ/VERT strip is now pinned by an enumeration test over every arm of filter_intra_size_class_rect. Inventory: 34 refusals (34 proven) + 1 capability claim; before this lane 34 refusals / 33 proven. cargo check -p ec-av1 --all-targets: 0 warnings. Report: lanes/av1hdr.report.md
ec-av1: inventory completion for the new chroma refusal + retire the landed sub-8x8 entry from PROVENAhmet Kaan Gümüş · ec34b0d
ec-av1: inventory completion for the new chroma refusal + retire the landed sub-8x8 entry from PROVEN The full suite run at 6473af0e found refusal_inventory:: the_decode_path_refuses_exactly_the_listed_cases (the new non-4:2:0 refusal was not in REFUSALS) and ::every_proven_refusal_names_a_test_that_exists (the sub-8x8-intrabc PROVEN pair, landed in this lane). Add the new string + its gate to REFUSALS/PROVEN; the sub-8x8 pair is retired with a note. Also: the lane worktree had no fixtures link at all, so a_real_aomenc_stream_with_film_grain_decodes_pixel_exact failed reading fixtures/golden6-mismatch.obu (Os error 2). Linked to the primary checkout (gitignored, not part of this commit). Scoped re-run: refusal_inventory 13/13 ok, film_grain 7/7 ok.
ec-av1: non-420 named refusal, disable_cdf_update wiring, rect-intrabc var-tx + sub-8 txfm-context fixesAhmet Kaan Gümüş · 8b37c57
ec-av1: non-420 named refusal, disable_cdf_update wiring, rect-intrabc var-tx + sub-8 txfm-context fixes Five defects, each with a gate and/or a first-divergence move (report S9): - non-4:2:0 chroma (4:4:4/4:2:2) is now REFUSED BY NAME at the sequence header instead of decoding silently wrong pixels; gate a_non_420_subsampled_sequence_header_is_refused_by_name (profile 1 + 2 headers, profile-0 control still decodes) and a real aomenc yuv444p stream refuses where it used to decode garbage. - disable_cdf_update (spec 5.9.2) is now consumed: per-reader msac::SymbolDecoder::adapt + FrameCtx cell + one line in decode_frame. Gates: a_real_aomenc_stream_with_cdf_update_disabled_decodes_pixel_exact (byte-exact vs ffmpeg; pre-fix the same stream differs at byte 6) and the msac unit gate a_reader_told_not_to_adapt_matches_a_non_adapting_writer. - transform.rs:1134 panic root-caused and FIXED: txbset_for_inter (a duplicate whose 4 fell through to Luma64) is deleted; all inter-table sites use inter_txbset_for, which has the 4x4 arms libaom's EXT_TX_SET_ALL16/_DTT4_IDTX ask for. allintra0 no longer panics; it stops at the existing named mixed-leaf var-tx refusal. - rect intrabc leaves (4x8/8x4) read the INTER var-tx tree under TxMode::Select (block_signals_txsize is bsize > BLOCK_4X4) and reconstruct per 4x4 TU when it splits; sub-8x8 leaves publish the TXFM context bands (set_txfm_ctxs for every block); the stale intrabc_dv slot no longer leaks into the next 8x8+ block. - inventory re-pin: the dead sub-8x8-intrabc refusal entry retired, the Golomb entry re-pinned to its measured symptom-reachability. warped is NOT byte-exact yet: first divergence moved (38,60) -> (46,66), the key-frame tx-depth context read off the deblock grid where libaom reads the TXFM bands (next step in report S9.7). allintra/warped now stop 16 mi rows later at the 1:4 rect-strip intrabc refusal (lane 3's).
av1: monochrome luma byte-exact (salvage lane-av1-mono)Ahmet Kaan Gümüş · 672ceb9
av1: monochrome luma byte-exact (salvage lane-av1-mono) Salvage the previous continuation's uncommitted work. The dirty tree WAS the fix, buried under ~24k lines of omp edit-tool format-on-save rustfmt churn (decode.rs read 17300 changed lines). Recovered the semantic-only delta with the rustfmt-image oracle: S = diff(rustfmt(7f4e8301), W), applied to the committed file, proven equivalent by rustfmt(HEAD + S) == W byte-for-byte. Result: 19 hunks, 211 insertions / 19 deletions; decoded call sites hand-fixed for indentation the fuzzy apply left behind. Root cause of the mono luma mismatch: decode_intra_sub8_leaf published the palette neighbour band only on the chroma-reference path, AFTER the `if !has_chroma` early-out. On a monochrome frame EVERY sub-8x8 leaf takes that early-out, so the band kept an earlier palette block's size and the next block read palette_y_mode off CDF row 1 where libaom reads row 0 (measured: gray 320x240, decode-order frame 33, mi(42,50)). The publish is not chroma work and now runs before the return, matching libaom, which clears the band in every cell of such a group whatever the plane count. Second class closed: the rect-strip paths (decode_block_rect, decode_leaf_rect, decode_block_rect4, decode_rect4_16_strip, decode_block_rect64) call read_coeffs_rect on planes 1/2 DIRECTLY, bypassing read_plane's own mono gate, so a mono frame consumed chroma coefficient symbols libaom never coded. New read_chroma_coeffs_rect gates those 8 call sites. Witnesses (luma byte-exact vs ffmpeg's own decode): gray testsrc2 320x240 60-frame key frame; the same recipe at 120 frames with inter frames; and the committed av1-monochrome.ivf (now 60/60 -- its named intrabc-rect refusal was itself a symptom of the desync, so it is gone). New test a_real_libaom_monochrome_key_frame_decodes_pixel_exact is the inverse of the pilot's pinning gate (on main since d71084ae); a merge must drop that pin. Regression: 8 of 9 av1 corpus fixtures bit-identical to lane base 7f4e8301 (only av1-monochrome moves); all 13 film windows byte-identical to the pilot's ffmpeg references; a_real_libaom_monochrome... suite 592 passed / 0 failed / 60 ignored (6724 s); check -p ec-av1 --all-targets rc 0, 0 warnings.
ec-av1: sub-8x8 intrabc reconstruction (WIP) + trace alignment; reportAhmet Kaan Gümüş · 787e43e
ec-av1: sub-8x8 intrabc reconstruction (WIP) + trace alignment; report
The charter's one-routing-predicate hypothesis is REFUTED: the three
real-stream stops have three distinct causes (see
lanes/av1txrouting.report.md).
- Stops 3.3/3.4 ('a sub-8x8 leaf that uses intrabc') are GENUINE sub-8x8
intrabc blocks (instrumented aomdec reads intrabc val=1 and an EC_DV at
the same mi positions). Implemented: read_intra_mode_sub8 reads the DV and
returns early; read_intrabc_dv generalized to a (n4_w,n4_h) footprint;
decode_leaf_split4 / decode_leaf_rect8 reconstruct the leaf via a
mc::predict_with_filter frame copy injected through the set_palette_pred
override, with the inter coefficient sets and no tx_depth symbol; chroma
inherits the LUMA's coded tx_type (av1_get_tx_type treats intrabc as
inter) via fctx.intrabc_chroma_tx. record_intrabc_mi_rect publishes a
rect footprint.
The 4x4 split path is proven symbol-identical to aomdec (luma residual
full rng match at allintra (45,52)). The 4x8/8x4 RECT path is NOT yet
byte-exact (warped differs at luma row 128, desync at (38,60)) -- WIP.
- Stop 3.2 ('a Golomb tail') root cause: 4:4:4 chroma subsampling is not
implemented anywhere in the decoder (hardcoded /2 chroma extents); every
4:4:4 stream is silently garbage, none is byte-exact. First divergence
at a444-cu6 (0,0): aom chroma TX_8X16 entry rng 39857, ours 4x8. Needs a
named sequence-header refusal + a subsampling-threading lane.
- Trace prints added at previously-silent tx_depth/intrabc sites so a
cross-decoder first-divergence diff aligns.
NOT mergeable yet: see the report's section 5 (rect intrabc, the 1:4 rect
strip intrabc, the decode_leaf8 dequant panic, the 4:4:4 refusal, inventory
re-pin, suite run).mp4rotation: record merge-side follow-ups (ff b1503940, P2 guard, gates, cleanup)Ahmet Kaan Gümüş · 153a67dBrowse files
ec-core: read a display matrix at i32::MIN as Other, not a panicAhmet Kaan Gümüş · dcf9b20
ec-core: read a display matrix at i32::MIN as Other, not a panic Rotation::from_matrix decided its b == -c test with a plain negation, so a crafted tkhd carrying i32::MIN in the c term panicked in a debug build and wrapped onto a false quarter turn (Cw270) in a release one. Use checked_neg so the term falls through to Other, which is the right reading for a value whose negation is not representable. Add a unit test feeding i32::MIN cases including the load-bearing (0, MIN, MIN, 0).
mp4: read the tkhd display matrix and surface it as a typed RotationAhmet Kaan Gümüş · ead0050
mp4: read the tkhd display matrix and surface it as a typed Rotation
ec-core gains a public Rotation (None/Cw90/Cw180/Cw270/Other{a,b,c,d}) and
StreamInfo.rotation, defaulting to None; the only StreamInfo struct literal
in the workspace (the mp4 demuxer) is migrated.
The mp4 demuxer's read_trak now reads the 36-byte tkhd display matrix that
sits before the width/height at the far end of the box, for both box
versions, and maps its 2x2 linear part to a quarter turn clockwise -- the
same reading edith's engine takes, so a consumer no longer needs its own
matrix parser. A matrix that is not a pure quarter turn is carried verbatim
as Other rather than rounded onto a turn it would then apply for real.
Fixtures under crates/ec-mp4/tests/data (rot0/90/180/270/45) are committed
with gen.sh, and the generator reproduces them byte-for-byte. Parse and
surface only: no pixel rotation, and the muxer still writes a unity matrix.vp9444: record merge-side follow-ups (merge 740ed6af, gates, sweep, cleanup)Ahmet Kaan Gümüş · 9094a17Browse files
Merge lane-vp9-444: decode VP9 profiles 1/3 (4:4:4/4:2:2/4:4:0) and 12-bitAhmet Kaan Gümüş · 512db79Browse files
av1 pilot: record merge-side follow-upsAhmet Kaan Gümüş · 3722cea
av1 pilot: record merge-side follow-ups - merge d71084ae (parents f0727a87 main + 5cf69cf7 lane), clean ort merge. - create-list audit: only stream.rs (+78, one pinning gate) and this report; no decoder source change. - gates on the merged tree: the pinning gate (lib binary) 1 passed / 0 failed; cargo check -p ec-av1 --all-targets rc 0, 0 warnings. - verifier's completed suite: 592 passed / 0 failed / 60 ignored (6716s). - push f0727a87..d71084ae; cleanup + the tripwire note for a later mono lane.
Merge lane-av1-decode: pin today's first real-stream stop (monochrome key frame)Ahmet Kaan Gümüş · 5bed9d3
Merge lane-av1-decode: pin today's first real-stream stop (monochrome key frame) Pilot resume of the parked AV1 lane. No decoder source changes: the 64x64 superblock-level partition wall the parked numbers describe is already closed on main (witness-gated, both films byte-exact). The lane adds one regression gate pinning today's measured first stop (a libaom monochrome key frame refused by name) plus lanes/av1decode.report.md with the re-measurement, root causes and terrain map. Report doc findings fixed pre-merge (refusal count 37, mono root-cause scoping, fixture claim, suite count).
av1 pilot: fix four report findings before mergeAhmet Kaan Gümüş · b78695f
av1 pilot: fix four report findings before merge - refusal inventory is 37 (36 REFUSALS + 1 CAPABILITY_CLAIM), not 35; the scan parser reproduces the parked 47, so the old figure was a miscount. - scope the monochrome root-cause narrative to the mono stream: ours reads angle_uv at rng=50996; aomdec reads no uv_mode/angle_uv (decodemv.c:933), and the first divergence is aomdec tx_depth ctx=0 cat=1 rng=43616 vs ours uv_mode val=13. The rng=56072 agreement belongs to the 4:2:0 twin. Same fix in the stream.rs gate comment. - the committed av1-monochrome fixture is an earlier stop (intrabc-rect wall), not the stream this gate emits; the gate's ffmpeg recipe is corrected. - suite count: cite the verifier's completed run (592 passed / 0 failed / 60 ignored, 6716s); the 652 figure was a budget-cutoff partial.
av1: WIP monochrome plane model (key-frame entropy syncs; luma not yet byte-exact)Ahmet Kaan Gümüş · 13af755Browse files
vp9444: decode profiles 1/3 (4:4:4/4:2:2/4:4:0) and 12-bitAhmet Kaan Gümüş · f81eeb9
vp9444: decode profiles 1/3 (4:4:4/4:2:2/4:4:0) and 12-bit Thread the frame's subsampling through plane geometry, n4 counts, uv transform size, crop extents and the loop-filter plane dispatch; add the non420 loop filter, the uv_txsize_lookup table and the 18-bit CAT6 token for 12-bit. Byte-exact vs a libvpx 1.15.0 oracle across the full corpus.
vp9refsetup: record merge-side follow-ups (merge commit, conflicts, gates, sweep)Ahmet Kaan Gümüş · 6d8d1b2
vp9refsetup: record merge-side follow-ups (merge commit, conflicts, gates, sweep) Merge 33904e74 (main ccc5a836 + lane 2129be51). The merge was not mechanical: main had absorbed the u16/hbd lane, so the scaling was ported onto the u16 kernels. Records the two conflict regions (decode.rs capability doc, mc.rs convolve/predictor signatures), the combine-not-pick resolution, the merged-tree gate counts (25 binaries, 40 passed, 0 failed, 0 ignored; warning parity 5) and the ten-stream byte-identical corpus re-sweep with arithmetically derived frame counts, plus the worktree/target-dir cleanup.
Merge lane-vp9-refsetup: intra-only frames + scaled references onto the u16 planesAhmet Kaan Gümüş · c67d95a
Merge lane-vp9-refsetup: intra-only frames + scaled references onto the u16 planes The lane was cut from 79984549 and wrote its scaling against the u8 kernels; main had since absorbed lane-vp9-hbd, which converted every ec-vp9 plane to u16 (`ec_vp9::Sample`) and threaded `bd` through every kernel. Not a mechanical merge — resolved by porting the lane's semantics onto the u16 substrate. - mc.rs (conflicts at the convolve signatures / inter_predictor / the predictor entry): main's u16 kernels + `bd` win as the substrate; the lane's `ScaleFactors`, step-aware `convolve_horiz`/`convolve_vert` (x_step/y_step alongside bd, both defaults `SUBPEL_SHIFTS`), the scaled dispatch in `inter_predictor`, the extracted `convolve_2d` and the scaled block/MV mapping in `build_inter_predictors` are ported onto it. The scale arithmetic is depth-independent and kept verbatim. - decode.rs (conflict was the capability doc only): combined doc; the lane's `decode_intra_only_frame`, `frame_is_intra_only` dispatch, `ScaleFactors` setup + `valid_ref_frame_size` refusal, and the removed size-change refusal kept as written. - The lane's tests compared u16 planes against ffmpeg's u8 rawvideo; they now go through `as u8` like the rest of the crate. Verified on the merged tree: full `cargo test -p ec-vp9` green (0 failed, 0 ignored), warning parity = the 5 pre-existing, and the 10-stream corpus re-swept from this build byte-identical vs libvpx 1.15.0 (8-bit, 10-bit, odd, scaled-reference, intra-only).
av1: pilot resume records the 64x64 SB-partition wall as already closed; pins today's first stop (monochrome key frame)Ahmet Kaan Gümüş · 2f8b3b5
av1: pilot resume records the 64x64 SB-partition wall as already closed; pins today's first stop (monochrome key frame) - lanes/av1decode.report.md: baseline re-measure of both films (byte-exact at every probed offset), proof the named 64x64 superblock-level partition arms are un-refused and witness-gated, the four real streams that DO stop today (monochrome, 4:4:4-fast, all-intra, warped-at-cpu0) with root causes, the ordered terrain map for the next wave, and repro commands. - stream.rs: a_real_libaom_monochrome_key_frame_is_refused_by_name -- generates the monochrome stream and its 4:2:0 twin, asserts the twin decodes and the monochrome stream stops on the measured refusal. Root cause (found via the aomdec-vs-ours symbol trace) is a uv_mode read on a frame that codes none; flip this gate to a witness when monochrome decode lands.
vp9refsetup: drop the unreproducible ffmpeg SIGSEGV sentenceAhmet Kaan Gümüş · e6a3f0c
vp9refsetup: drop the unreproducible ffmpeg SIGSEGV sentence The reviewer cannot reproduce the "scale=...:eval=frame exits 139 with a 0-byte file" claim; the builder can. Environment-dependent, so it does not belong in load-bearing docs. Keep only the verified fact: ffmpeg's rawvideo output size is locked to the first decoded frame, hence the two-pass dump recipe (frame 0 alone with -frames:v 1, frames 2..N with select=gte(n,1)).
vp9refsetup: regenerate the odd fixture from the current patcher; narrow the ffmpeg claimAhmet Kaan Gümüş · 1426489
vp9refsetup: regenerate the odd fixture from the current patcher; narrow the ffmpeg claim - tests/data/scaledref_odd.ivf now reproduces from gen_scaledref.c + patch_kf_size.py <in> <out> 1279 719 (sha256 af289a0f8dd91bfa854adeac1814dc77644ad87b9df0af884d33abaae2595413); the old bytes predated the patcher's IVF container-header rewrite (3 bytes). Still byte-identical to libvpx (drv_pix3 vs ours, 4490801 bytes, cmp). - the "ffmpeg SIGSEGVs on a changing filter output" wording is narrowed to the verified scope: the scale=...:eval=frame route exits 139 with a 0-byte file, and independently ffmpeg's output size is locked to the first decoded frame.
vp9hbd: record merge-side follow-ups (merge commit, gates, sweeps, cleanup)Ahmet Kaan Gümüş · 205e917Browse files
vp9hbd: correct the pre-fix witness wording (adapted test copy, not the shipped test)Ahmet Kaan Gümüş · 6f3e5ebBrowse files
ec-vp9: decode intra-only frames and scaled references, byte-exact vs libvpxAhmet Kaan Gümüş · 2251b71
ec-vp9: decode intra-only frames and scaled references, byte-exact vs libvpx Two header/frame-setup refusals replaced with the libvpx 1.15.0 behaviour: * intra-only frames (an INTER frame with intra_only=1, show_frame=0) decode through the keyframe body, but load their frame context from storage (reset only for reset_frame_context 2/3 or error-resilient mode), read the const vp9_kf_partition_probs, and refresh only the slots their refresh_frame_flags names. * a reference whose coded size differs from the current frame is SCALED during prediction: ScaleFactors (vp9_setup_scale_factors_for_frame / vp9_scale_mv), the sf->predict kernel selection and the step-aware convolve walk. Witnesses (committed fixtures, generators in lanes/vp9refsetup/) are byte-identical to libvpx; the whole 8-bit regression corpus is unchanged (including the 120-frame 60fps stream and the 2160p stream). The odd reference case (1279x719 -> 640x360) is covered too. Tests fail pre-fix with the named refusals.
vp9: decode profile 2 (10-bit 4:2:0) byte-exact vs libvpx 1.15Ahmet Kaan Gümüş · 9025ed3
vp9: decode profile 2 (10-bit 4:2:0) byte-exact vs libvpx 1.15 Store every plane as u16 and thread the frame's bd through the pixel kernels (clip_pixel_bd, bd-scaled loop-filter thresholds, base = 128 << (bd-8) intra fills, highbd idct guard), so one decode walk serves 8- and 10-bit. The one depth-dependent bitstream element is the CAT6 coefficient token: 14 bits/vp9_cat6_prob at 8-bit, 16 bits/ vp9_cat6_prob_high12 + 2 at 10/12-bit -- ported. Profile gate now accepts 0 and 2; profiles 1/3 and 12-bit are refused by name; non-4:2:0 subsampling stays refused. Byte-exact vs libvpx 1.15 on both 10-bit corpus streams (48 and 120 frames) and the whole 8-bit regression corpus. cargo test -p ec-vp9 green; warning parity (the 5 pre-existing). See lanes/vp9hbd.report.md.
vp9f72: record merge-side follow-ups (merge commit, clean resolution, gates, sweeps)Ahmet Kaan Gümüş · 02d10ba
vp9f72: record merge-side follow-ups (merge commit, clean resolution, gates, sweeps) Merge commit 357f3437 (real merge over the odd-dims lane), clean auto-merge of decode.rs, P3 TDK diagnostic fix folded in, merged-tree gate 34/34 with 5-warning parity, integration sweeps 120/120 and odd 12/12, worktree and private target dirs cleaned.
Merge lane-vp9-f72: inter context write-back zeroes the window's tailAhmet Kaan Gümüş · 177bb19
Merge lane-vp9-f72: inter context write-back zeroes the window's tail The lane fixes the frame-72 tile desync: `write_tx_context` must narrow libvpx's context spread to the transform window's width before applying the frame-edge shift, so the shift zeroes the window's tail rather than bytes past it. The odd-dims lane (e8152b9b) touched only RefPlane extents/crop_picture; the two regions are disjoint and the merge is clean. Fold in the reviewer's P3 nit: the `TDK` diagnostic (gated by `EC_VP9_TOKDGB`) now prints the CLEARED window at the reset offset per plane, mirroring the oracle's `SKIPCTX` print, instead of the whole rolling left buffer from base index 0.
vp9: inter context write-back zeroes the window's tail, not bytes past itAhmet Kaan Gümüş · 6743870
vp9: inter context write-back zeroes the window's tail, not bytes past it libvpx's vp9_decode_block_tokens (vp9_detokenize.c:273-323) applies the frame-edge shift from get_ctx_shift to a value whose WIDTH IS THE WRITTEN WINDOW's -- a uint16_t for TX_8X8, uint32_t for TX_16X16, uint64_t for TX_32X32 -- so (eob>0)*0x0101 >> 8 yields 0x0001, i.e. bytes [1,0]: the shift zeroes the window's TAIL. The port shifted a full 64-bit spread instead and then took byte k, so the window's last slot kept its previous value. get_ctx_shift only fires for a block that runs past an edge (mb_to_*_edge < 0), which at a 1080-tall frame (mi_rows 135) is the last PARTIAL superblock row, so the defect is invisible to every non-edge block: a bottom-row chroma transform block handed a stale 1 to the next row's entropy-context read and the tile bool decoder desynced on the 120-frame 60fps corpus stream at input frame 72. That stream now decodes all 120 frames byte-identically to the libvpx 1.15 oracle, with every transform block's context read and every write window equal to the oracle's on every tile. Both token paths share a new write_tx_context helper, whose narrowing is libvpx's cast; the intra path's per-width casts were already correct. Witness: corpus_1080p_60fps_matches_ffmpeg_past_frame_72 (media-gated, against ffmpeg's rawvideo) fails on the base tree with the desync and passes here. lanes/vp9f72.report.md has the oracle recipe and the tables.
vp9odd: record merge-close evidence (ff range, main gate re-run, dependent sweep, cleanup)Ahmet Kaan Gümüş · 57e0506Browse files
vp9odd: align report refusal-witness prose and scratch chroma doc with the shipped ceil layoutAhmet Kaan Gümüş · ecbbebaBrowse files
vp9odd: lane report (odd extents, byte-exactness tables, caller census)Ahmet Kaan Gümüş · 38b3c46Browse files
vp9: decode odd coded extents (chroma ceils at (w+1)/2)Ahmet Kaan Gümüş · 73605cd
vp9: decode odd coded extents (chroma ceils at (w+1)/2)
libvpx stores and crops 4:2:0 chroma at uv_crop_width = (w+1)/2 /
uv_crop_height = (h+1)/2, i.e. it ceils an odd coded extent. The
decoder used `>> 1` in two places, so an odd extent was one chroma
column/row short: the inter predictor's border/inside test clipped the
last sample and the returned Picture cropped floor(w/2) x floor(h/2).
For odd extents the two disagreed, and the lane refused them by name
("vp9 inter odd frame dimensions").
Unify on ceil:
- inter_predict_plane: RefPlane width/height = (coded + s) >> s, so
chroma is (w+1)/2 (unchanged for luma, s = 0).
- crop_picture: chroma crop + uv_stride = (w+1)/2 x (h+1)/2.
- drop the odd-dimension refusal.
Witness: tests/odd_dimensions_exact.rs patches the keyframe size fields
of an even 322x242 encode to an odd target (mi-grid invariant) and
compares every decoded frame to ffmpeg's libvpx rawvideo byte for byte
for odd width, odd height, and both. The whole visible corpus re-sweeps
all-identical (1080p 48/48, 2160p 48/48, altref 60/60, both entry
streams 3/3) and the same streams patched to odd extents are all
byte-identical too (1080p 48/48, altref 60/60).2026-09-18
vp9pix: merge-side follow-ups -- ff merge verified, dependent sweep empty, gates re-run on mainAhmet Kaan Gümüş · bdf0874Browse files
vp9: decode inter-frame pixels byte-exactly (MC, residual, loop filter, ref slots)Ahmet Kaan Gümüş · 83125b4
vp9: decode inter-frame pixels byte-exactly (MC, residual, loop filter, ref slots) decode() no longer refuses inter frames. New mc.rs ports libvpx's inter predictor: umv-border MV clamping, per-block reference border extension (build_mc_border), the direct path window read, the four 8-tap/bilinear convolve kernels, compound averaging and average_split_mvs. decode.rs gains the prediction/residual/reconstruction driver, an 8-slot reference DPB that stores each frame at its 64-aligned extent after the loop filter, and the skip/skip_inter loop-filter mask rules. Byte-exact against a locally built libvpx 1.15 oracle: the 1080p single-tile inter stream (3/3 frames), both static fixture GOPs (48 frames at 1080p and 2160p), the altref stream (60/60) and a two-tile-column stream (3/3). Loop filter verified separately by per-superblock mask identity (0 of 510 SBs differ) and by edge-set containment. A 120-frame 60fps stream decodes identically through frame 71 and hits an open entropy desync at frame 72, filed in lanes/vp9pix.report.md with its disposition. Also fixes a two-entry mv_ref_list overflow in the merged inter syntax path: the successful second candidate add inside the different-reference loop is a goto Done in libvpx and must leave the loop; without the break a later candidate wrote past the list (the altref fixture panicked at frame 14). Refusals kept/added by name: intra-only, other profiles, other subsamplings, a reference whose coded size differs from the current frame, odd dimensions.
2026-09-17
av1: close the enable-intrabc gate-integrity entry with a 10-bit engagement witnessAhmet Kaan Gümüş · 30624f2
av1: close the enable-intrabc gate-integrity entry with a 10-bit engagement witness The last entry of the tool-disabled-in-every-gate class rested on a flag SPELLING: the palette gate's arms name --enable-intrabc=1, but the 10-bit depth measured zero intrabc blocks on all five arms (regenerated and probed with the crate's own decode_probe: intrabc=false in the parsed frame header, rect_intrabc_reads 0, intrabc_hits 0). The premise of the entry was also stale - three real-aomenc gates have passed --enable-intrabc=1 and asserted engagement counters since 2026-09-02. Replaced with a real witness: an_sb128_screen_stream_with_intrabc_ decodes_pixel_exact proves engagement from BOTH sides - the parsed allow_intrabc frame-header bit (libaom clears it when no block selected intrabc, av1/encoder/encodeframe.c:2335-2337) and the decoder-side intrabc_hits counter - and the frames decode pixel-exact against ffmpeg at both depths. The unported shape still gets an honest named refusal (intra block copy on a HORZ/VERT/1:4 rect intra strip), asserted as exactly one refusal per gate. Verified by an independent reviewer: all nine claims reproduced, including the zero-engagement measurement on all 5 arms x 2 depths and a byte- identical yuv420p10le pixel comparison; the debt line is deleted.
Merge lane-vp9-inter: VP9 inter syntax next to tile-row byte-exactnessAhmet Kaan Gümüş · 9f13c77
Merge lane-vp9-inter: VP9 inter syntax next to tile-row byte-exactness Both sides descend from 43c9c913 and both touched the tile/context setup, so decode.rs and modes.rs conflicted. Resolved by combining: - decode.rs keeps the tile-row work's signatures: decode_block and decode_partition no longer carry tile_row_start, so the inter lane's read_inter_block_info and its own tile walk thread tile_col_start alone, and decode_block's keyframe call passes the whole FrameContext (&self.ctx) as the tile-row revision does. The inter parse path is semantically unchanged: it allocates a fresh MiState per tile, so a frame-scoped above-availability gate sees no decoded cell above that tile's own row_lo, exactly what the dropped tile_row_start gate saw. - modes.rs keeps the tile-row frame-scoped MiState::above_mi (mi_row != 0) AND the inter lane's new MiState::at() helper. - The inter walk's tile loop drops the tile_row_start argument it passed to decode_partition; inter.rs's InterBlockCtx loses its tile_row_start field. Folded in (verifier policy finding): scratch_interdump.rs FAILS when INTER_IVF is explicitly set to a file that does not exist; the loud SKIP is kept only for the unset default. Evidence on the merged tree: cargo test -p ec-vp9 green (18 suites, 27 passed, keyframe_exact 4/4 incl. inter_is_named_unsupported); cargo check --all-targets adds no warning beyond the 5 baseline ones; inter gate 1213/1851 blocks; tr/tr2/w1366/h242 sweeps each "RESULT 3 of 3 frames byte-exact"; explicit-missing-fixture run fails as required.
docs(av1): intrabc_hits counts DV READS (a refused rect-strip block bumps it but is never reconstructed); depth-parameterised recipe helper counts at both depths in the gate-coverage derivationAhmet Kaan Gümüş · b89dee0
docs(av1): intrabc_hits counts DV READS (a refused rect-strip block bumps it but is never reconstructed); depth-parameterised recipe helper counts at both depths in the gate-coverage derivation
vp9kf: VP9 inter-frame syntax parses block-for-block identical to libvpxAhmet Kaan Gümüş · 834983e
vp9kf: VP9 inter-frame syntax parses block-for-block identical to libvpx
Slice 1 of inter-frame support: an inter frame is now parsed end to end
(compressed header, mode info, MVs, references) and every block matches
libvpx 1.15's own instrumented decoder on the test stream - frame 1
1213/1213, frame 2 1851/1851 on row/col/bsize/tx/mode/skip/seg/ref0/ref1/
interp/MV - with the frame-1 compressed header bit-identical (1200/1200
bools) and frame 2 likewise.
Causes closed while getting there, each ported from libvpx with its line:
update_mv_probs is MV_UPDATE_PROB + seven literal bits + (lit<<1)|1, NOT
diff_update_prob; keyframe partition probs are a const selected by
get_partition_probs and must never be stored in a FrameContext (stored
contexts are new(false), the active keyframe copy new(true) + a
reset_inter_partition before the save); vp9_switchable_interp_tree is
{0,2,-1,-2} (libvpx's EIGHTTAP/EIGHTTAP_SMOOTH/EIGHTTAP_SHARP #defines,
not the spec's naming order); mv_ref_blocks' POSITION is {row,col} and one
accessor added .0 to the column; clamp_mv_ref's edge arithmetic is signed
(usize underflowed on a frame's partial last row) and clamps the COLUMN
with the left/right edges and the ROW with the top/bottom ones; and the
mode-derived candidate-count override sits AFTER libvpx's Done: label, so
an early exit skips it - reproduced bug-for-bug.
This slice is SYNTAX ONLY: decode() still refuses inter frames by name and
no inter pixel is produced. The keyframe path still decodes to pixels and
keyframe_exact is green.
Verified by an independent reviewer in three passes (structural claims
re-derived from libvpx source, the identity comparison re-implemented
independently, a dropped-field audit of the two stale fields, and
delta re-verification of the clamp/error-propagation/gate fixes).vp9kf: report -- the third odd-extent cross-product cell is coveredAhmet Kaan Gümüş · ae29de7
vp9kf: report -- the third odd-extent cross-product cell is covered `/tmp/odd_hw_tr.ivf` (1913x1210, `-tile-rows 1`) decodes 3 of 3 frames byte-exact, closing the last unexercised shape: odd width x odd height x tile rows. All three odd-extent x tile-grid cells now have a byte-exact witness. Encoder note recorded with the fixture: libvpx-vp9 declines `-tile-rows` whenever `-tile-columns` is non-zero in the same command (1366x768, 1366x1200, 1366x1210, 1913x1210 and 1918x1200 with `-tile-columns 1 -tile-rows 1` all come out cols 1 rows 0), and it declines tile rows outright on short frames (320x242). The tile-row witness therefore needs `-tile-columns 0` at a tall resolution; layout confirmed with scratch_tiledbg before the sweep.
test(av1): intrabc coverage closes on an engagement counter, not a flag -- 10-bit sb128 screen arms assert decoded intrabc blocks per depthAhmet Kaan Gümüş · fe5d4c8Browse files
vp9kf: tile-ROW streams decode byte-exact -- MI-aligned extents, frame-scoped contextsAhmet Kaan Gümüş · 332f251
vp9kf: tile-ROW streams decode byte-exact -- MI-aligned extents, frame-scoped contexts Tile-row streams (log2_tile_rows > 0) now decode byte-exact: tr.ivf and tr2.ivf 3 of 3 frames, previously 0 of 3. Seven fixes, each ported from libvpx with its line: 1. tx probabilities come from the frame's FrameContext tables (get_tx_probs, vp9_pred_common.h:173), not the TX_* const defaults. 2. the tx-size context carries libvpx's "if (!has_above) above_ctx = left_ctx" fallback (vp9_pred_common.h:156-170). 3. above availability is gated on the FRAME (mi_row != 0, set_mi_row_col vp9_onyxc_int.h:430), not on the tile-row start; tile_row_start is gone from the decode chain. 4. ectx/mi are frame-scoped: allocated once per frame, above cleared once, left per SB row (vp9_decodeframe.c:2079-2083 / :2260-2261). 5. the above entropy/partition arrays are sized mi_cols_aligned_to_sb, closing a pre-existing OOB panic at widths not a multiple of 8 (decode.rs:767 on a 1366-wide frame; the baseline panicked too). 6. intra edge extension is a branch-for-branch port of vp9_reconintra.c:300-394: the extend-vs-direct decision comes from mb_to_bottom_edge/mb_to_right_edge, the extension length from the MI-ALIGNED buffer extent (vp9_alloc_frame_buffer sets y_width = (width+7)&~7 -- yv12config.c:173-174,250-251), and the arithmetic is isize, closing an "attempt to subtract with overflow" at intra.rs:72 on 320x242. 7. the chroma loop filter takes no plane-width bound: all five uv_w column clamps are gone, matching vp9_filter_block_plane_ss11's unclamped MI_BLOCK_SIZE>>1 groups (vp9_loopfilter.c:1394, :313-399) which write into the padded plane. At 1366 wide the last chroma group overhangs the visible plane by 4, so every clamped edge was dropped: luma stayed byte-exact while chroma was off by one (U 4/5/6, V 37/33/16). Matrix (scratch_realsweep, 3 frames each): h242, h1082, h1082tr, h1082trc, tr, tr2, t1080, t1080-single, single1080, w1366, w1366tc and the 320x240 tile0 sweep are all byte-exact. Still unexercised: odd width x odd height x tile ROWS -- the encoder declines -tile-rows at those heights. Verified by an independent reviewer with revert-alone discrimination: a visible-length extent fails h242/h1082, a 64-aligned extent fails the 1080p fixtures, the MI-aligned extent passes all; restoring the uv_w clamps reproduces the chroma-only residue exactly. cargo test -p ec-vp9 is green and cargo check prints the 5 baseline warnings.
2026-09-16
vp9kf: real content decodes byte-exact -- per-SB-row left contexts, MI-row chroma extentsAhmet Kaan Gümüş · bd4fadc
vp9kf: real content decodes byte-exact -- per-SB-row left contexts, MI-row chroma extents Two boundary bugs, both found by driving real content through the decoder (a real 320x240 clip and a real 1920x1080 clip, all-intra VP9 transcodes): 1. decode.rs: the left entropy and partition contexts were zeroed only on the tile's FIRST superblock row (`if sb_row == row_lo`). libvpx zeroes them at the start of EVERY SB row - vp9_decodeframe.c:2256-2258 (plain decode_tiles; row-mt twin :2114-2115, per-tile-row twins :1825-1826 / :1898-1899). Our luma left index wraps at mi_row 16, so the first block of SB row 2 read a stale slot: ctx 1 instead of 0. First divergent bool of a real 320x240 frame was #74792, block mi_row 16 mi_col 0, coef_probs[TX_4X4][Y][band 0][ctx]: oracle prob 195 (ctx 0) vs ours 84 (ctx 1) - everything before it agreed bit-for-bit. 2. loopfilter.rs: the chroma ss11 row-group extents were gated on the visible chroma height; libvpx iterates MI rows (`r += 4`, vp9_loopfilter.c:1400; horizontal `r += 2`, :1431), so a group whose first MI row is inside the frame is filtered even when its 8 chroma rows overhang the visible height. 1080p lost chroma rows 536-539 (last SB row, mi_rows 135); the level read also goes through a bounds-safe `level_at` now. Evidence (all reproduced independently by a reviewer in hermetic scratch copies): real 320x240 0/3 -> 3/3 byte-exact; 1080p single-tile 0/3 -> 3/3; 1080p with 4 tile columns refused -> 3/3 (both this and the BE tile-prefix fix meet here); keyframe_exact 4/4 and the whole crate green; 5 lib warnings unchanged. Reverting either hunk alone regresses the matching sweep. Also: lanes/realdesync.report.md (the diagnosis: first divergent decision, ranked causes, the tile-row class caveat) and a report section recording that the tile-ROW path (log2_tile_rows > 0) is NOT correct yet - three pre-existing defects isolated there, listed in lanes/vp9kf.report.md.
vp9kf: report -- multi-tile is closed at 4b6a68b9Ahmet Kaan Gümüş · 7bd2aba
vp9kf: report -- multi-tile is closed at 4b6a68b9 The report's "third finding, not fixed" and the "next lane charter seed" item 2 both described the multi-tile refusal as an open walk/offset question. They now record the closed finding: the per-tile size prefix is big-endian (mem_get_be32, vp9_decodeframe.c:1674/1688/1690), the offset and the get_tile_offset geometry were already right, an 8-tile 2560x1440 stream now walks exactly, a 4-tile stream decodes 2/2 byte-exact, the single-tile path is untouched, and the residual real-content divergence is tile-independent. The desync item stays open for the diagnosis lane.