Commits
Commits on
663bb80d8382cd48bcb3d24f97043313b816d7ce2026-09-02
Merge branch 'lane-vartxsplit' (b1cc1c8): rect var-tx leaf gate re-recipe'd against aomdec (cq 44/46 product texture) with a pixel-compared firing assertAhmet Kaan Gümüş · 663bb80Browse files
docs(av1): lane-vartxsplit r2 report -- stale 10-bit premise, vacuous firing recipe, gate+suite linesAhmet Kaan Gümüş · 0f1c802Browse files
Merge branch 'lane-frame36' (f52ae0d): split superblock-level strips publish their txfm bands; the 10-bit 3840x1608 head cut decodes 48/48 frames byte-exact, pinned hidden-ARF witnessAhmet Kaan Gümüş · f7859fbBrowse files
docs(av1): lane-frame36 r2 report + handoff -- the split superblock strip's missing TXFM_CONTEXT publication, the 2 s head cut now byte-exactAhmet Kaan Gümüş · d43ed20Browse files
test(av1): pin the hidden-ARF witness and gate it; sweep the same missing TXFM_CONTEXT publication in the 32-level 1:4 strip readerAhmet Kaan Gümüş · 620173e
test(av1): pin the hidden-ARF witness and gate it; sweep the same missing TXFM_CONTEXT publication in the 32-level 1:4 strip reader `crates/ec-av1/fixtures/reelb_arf_witness.obu` (32126 bytes, sha256 7f3b060da5aa9c537633e760c4af71316237db7692f6ae0d459bd2c2dd867d37) is the 58-frame-OBU prefix of a 2 s head cut of the 10-bit 3840x1608 stream: 40 decode-order frames, 37 shown, decode-order frame 33 a hidden alt-ref with cdef_bits=1 and loop restoration [Switchable, Sgrproj, Switchable]. `a_10bit_film_hidden_arf_with_split_superblock_strips_decodes_pixel_exact` compares every plane of all 37 shown frames against ffmpeg and hard-asserts the new `rect64_split_txfm_publish_hits` counter (4 on this stream), so the gate cannot pass vacuously if a stream stops carrying the shape. Class sweep: `decode_block_rect4` (the 32-level 1:4 strip reader, and the inter frame's reader for an intra 32x8/8x32) published the TXFM_CONTEXT bands on none of its three exits. Fixed the same way. Not exercised by this stream (its 32x8/8x32 counters are 0 once frame 33 decodes correctly -- the 48 they showed before were phantoms of the desync), so it is a latent sibling fixed by inspection, with the 48-frame decode re-measured byte-exact after it.
test(av1): gate B split-tx-8x4 arm keeps its unproven note, with a re-measured reasonAhmet Kaan Gümüş · 950504e
test(av1): gate B split-tx-8x4 arm keeps its unproven note, with a re-measured reason The 384x256 cq-10 stream it named now decodes pixel-exact with zero rectangular var-tx leaves, and 12 fresh streams of the gate own source family carry no TX_16X4/TX_4X16 split symbol at any quantiser. r2 report added.
Merge branch 'lane-obmcrec' (302d772): OBMC takes a 1:4-strip neighbour's interp filters from the pair's second mi like its mv and ref; the 16x4 refusal on the inter block path was a misnamed 128x64 intra blockAhmet Kaan Gümüş · 749b2fbBrowse files
test(av1): the 1:4 rect var-tx gate asserted leaves its recipe never codedAhmet Kaan Gümüş · 3032341
test(av1): the 1:4 rect var-tx gate asserted leaves its recipe never coded The firing arm ran a cq-10 384x256 recipe whose stream, per an aomdec EC_VARTX histogram, splits no rectangular transform at all; the leaves it used to count came out of an already-desynced decode. Re-measured: the same texture at cq 44/46 carries TX_32X8/TX_8X32 splits (16x8 + 8x16 leaves) and decodes pixel-exact on all six frames, so the arm now hard-asserts the PIXEL-COMPARED tally. Gate B split-tx-8x4 arm keeps its unproven note with the re-measured reason.
docs(obmcrec): r1 report -- measurement, root cause, gate, film linesAhmet Kaan Gümüş · 1dc73d7Browse files
fix(av1): a split-transform superblock-level strip published no TXFM_CONTEXT bandAhmet Kaan Gümüş · 79abd1e
fix(av1): a split-transform superblock-level strip published no TXFM_CONTEXT band `decode_block_rect64`'s `depth != 0` arm returns early, past the tail `txfm_partition_update_rect` lane-frame36 r1 added, so a SPLIT 64x16/16x64/ 64x32/32x64 strip left the above/left TXFM_CONTEXT bands holding the row's init value 64. libaom runs `set_txfm_ctxs(mbmi->tx_size, ...)` for EVERY block, with the SPLIT unit's size. Measured on the 10-bit 3840x1608 stream (58-OBU prefix), decode-order frame 33 (the hidden ARF): after the split 16x64 strip at mi(192,140) (`tx_depth=1` -> TX_16X32) the 32x64 intra block at mi(192,144) read `left_txfm=64` and took `tx_size_cat3` row 2 where aomdec takes row 1 -- same value, different range, desync from there to the end of the frame. With the fix every superblock entry range of every traced frame equals aomdec's, and all 37 output frames of the prefix are byte-exact against ffmpeg (frame 36 was 765464 differing bytes at r1's tip, 1992768 before it). Also adds the oracle's own `EC_ISTEP ... name=tx_depth ... cat=` line to the 2:1 intra-in-inter arm, which is what named this defect.
fix(av1): the intra-in-inter shape refusal named a correlate, not the shapeAhmet Kaan Gümüş · 7d049f4
fix(av1): the intra-in-inter shape refusal named a correlate, not the shape EC_OBMCREC=1 on the three 2 s cuts of the 10-bit 1920x792 128-superblock stream shows every arrival at this site is a 128x64 block (a PARTITION_HORZ half of a 128 superblock coded INTRA inside an inter frame) at mi (128,416) / (192,0) / (192,0) -- never the 16x4/4x16 strip the message named (class refusal-names-a-correlate). The message now carries the measured shape; refusal_inventory follows it.
fix(av1): the 1:4 intra strip readers never published the TXFM_CONTEXT bandsAhmet Kaan Gümüş · a43f3c7
fix(av1): the 1:4 intra strip readers never published the TXFM_CONTEXT bands decode_block_rect64/decode_block_rect4 are also the INTER frame's readers for a 64x16/16x64 (and 32x8/8x32) intra strip, but unlike every other intra-in-inter path they skipped libaom's set_txfm_ctxs write, so the block after a strip read the row's init value 64 as its left transform height and took the tx_size_cat3 CDF row 1 where libaom takes row 0 -- a same-value/wrong-row desync. Measured on a 58-OBU prefix of the 10-bit 3840x1608 stream (40 decoded frames): the first silent wall is decode-order frame 33, first wrong pixel Y(1920,64), first diverging element tx_depth at mi(16,480) (ours ctx=1 rng=56472, aomdec ctx=0 cat=3 rng=34964). Output frame 36 differing bytes 1992768 -> 765464; the wall is narrowed, not closed (see lanes/frame36-r1.handoff.md). Also adds two triage rungs: EC_PROBE_HDR=1 prints one line per frame header from decode_probe, and EC_TXCTX now also dumps tx_size_context_txfm's inputs.
fix(av1): OBMC read a 1:4-strip neighbour's interp filter from the wrong miAhmet Kaan Gümüş · 7285f03
fix(av1): OBMC read a 1:4-strip neighbour's interp filter from the wrong mi libaom's foreach_overlappable_nb_above/left (reconinter.c 780/840) snaps a 4-wide/4-tall neighbour back to its chroma pair's even mi and takes the neighbour's whole mbmi -- mv, reference AND interp_filters -- from the pair's SECOND mi. Ours took the MiInfo from that second mi but read the switchable filter symbols from the FIRST one, a different block: whenever that half is intra its filter record is the [3, 3] "no filter" sentinel, and the decode refused with "an OBMC neighbour whose switchable interp filter was never recorded". Measured with a new EC_OBMCREC rung on three 2 s cuts of the 10-bit 1920x792 128-SB stream: cur (24,348) 16x16 left-neighbour 16x4, (150,340) 8x8 above-neighbour 4x8, (56,32) 16x32 above-neighbour 4x16 -- every one a pair whose first half is intra (cell_inter=false, ref=-1). overlappable_above/left now return the mi the MiInfo actually came from and obmc_blend reads that cell's filter. All three cuts pass the site; they now stop at the next frontier (the intra 16x4/4x16 strip on the inter block path, and a Golomb tail on one). Gate: a_real_aomenc_10bit_obmc_over_1to4_strip_neighbours_decodes_pixel_exact -- real aomenc, 10-bit 128x128x24, --enable-obmc=1 --enable-1to4-partitions=1 --min-partition-size=4, five seeds, every frame all planes exact vs ffmpeg, hard assert on the new obmc_pair_filter_hits counter (the pair-sourced neighbour shape). The refusal string stays as an upstream-desync guard.
Merge branch 'main' into lane-vartxsplitAhmet Kaan Gümüş · 4730c95
Merge branch 'main' into lane-vartxsplit # Conflicts: # crates/ec-av1/src/decode.rs
Merge branch 'lane-sub8x4' (8c74306): intra 8x4/4x8/4x4 leaves and intra 16x4/4x16 strips inside inter partitions, TX_64X32/32X64 corner TUs lifted with a pinned 10-bit 3840x1608 witness; the 4K head cut decodes 48 frames with no refusalAhmet Kaan Gümüş · c249957Browse files
fix(av1): a compound 8x8 leaf whose transform split erased its four 4x4 TUs' coefficient contextAhmet Kaan Gümüş · 8fd6019
fix(av1): a compound 8x8 leaf whose transform split erased its four 4x4 TUs' coefficient context The split arm of read_inter_luma8 returns an all-zero placeholder luma grid because each 4x4 transform unit has already written its own plane-0 neighbour state through record_mi_luma. The compound leaf then recorded that placeholder over all three planes (record_mi), wiping the four cul_level/DC-sign cells; the single-ref twin decode_leaf8 has carried the saved_luma_ctx save/restore around the same call since lane-txselect. Measured on a pinned 8-bit 384x256 cq-10 1:4-partition stream (md5 842355ef494455ead0352f62f84f2c56): decode-order frame 2, block mi(8,16), first DC-sign symbol -- aomdec dcctx=0 rng=41828, ours dcctx=1 rng=41148, from an empty left band at mi rows 8-9 owned by the split compound leaf at mi(8,14). All 6 frames now byte-identical to ffmpeg (was 91201 luma samples wrong on frame 2, whole frames 3-5 desynced).
docs(av1): lane-sub8x4 r3 suite line -- 422 passed, 2 failed (the two pre-existing 1:4 recipe defects), 37 ignoredAhmet Kaan Gümüş · d0ccc46Browse files
docs(av1): lane-sub8x4 r3 report -- both 1:4/64-corner refusals narrowed behind a 33-frame film witness, tile arm restored, intra14 sibling gate un-ignored and its frame-count assert correctedAhmet Kaan Gümüş · 42fc07fBrowse files
feat(av1): intra 16x4/4x16 strips in an inter 1:4 partition and the un-split 64x32/32x64 corner transform unit, both refusals narrowed behind one film gateAhmet Kaan Gümüş · ddc5714
feat(av1): intra 16x4/4x16 strips in an inter 1:4 partition and the un-split 64x32/32x64 corner transform unit, both refusals narrowed behind one film gate
Both arms were already written and both sat behind env switches (EC_INTRA16X4_DECODE,
EC_RECT64_SPLIT) because three earlier rounds across two lanes reported that no witness
stream exists: every frame of the 10-bit 3840x1608 stream that fires either arm ALSO
carries a sub-8x8 intra leaf, which refused, so no firing frame ever finished and no
pixel comparison was possible. That dead-end expired with this lane's r2 (the sub-8x8
intra leaves decode); re-measuring is all it took.
The first 50 frame-carrying OBUs of that stream's head now decode all 33 frames with no
refusal and match ffmpeg on every plane of every frame, while intra16x4_in_inter reads
16x4=31 4x16=17 chroma_ref=23 and rect64_corner_tu reads 64x32=90 32x64=5. Pinned as
crates/ec-av1/fixtures/reelb_rect64_intra16x4_witness.obu (23472 bytes, sha256
c9e721088766163b9dbeb9fa8dd8b257ff0ec7f9157fc350de4d3c33cd9ec4e4, cut twice from
independent ffmpeg runs that hashed identically) and gated by
a_10bit_film_frames_with_intra_16x4_strips_and_rect64_corner_tus_decode_pixel_exact,
which hard-asserts all five counters. The full 48-frame segment diverges at decode-order
frame 36; the fixture is the exact prefix, not a truncation chosen to hide that.
Neither refusal STRING leaves refusal_inventory: both are narrowed, not deleted. "a split
intra strip whose transform unit is {tx_w}x{tx_h}" still stands for every shape other
than 64x32/32x64, and the 16x4/4x16 one still stands for a strip with no chroma-pair
record.
Sibling sweep: a_10bit_film_inter_frame_with_intra_1to4_strips_decodes_pixel_exact was
#[ignore]d with the note "un-ignore when the 64x32/32x64 luma coefficient tables land",
so it is un-ignored here. Running it for the first time showed its untested
frames.len() == 2 assert was wrong -- a raw ffmpeg decode of that fixture writes exactly
one 3840x1608 10-bit frame, so the second frame OBU is a no-show. Corrected to 1 with an
added ffmpeg-frame-count equality so the compare cannot go vacuous; the gate is green
with 480 intra 1:4 strips and the shown frame pixel-exact.Merge branch 'lane-gaterecipe' (c4f1926): the two 1:4 firing gates ran vacuous recipes; recipes re-measured against aomdec, stdin fed from a threadAhmet Kaan Gümüş · 64c4983Browse files
test(av1): restore the --tile-columns=1 arm in the sub-8x8 intra gate -- r2's multi-tile desync was main's motion-field tile clamp, fixed by 1d2259cAhmet Kaan Gümüş · 90b0b04
test(av1): restore the --tile-columns=1 arm in the sub-8x8 intra gate -- r2's multi-tile desync was main's motion-field tile clamp, fixed by 1d2259c The arm was excluded in r2 with a measured reason: the 192x128 cq-63 recipe with --tile-columns=1 desynced at decode-order frame 4, and identically with --min-partition-size=16 --max-partition-size=16 (no sub-8x8 block of any kind), so the defect was pre-existing and not this lane's bands. Merging main brings 1d2259c (av1_copy_frame_mvs read the mi grid through the per-tile reach clamp, so the saved motion field kept only the last tile's columns) -- exactly the frame-3/4 temporal-MV shape. With that fix the arm is pixel-exact, so the gate now carries the neighbour-map tile arm COMMON asks every lane for: 13 arms.
fix(av1): two 1:4 gates asserted a shape their recipes never producedAhmet Kaan Gümüş · a7dc272
fix(av1): two 1:4 gates asserted a shape their recipes never produced Both were red on their FIRING assert with 0 mismatches and 0 refusals once the refusals their streams used to stop at were lifted. Measured with aomdec EC_TRACE/EC_TRACE_COEFF histograms: the old 64-axis 1:4 recipe writes zero 1:4 partitions and zero rectangular sub-transforms, so the leaves the assert counted came out of a refused stream (class counter-from-refused-stream). Re-swept ~40 recipes: a 384x256 high-frequency product texture at cq 10 with --min-partition-size=8 --enable-tx-size-search=1 is what splits a rectangular transform; the rect var-tx gate now uses it (8-bit, 21+15 leaves before a named refusal). The 16x16-level split-tx-8x4 arm has no decodable recipe at all -- the one that fires it mismatches the reference at frame 2 -- so it is reported unproven with the measurement, not asserted. Also feeds aomenc stdin from a thread: the old shape deadlocked (one encode hung 40 minutes).
docs(av1): lane-sub8x4 r2 handoff addendum -- the straddling-band suite failure is main's missing motion-field tile fix, which is also the likely cause of this lane's multi-tile desyncAhmet Kaan Gümüş · 5106e8dBrowse files
docs(av1): lane-sub8x4 r2 handoff -- deblock tx-width root cause, sub-8x8 intra gate green, multi-tile defect disproved as this lane'sAhmet Kaan Gümüş · b57fa91Browse files
feat(av1): intra 8x4/4x8 and 4x4 leaves inside an inter frame's sub-8x8 partitions, refusals lifted behind a real-aomenc gateAhmet Kaan Gümüş · d94fd8e
feat(av1): intra 8x4/4x8 and 4x4 leaves inside an inter frame's sub-8x8 partitions, refusals lifted behind a real-aomenc gate Both sub-8x8 intra refusals and their `EC_SUB8INTRA_DECODE` bypass are gone: "an intra 4x4 block inside an inter frame's sub-8x8 split ..." "an intra 8x4/4x8 block inside an inter frame's sub-8x8 HORZ/VERT partition ..." New gate `a_real_aomenc_inter_sequence_with_intra_sub8x8_leaves_decodes_pixel_exact` (stream.rs) re-encodes 12 real aomenc streams -- 8/10-bit x cq 48/55/63 x 128x128/192x128, `--min-partition-size=4 --max-partition-size=8 --enable-1to4-partitions=0` -- and compares all 6 decode-order frames, all three planes, against ffmpeg. Continue-and-sweep: a named refusal is recorded, any other decode error or any pixel mismatch fails. The fixture recipe is encoded twice on the first arm and the two streams compared byte for byte. End-of-sweep assert reads all five `sub8_intra_rect_hits` cells, so neither lifted refusal rests on a stream that never carried its shape. Result: 12/12 arms pixel-exact, counters [8x4=362, 4x8=80, chroma_ref=156, mixed=153, split4x4=98]. `sub8_intra_rect_hits` grows a fifth cell for the PARTITION_SPLIT 4x4 arm (the second refusal's own witness); decode_probe prints it. NOT included, measured not assumed: the `--tile-columns=1` arm. That recipe desyncs at decode-order frame 4 -- and desyncs identically with `--min-partition-size=16 --max-partition-size=16`, i.e. with no sub-8x8 block in the stream at all, so it is a pre-existing multi-tile defect, not this lane's bands. Repro pinned in the gate comment. Sibling gates re-run: sub8/obmc/mv_stack/1to4/refusal_inventory/gate_coverage = 33 passed, 2 failed, 5 ignored -- both failures are the zero-counter RECIPE defects this branch already carried (16x16-level 1:4 VERT_4 arms, rect var-tx leaf arm), neither a pixel mismatch.
fix(av1): compound 8x8 leaf published transform width 8 to the deblock grid even when its var-tx split it into 4x4 unitsAhmet Kaan Gümüş · 315f5f2
fix(av1): compound 8x8 leaf published transform width 8 to the deblock grid even when its var-tx split it into 4x4 units
`decode_inter_block8`'s COMPOUND early return called `fill_lf_grid(leaf_mi, 2, 8, ..)`
with a literal 8 where the fall-through single-ref tail writes `if split8 { 4 } else { 8 }`.
libaom `get_transform_size` (av1_loopfilter.c:207) reads the per-TU `inter_tx_size` for a
non-skip inter luma block, so the leaf's interior vertical/horizontal edges at x % 8 == 4
are real filter edges. Ours skipped them and widened the neighbouring edge's filter from
4-tap to 8-tap. Class early-return-skips-tail, third instance in this same arm.
Witness (8-bit 128x128 6-frame inter stream, cq 63): entropy and the pre-filter picture were
already exact on every frame; the POSTDEBLOCK dump vs the instrumented aomdec's diverged on
decode frame 2 at luma (78..80, 58..63), 12 px, max delta 3, around the unfiltered x=60 edge
of the 8x8 at mi(20,14) -- our `EC_AV1_DEBLOCK_TRACE_V` printed no VEDGE at x0=60 there while
the block's four TX_4X4 units demand one. A 12-stream sub-8x8-intra probe sweep
(8/10-bit x cq 48/55/63 x 128x128/192x128) goes 10/12 -> 12/12 pixel-EXACT vs ffmpeg.docs(av1): lane-sub8x4 r1 handoff -- merge resolution, two root causes, re-measured step-1 premisesAhmet Kaan Gümüş · 885adf5Browse files
fix(av1): compound 8x8 leaf's early return clobbered its own per-TU luma coefficient contextAhmet Kaan Gümüş · d0f01ab
fix(av1): compound 8x8 leaf's early return clobbered its own per-TU luma coefficient context `decode_leaf8`'s COMPOUND arm returns before the fall-through tail, and that tail is where the `split8` plane-0 save/restore around `record_mi` lives. A compound var-tx 8x8 leaf therefore published the whole-block luma grid (all-zero when the transform is split into 4x4 units, since `read_inter_luma8`'s `record_mi_luma` already wrote the per-unit state) to `above[..][0]`/`left[..][0]`, so the NEXT block's first transform unit read `get_txb_ctx`'s `skip_contexts[4][0] = 3` where aomdec reads `[4][4] = 6` (txb_common.h:330). Class early-return-skips-tail. Witness (8-bit 192x128 inter stream, aomdec ladder): frame 2 mi(14,12) first luma TU, ours ctx=3 rng=43376 vs reference ctx=6 rng=61310; the block left of it, mi(14,10), is a compound 8x8 whose four TX_4X4 units all read ctx=6 correctly and then had their published levels zeroed. A 12-stream sub-8x8-intra probe sweep keeps its 10/12 pixel-EXACT rows and one refusing stream now decodes all 6 frames.
merge(sub8x4)+fix(av1): one faithful copy of libaom's sub-8px mv-stack scans, and a sub-8x8 leaf that never saw its sibling's block sizeAhmet Kaan Gümüş · 35461bb
merge(sub8x4)+fix(av1): one faithful copy of libaom's sub-8px mv-stack scans, and a sub-8x8 leaf that never saw its sibling's block size Merge of lane-intra16x4 r3 and lane-sub8intra r2: both ported the same two clauses of libaom `scan_row_mbmi`/`scan_col_mbmi` (mvref_common.c:143-236) into `mvstack.rs`; the merge keeps ONE copy per scan (row, col and their compound twins) -- the odd-mi step-back under a sub-8px block and the `>= mi_size_wide[BLOCK_8X8]` half of the weight / `processed_rows|cols` guard. Fix on top (`decode_inter_sub8_rect2`): libaom's `xd->above_mbmi`/`left_mbmi` are the neighbour block as DECODED, so leaf 1 of an 8x8 HORZ/VERT group sees leaf 0's own bsize. We published the side bands only in the GROUP tail, so leaf 1 read the block preceding the whole group; `get_tx_size_context` (pred_common.h:342) takes `block_size_wide[above_mbmi->bsize]` from there, and an intra 8x4 leaf 1 read `tx_size_cat0` row 1 where aomdec reads row 2 (class tx-grid-published-block-side). 12-stream sub-8x8-intra probe sweep: 5/12 pixel-EXACT -> 10/12.
Merge branch 'lane-mergefix' (ed7af98): build_motion_field read the mi grid through the last tile's clamp, dropping every other tile column's saved motion vectors; frame-edge straddling gate greenAhmet Kaan Gümüş · b09d6c1Browse files
fix(av1): mv-stack row/col scans dropped libaom's sub-8px clauses, desyncing every 4-wide/4-high blockAhmet Kaan Gümüş · 9d5ecaa
fix(av1): mv-stack row/col scans dropped libaom's sub-8px clauses, desyncing every 4-wide/4-high block `scan_row`/`scan_col` (and the compound twins) applied the weight and `processed_rows`/`processed_cols` update whenever `bw4 <= n4`, but libaom `scan_row_mbmi`/`scan_col_mbmi` (mvref_common.c:172/222) gate that on `xd->width >= mi_size_wide[BLOCK_8X8]` as well, and step the |offset|>1 column back on an odd mi_col under a sub-8px block. A 4-wide 1:4 strip therefore got a raised candidate weight and a shifted outer scan: on a 128x128 cq60 aomenc stream, mi(24,15) built the stack (12,28) w648 / (-4,26) w648 / (-4,18) w8 where libaom builds (12,28) w650 / (-4,18) w648 / (-4,26) w8 / (6,332) w4, picking a different mv and desyncing 5466 luma pixels of frame 1 from (122,13). With both clauses ported the same stream is entropy-exact (125/125 aomdec EC_MODE entries match, value and range) and stops on another lane's named sub-8x8 intra refusal instead of decoding wrong pixels. The intra 16x4/4x16 gate becomes continue-and-sweep: every arm decodes, named refusals only from a measured list, every decode-order frame compared on every plane, and ONE end-of-sweep assert over the recorded failures plus a per-bit- depth firing assert. Still ignored, refusal NOT lifted -- no recipe found yet gives a pixel-exact attempt with the counter above zero.
fix(av1): mv-stack column/row scans dropped libaom's two sub-8x8 rules -- an 8x4 leaf's refmv CDF row was 3 where libaom uses 4Ahmet Kaan Gümüş · 53add12
fix(av1): mv-stack column/row scans dropped libaom's two sub-8x8 rules -- an 8x4 leaf's refmv CDF row was 3 where libaom uses 4 `scan_col_mbmi`'s odd-row snap (`if ((mi_row & 0x01) && xd->height < n8_h_8) --row_offset;`) and its transposed `scan_row_mbmi` twin were never ported, and the weight/`processed_cols` guard kept only `xd->height <= n4_h`, dropping libaom's `xd->height >= n8_h_8` half. Both only misfire for a query block with a side under 8px, so they surfaced the moment an intra 8x4 leaf made its inter neighbour's second-outer column scan matter: the scan probed the undecoded row below, lost `col_match_count`, and read the `refmv` symbol off ctx 3 instead of 4 -- same decoded mode, wrong CDF row, tile desynced from there (class wrong-alphabet-same-value). Fixed in all four scan functions (single-ref and compound). On the 8-bit 128x128 sub-8x8 witness the all_zero range ladder now matches the reference on 2106/2106 transform units across all 6 frames (was 1405) and mi(24,0)'s mode range matches; the three remaining pixel clusters are the OBMC `mi_step == 1` chroma-pair merge already fixed on another lane, with which the witness is cmp-exact against ffmpeg on all 6 frames. No refusal lifted, no gate yet.
docs(mergefix): r5 report -- saved motion field kept only the last tile's columns; straddling gate greenAhmet Kaan Gümüş · d72296d
docs(mergefix): r5 report -- saved motion field kept only the last tile's columns; straddling gate green
fix(av1): the saved motion field kept only the LAST tile's columns -- av1_copy_frame_mvs read the mi grid through the per-tile reach clampAhmet Kaan Gümüş · ba5351f
fix(av1): the saved motion field kept only the LAST tile's columns -- av1_copy_frame_mvs read the mi grid through the per-tile reach clamp `build_motion_field` (this crate's `av1_copy_frame_mvs`) walks the whole frame's mi grid AFTER the tile loop has finished, when `MiGrid`'s tile window is still narrowed to the last tile. `MiGrid::get` returns `None` outside that window, so every tile but the last saved no motion vectors at all: on the pinned 192x68 2-tile-column stream the saved field held only mi_col 32..47, and the next frame's temporal (MFMV) candidates over the whole left two thirds silently vanished from the MV stack. The entropy stream still matched symbol for symbol -- a missing weight-2 temporal vote only reorders the stack -- so a NEW_NEWMV block at mi(0,24) took stack[1] = (36,0) (the compound extension's zero-fill) instead of libaom's (0,0), predicting 32 px off and leaving a 32-px-wide wrong column band. New `MiGrid::get_frame` is the unclamped frame-level read; only `build_motion_field` uses it. Rungs added with it: `EC_TPL` (per frame: use_ref_frame_mvs + filled projected cells) and `EC_TRACE_TPL`'s new `EC_TPL_SAVED` occupancy map of the saved field, which is what showed the 16-column hole. Pre-filter reconstruction of all 6 decode-order frames of the pinned stream goes 1306/3358/5027/6622 wrong luma px (frames 2..5) -> 0.
Merge branch 'main' into lane-mergefixAhmet Kaan Gümüş · 54a60c1
Merge branch 'main' into lane-mergefix # Conflicts: # crates/ec-av1/examples/decode_probe.rs # crates/ec-av1/src/cdf_state.rs # crates/ec-av1/src/decode.rs # crates/ec-av1/src/refusal_inventory.rs # crates/ec-av1/src/stream.rs # lanes/mergefix-r2.report.md
feat(av1): intra 8x4/4x8 and 4x4 leaves of an inter frame's sub-8x8 partition decode behind EC_SUB8INTRA_DECODE (gate RED, refusals kept)Ahmet Kaan Gümüş · 2b05cf7
feat(av1): intra 8x4/4x8 and 4x4 leaves of an inter frame's sub-8x8 partition decode behind EC_SUB8INTRA_DECODE (gate RED, refusals kept) decode_intra_sub8_leaf reads read_intra_block_mode_info's syntax (y_mode[0], no angle delta below 8x8, uv_mode + CfL only on the chroma reference, filter_intra off the shape's own class row) and then decode_leaf_rect8's luma/chroma body, with the INTER frame's tx-depth context and set_txfm_ctxs publication. Both sub-8x8 callers guard their chroma tail when the chroma reference is intra, and predict the group's 4x4 chroma WHOLE from the chroma-reference block's mv when a sibling is intra (is_sub8x8_inter false). Measured: 5/6 film probes stop first on sub-block 0 of a HORZ/VERT pair, non-skip; under the switch all six move to the next wall. The path is NOT proven: on an 8-bit 128x128 aomenc witness the intra leaf itself is bit-exact (mode + tx_depth rng match the oracle) but the stream desyncs inside the next 8x8 group, so the refusals stay the default behaviour and no gate is added.
fix(av1): OBMC overlappable-neighbour walk never ported libaom's mi_step==1 chroma-pair mergeAhmet Kaan Gümüş · 0ee3ba4
fix(av1): OBMC overlappable-neighbour walk never ported libaom's mi_step==1 chroma-pair merge `overlappable_above`/`overlappable_left` (obmc.h `foreach_overlappable_nb_*`) skipped the "4-wide/4-tall neighbour is half of a chroma pair" case as unreachable; the 16x16-level 1:4 partitions made it reachable. The 16x16 block right of a HORZ_4 whose strip 0 is inter and strips 1..3 intra counted that inter strip as overlappable, so we read a motion_mode symbol libaom never wrote (its walk snaps back to the pair's even row and reads the INTRA strip 1), desyncing the tile at the next coefficient: first TU all_zero=1 vs the reference's eob=59. After the fix the 8-bit 192x128 witness matches aomdec on 620/620 all_zero symbols (value and range) up to another lane's sub-8x8 intra refusal, and a new gate recipe (horizontal-bar source, cq63, --min-partition-size=8, 192x128, 5 intra 16x4 strips) decodes 6 frames bit-exact vs ffmpeg. Gate run once with --include-ignored: still RED, on attempt 0 only -- a mismatch r1 measured as another shape (99 rows above that stream's first strip) which panics before the new arm runs, so the test stays #[ignore]d with that measurement and the refusal stays in place behind EC_INTRA16X4_DECODE.
docs(av1): lane-intra16x4 r1 handoff -- measurement table, what the path implements, the surviving pixel mismatch, next stepAhmet Kaan Gümüş · e5f8021Browse files
feat(av1): intra 16x4/4x16 strip of an inter 16x16-level 1:4 partition decodes behind EC_INTRA16X4_DECODE (gate RED, refusal kept)Ahmet Kaan Gümüş · dfaeea5
feat(av1): intra 16x4/4x16 strip of an inter 16x16-level 1:4 partition decodes behind EC_INTRA16X4_DECODE (gate RED, refusal kept) The key frame's per-strip body is lifted out of decode_rect4_16 into decode_rect4_16_strip and run from the INTER block path with INTRA_IN_INTER_MODE = (size_group 0, the skip decode_inter_block already read), so a single intra strip of a partition whose other strips are inter decodes through the readers the key frame already proves -- including the 4:2:0 pairing (even strips read no chroma, the odd one codes one 8x4/4x8 unit at the pair's origin, predicted per the strip that carries it). The inter path additionally publishes set_txfm_ctxs + txfm_partition_update for the strip (the key-frame body has no var-tx tree) and reads the tx-depth symbol off the real TXFM_CONTEXT bands; without that the block after the strip broke while the strip itself was exact. Not pixel-proven: the r1 gate (real aomenc, 4 recipes x 8/10 bit, every frame Y/U/V vs ffmpeg) is RED and #[ignore]d with its measurement, so the named refusal stays the default and the new path is behind EC_INTRA16X4_DECODE=1. Measured with the switch on, all six 10-bit film probes leave this wall (five stop on the sub-8x8 intra block, another lane's shape).
Merge branch 'lane-rectres' (a66f9a4): rectangular residual coding for non-skip 32x8/8x32 inter strips (the film's rect-residual wall)Ahmet Kaan Gümüş · 0cc84e8Browse files
docs(av1): lane-rectres r1 report -- shape histogram, gate result, film wall move, open suiteAhmet Kaan Gümüş · ba3aca0
docs(av1): lane-rectres r1 report -- shape histogram, gate result, film wall move, open suite The full `cargo test -p ec-av1 --lib` run had not printed its result line when the round ended; the report says so rather than claiming a total.
feat(av1): the 32x32-level 1:4 inter strip codes its rectangular residual (32x8/8x32)Ahmet Kaan Gümüş · 0f5742b
feat(av1): the 32x32-level 1:4 inter strip codes its rectangular residual (32x8/8x32) MEASURED first: an env-gated print at the refusal site (EC_RECTRES=1) on both 10-bit 3840x1608 film cuts and four offsets of the 10-bit 1920x792 stream gives 6/6 refusals at w=32 h=8 or w=8 h=32, non-skip, inter -- nothing else. The 64-axis shapes the charter expected were already supported and never fire. TX_32X8 codes all 256 positions. New TxbSet::LumaRect32x8Inter = the intra LumaRect32x8 tables (get_txsize_entropy_ctx = TX_16X16, txsize_log2_minus4 = 4) plus a tx_type table the intra twin has none of: av1_get_ext_tx_set_type at tx_size_sqr_up == TX_32X32 is EXT_TX_SET_DCT_IDTX for inter with or without reduced_tx_set, read at the txsize_sqr_map[TX_32X8] == TX_8X8 row. Chroma pair is one 16x4/4x16 unit (ss_size_lookup[BLOCK_32X8] = BLOCK_16X4) = Chroma8's tables. Scans, sub_tx_size_map[TX_32X8] = TX_16X8 var-tx leaves and the rect coefficient reader were already shape-general. Gate a_real_aomenc_inter_sequence_with_32x32_level_1to4_strips_codes_their_rect_residual: real aomenc, --enable-1to4-partitions=1 --enable-tx-size-search=1 --min-partition-size=8 --max-partition-size=32, 16 attempts x 8/10-bit, both orientations, every decode-order frame Y/U/V vs ffmpeg, oos_mismatch == 0, one hard assert per lifted shape on the PIXEL-COMPARED counter: 32x8=7 8x32=8, 0 refusals, 0 mismatches. A 72-run recipe sweep found that only 32-pixel motion bands at cq >= 48 make aomenc code a NON-SKIP strip; narrower bands give the same partition with skip set and prove nothing about the residual. Film frontier: the 10-bit 3840x1608 cut still shows 33 frames -- the gain is inside frame 34, which now codes a 32x8 residual unit and stops on a different wall (an intra 16x4/4x16 strip inside an inter 16x16-level 1:4 partition). All six cuts moved to that same next refusal. The rect64 refusal is NOT lifted: the clean prefix reports rect64_corner_tu 0/0, so no witness exists yet.
Merge branch 'lane-rect64port' (d08f9c6): TX_64X32/TX_32X64 split-intra-strip luma corner ported onto main behind EC_RECT64_SPLIT (no film witness yet; the next wall is the inter rect-residual refusal)Ahmet Kaan Gümüş · 480a3f2Browse files
docs(rect64port): r1 suite line -- 417 passed, 3 failed (the 3 known reds), 37 ignoredAhmet Kaan Gümüş · da8601bBrowse files
fix(av1): the loop filter ignored spec 7.14.2's skip/pu_edge suppression, filtering a var-tx interior edge lattice the reference never touchesAhmet Kaan Gümüş · fc0fe40
fix(av1): the loop filter ignored spec 7.14.2's skip/pu_edge suppression, filtering a var-tx interior edge lattice the reference never touches edge_params dropped the `!pv_skip || !curr_skipped || pu_edge` term on the invariant "a coded block's transform is always its own full size", which var-tx broke: every 8-px interior transform edge inside a skipped inter block was filtered. Adds a per-4x4-mi coded-block-origin band (written alongside the skip flag) for the pu_edge term. On the pinned 192x68 cq61 tile_cols=1 8-bit stream, decode-order frame 1 goes 7244 -> 0 wrong post-deblock luma px; its pre-filter reconstruction was already bit-exact, which disproves the compound-prediction premise this round started from. The 1:4 rect-vartx sibling gate stays green. The straddling gate still fails on a different, isolated defect: decode frame 2 is wrong pre-filter in the x=96..127 column band. (cherry picked from commit 6bc2c8b32c187d51e7723249c7eecbad9a298466)
docs(rect64port): r1 report -- port landed behind EC_RECT64_SPLIT, no witness (frontier moved to the inter rect-residual refusal)Ahmet Kaan Gümüş · ddb3943Browse files
feat(av1): TX_64X32/TX_32X64 luma corner read for a split intra strip, behind EC_RECT64_SPLIT=1 (no witness yet)Ahmet Kaan Gümüş · 42d7c39
feat(av1): TX_64X32/TX_32X64 luma corner read for a split intra strip, behind EC_RECT64_SPLIT=1 (no witness yet) Hand-port of the lane-intra64split decode hunk onto main 78d8ff7: a 64-level HORZ/VERT intra strip whose luma transform unit is the un-split TX_64X32 / TX_32X64 reads its coded 32x32 corner through TxbSet::Luma64 with default_scan(TX32) and the real rect shape passed to av1_nz_map_ctx_offset -- byte for byte decode_block_rect64's depth-0 key-frame arm. Per-orientation counter rect64_corner_tu_hits(0|1) exported through stream.rs and printed by decode_probe. NOT lifted: measured on both 10-bit 3840x1608 cuts, the arm fires (16x 64x32 + 2x 32x64 on the first cut, 2x 32x64 on the second) but the SAME frame then stops at "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual coding", so no frame containing the shape ever completes and no pixel comparison exists. A refusal is lifted only with a gate, so the arm sits behind EC_RECT64_SPLIT=1 and the refusal stays the default; refusal_inventory and gate_coverage unchanged.
docs(mergefix): r4 sibling gate batch -- 10 passed, 1 failed (the lane's own gate, unchanged)Ahmet Kaan Gümüş · 34789daBrowse files
docs(mergefix): r4 handoff -- frame 1 is entropy AND prediction exact; the residual band is decode frame 2, x=96..127Ahmet Kaan Gümüş · 8fc2d7e
docs(mergefix): r4 handoff -- frame 1 is entropy AND prediction exact; the residual band is decode frame 2, x=96..127