Commits
Commits on
d5c0a13384281712d9f8dab7f427587dc4d3bbef2026-09-02
fix(av1): the second half of a 128-root HORZ/VERT inter block never read its own cdef_idx literalAhmet Kaan Gümüş · d5c0a13
fix(av1): the second half of a 128-root HORZ/VERT inter block never read its own cdef_idx literal libaom keeps `cdef_transmitted[4]` -- one flag per 64x64 CDEF unit of a 128x128 superblock, indexed `(mi_col & 16) != 0` + 2 * `(mi_row & 16) != 0` (`read_cdef`, decodemv.c:50-81) -- so both halves of a 128-root PARTITION_HORZ/VERT read a `cdef_bits`-wide literal, each into its own unit. Our flag is a single bool reset per coded piece, and the inter tile loop's 128-root HORZ/VERT arm was the one arm that never reset it between the two halves (the key-frame loop already did), so the second half consumed `cdef_bits` fewer bits than the encoder wrote and the tile desynced at that block's mode info -- a literal-width divergence invisible to a value ladder (the whole coefficient block before it is bit-identical, ranges rejoin only at the next block's entry: 57521 -> aomdec 40079, ours 39850). Witness, 10-bit 1920x792 128-superblock stream, decode-order frame 10, first differing luma pixel px(192,0) = mi(0,48) = the right half of a 128x128 PARTITION_VERT. Pre-filter decode-order compare vs the instrumented aomdec over a 16-frame cut: frames 10..13 go 2316966 / 1746025 / 1307747 / 2161740 differing bytes -> 0 each; frames 0..9 stay exact; residue moves to frame 14 (14 bytes).
fix(av1): the per-plane warp bail-out was gated on the square side, not the plane block's own width/heightAhmet Kaan Gümüş · 9385d73
fix(av1): the per-plane warp bail-out was gated on the square side, not the plane block's own width/height `av1_init_warp_params` (reconinter.c) returns before setting WARP_PRED when the PLANE's own block is `block_width < 8 || block_height < 8`, so in 4:2:0 the chroma of any luma block narrower or shorter than 16 is predicted translationally even while its luma warps. Every warp site gated that on `chroma_side` (`side / 2`, the SQUARE side), which for an 8x16 or 16x8 luma block is 8 while the real chroma block is 4x8 / 8x4 -- so we warped chroma libaom convolves. Same shape on the luma side: a PARTITION_HORZ/VERT strip is `write_w`x`write_h`, not `side`x`side`, so a 16x4 / 4x16 strip under global motion warped where libaom does not. Guards now read `write_chroma_w`/`write_chroma_h` (chroma) and `write_w`/`write_h` (luma) at all 5 chroma and 3 luma warp call sites (single-reference and both compound taps). On the 2-frame 10-bit 1920x792 128-superblock cut, decode-order compare vs the instrumented aomdec: frame 1 chroma residue U 98 / V 62 samples (11 superblocks, deltas -2..+3) -> 0, and both frames are now bit-exact pre-filter AND post-filter (was 258 differing bytes).
docs(av1): lane-t900 r4 handoff -- rect interintra cherry-pick and the split-half edge-filter neighbour fix take frame 1 to a chroma-only residueAhmet Kaan Gümüş · e3f5baeBrowse files
fix(av1): both halves of a split intra block read the FIRST half's edge-filter neighboursAhmet Kaan Gümüş · 4438a11
fix(av1): both halves of a split intra block read the FIRST half's edge-filter neighbours `modes_above_left` keys its mi-exact lookup on the coarse 16x16 cell's own top-left mi, so the second 8x16 (or 16x8) half of a rect intra block in an inter frame asked for the neighbours of the first half. libaom reads `above_mbmi`/`left_mbmi` for the block itself, so the intra-edge filter type (`get_intra_edge_filter_type`, reconintra.c:974) came out 0 where libaom has 1, and every directional half whose real above/left neighbour was SMOOTH got its edge filtered at the wrong strength. Measured on a 2-frame 10-bit 1920x792 128-SB cut, decode-order frame 1 pre-loop-filter vs instrumented aomdec: luma 1269 differing pixels -> 0, whole-frame 1549 -> 258 bytes (chroma-only residue left). The witness block (8x16, p_angle 110, above neighbour SMOOTH_H) predicted sum 41742 where aomdec has 41767; recomputing the spec walk with filter type 1 reproduces aomdec exactly. `OUR_PRED` now prints `ft=` so the two decoders' filter type can be diffed directly (aomdec's `EC_PRED` already did).
fix(av1): interintra built a square intra predictor for rectangular blocksAhmet Kaan Gümüş · 9a73c30
fix(av1): interintra built a square intra predictor for rectangular blocks `interintra_blend` took one `side` and used it for the edge fetch, the intra predictor's `(bw, bh)`, `ii_size_scales` and the blend bounds. On a rectangular block (`write_w != write_h`) `side` is the LONGER dimension, so a 32x16 block got a 32x32 SMOOTH/DC predictor built off 32 rows of left edge (16 of which are not yet decoded) instead of libaom's 32x16 one. The mask scale happened to come out right (`128 / max(bw,bh)` == `ii_size_scales`), the predictor did not: the blend error is zero on the block's first row and grows downward, exactly the `sm_weights_h` divergence between a height-32 and a height-16 SMOOTH_PRED. Blend now takes `(bw, bh, stride)`: `edges_rect`/`predict` at the true footprint, mask scale off `max(bw, bh)`, loop over `bh x bw`, `pred` indexed at the buffer's own stride. New `interintra_rect_hits()` counts the shape (every existing interintra gate passed with the bug, so the rect arm was vacuous) and `decode_probe` reports it. Also `EC_AV1_NO_GRAIN=1` in `decode_stream`, which splits a mismatch into reconstruction vs film-grain synthesis in one run (it is what ruled grain out here). Measured on a 2-frame cut of the 10-bit 3840x1608 stream (key frame + first hidden alt-ref, 59 rect interintra blocks): the alt-ref's pre-filter dump vs the instrumented aomdec goes from a first mismatch at luma (17,1088) to that superblock exact; first remaining mismatch moves to (448,1152), a separate NEARMV mv-stack defect (ours (-40,-340), aomdec (-32,-350)).
docs(av1): lane-t900 r3 handoff -- chroma coefficient contexts wiped by the non-chroma-reference inter block; the 2-frame cut is entropy-exact, the residue is reconstructionAhmet Kaan Gümüş · 3e2b507
docs(av1): lane-t900 r3 handoff -- chroma coefficient contexts wiped by the non-chroma-reference inter block; the 2-frame cut is entropy-exact, the residue is reconstruction
fix(av1): a non-chroma-reference inter block wiped its neighbours' chroma coefficient contextsAhmet Kaan Gümüş · 8b5425d
fix(av1): a non-chroma-reference inter block wiped its neighbours' chroma coefficient contexts libaom codes no chroma transform at all for a block that is not the chroma reference of its 4:2:0 pair (`av1_reset_entropy_context`: `nplanes = 1 + (num_planes - 1) * xd->is_chroma_ref`), so such a block leaves the above/left CHROMA entropy contexts exactly as it found them. Our inter block reader recorded all three planes unconditionally, and for those strips the chroma grids are all-zero -- so the even 4x16 strip of a VERT_4 pair cleared the real left-neighbour chroma state, and the PAIR's own `all_zero` symbol then read `txb_skip_ctx` one row low (base 1 where libaom gathers 2, i.e. ctx 1 vs 9 with the chroma offset). Measured on the 2-frame cut of the 10-bit 1920x792 128-superblock stream, decode-order frame 1, mi(40,220): the chroma `all_zero` entry range 37582 now leaves 51992, aomdec's value. The whole cut's coefficient ladder is exact: 15865 `all_zero` symbols in both decoders, identical value and range in order, both frames. The frame-1 reconstruction gap drops from 1924240 to 114374 differing bytes and is now pre-loop-filter (an MC/prediction defect, no longer entropy). Also: `EC_DCDUMP` now dumps all three planes, not plane 0 only -- without the chroma cells the wipe is invisible.
fix(av1): rect intra leaves inside an inter frame read the deblock-grid tx-depth context (sibling sweep)Ahmet Kaan Gümüş · a0c409b
fix(av1): rect intra leaves inside an inter frame read the deblock-grid tx-depth context (sibling sweep) Class sweep of the measured `decode_block_rect4` defect: `decode_leaf_rect` and `decode_leaf_rect8` still built their tx-depth CDF row from [`tx_size_context_rect`] (the key frame's deblock-grid approximation) where libaom's `get_tx_size_context` reads the `TXFM_CONTEXT` bands for every block of an inter frame. No-op unless `INTRA_IN_INTER_MODE` is set, i.e. key frames are byte-identical. Unmeasured on their own (the measured instance is the 32x8 strip at mi(48,176) of the 10-bit 1920x792 128-superblock stream) -- kept in a separate commit so it can be reverted without losing that fix. lanes/t900-r2.handoff.md carries the ladder state, the next divergence (a chroma txb_skip context row) and the gate that was red mid-suite when the round ended.
fix(av1): a 1:4 intra strip in an inter frame took its tx-depth CDF row from the key frame's deblock grid, not the TXFM_CONTEXT bandsAhmet Kaan Gümüş · 27250ff
fix(av1): a 1:4 intra strip in an inter frame took its tx-depth CDF row from the key frame's deblock grid, not the TXFM_CONTEXT bands `get_tx_size_context` reads `above_txfm_context`/`left_txfm_context` on an inter frame; the 2:1 and 16x4 intra-in-inter arms already switch to [`tx_size_context_txfm_rect`] for that, `decode_block_rect4` (32x8/8x32), `decode_block_rect64` (64x16/16x64) and `decode_block_rect`'s own cat-2 read did not. Measured on the 10-bit 1920x792 128-superblock stream, decode-order frame 1: the 32x8 HORZ_4 strip at mi(48,176) read `tx_size_cat2` row 1 where libaom reads row 2 (ours rng after the symbol did not occur anywhere in the oracle's frame trace), and every symbol after it was off. With the bands the cross-decoder ladder now runs from mi(0,320) to mi(40,221) inclusive. Also adds the missing `EC_TRACE_MODE_STEP` tx_depth rung to those three readers plus the 16x4 strip -- without it a range ladder cannot see the symbol at all, which is what made the earlier bisection stop one block short.
merge: main (5d81a67) into lane-t900 -- rect4/rect64 txfm-band tails meet the in-inter band publicationAhmet Kaan Gümüş · c11cb86
merge: main (5d81a67) into lane-t900 -- rect4/rect64 txfm-band tails meet the in-inter band publication Both writes carry the same (tx_w,tx_h) for the same footprint, so the split arms now publish twice with identical values; the in-inter publication stays because it also covers the non-split and refusing exits.
Merge branch 'lane-wit16x4' (f6d4e61): rect64 witness gate re-measured after the ARF fix (its intra 16x4 counters were phantoms); intra 16x4-in-inter refusal re-added until a displayed frame witnesses itAhmet Kaan Gümüş · 1d38022Browse files
docs(lanes): COMMON first step is merge main, never rebase; charters must not contradict itAhmet Kaan Gümüş · 1395e7b
docs(lanes): COMMON first step is merge main, never rebase; charters must not contradict it
fix(av1): re-add the intra 16x4/4x16-in-inter-1:4 refusal -- its witness counters were phantoms of a desyncAhmet Kaan Gümüş · 543ce26
fix(av1): re-add the intra 16x4/4x16-in-inter-1:4 refusal -- its witness counters were phantoms of a desync The gate pinned last round asserted intra16x4_in_inter 16x4=31 4x16=17 chroma_ref=23 and rect64_corner_tu 64x32=90 32x64=5 on a 10-bit 3840x1608 prefix; all five numbers were counted while decode-order frame 33 of that same prefix was desynced (class counter-from-refused-stream). Re-measured on the merged tip: the fixture decodes all 33 frames pixel-exact and reads rect64_corner_tu 148/123 with intra16x4_in_inter 0/0/0. No stream on this tree decodes pixel-exact while the intra 16x4/4x16 arm fires: a 2 s 10-bit 3840x1608 head cut is exact with 0 hits; the 300 s cut's hits sit behind frames that mismatch by 14105680 / 12470780 bytes; four 1920x792 128-SB cuts carry their hits only in frames that refuse or are never shown; and the aomenc gate for the shape, run --include-ignored, fails with per-arm attempts [0, 0, 0]. So the decode path goes back behind a named refusal (opt-in via EC_INTRA16X4_DECODE) rather than standing as an unbacked capability claim. - decode.rs: strip16 chroma-pair record gated by EC_INTRA16X4_DECODE; measured notes on both the refusal and the rect64 corner-TU comment - refusal_inventory.rs: string re-widened to the whole shape (note only) - stream.rs: gate renamed a_10bit_film_frames_with_rect64_corner_tus_decode_pixel_exact, hard assert kept on rect64_corner_tu (148/123) and the intra-16x4 assert inverted to assert_eq!(0,0,0); the aomenc 1:4 gate's #[ignore] reason replaced by this round's failure output - stream.rs: a_10bit_film_inter_frame_with_intra_1to4_strips #[ignore]d -- every strip it counts is in its fixture's NO-SHOW second frame (truncated to one frame OBU the counters read 0/0/0/0), so it was green on a counter no pixel compare backed (class gate-blind-to-hidden-frames) Suite: 425 passed, 0 failed, 38 ignored.
fix(av1): a 1:4 intra strip in an inter frame publishes its TXFM_CONTEXT bandsAhmet Kaan Gümüş · d52f632
fix(av1): a 1:4 intra strip in an inter frame publishes its TXFM_CONTEXT bands libaom runs set_txfm_ctxs + txfm_partition_update for every block of an inter frame, intra ones included. The 2:1 and 16x4 intra-in-inter arms do that at their call sites; the 1:4 arms (decode_block_rect4 for 32x8/8x32, decode_block_rect64 for 64x16/16x64) keep their transform size inside and published nothing, so both neighbour bands stayed stale across the strip's footprint for the rest of the frame. Measured on a 2-frame cut of the 10-bit 1920x792 128-superblock stream: the HORZ_4 32x8 strip at mi(0,312) left left_txfm[0] at a stale 32 where libaom has 8, so the intra 8x16 block at mi(0,320) read tx_size_cat1 row 1 instead of row 0 -- same depth value, different CDF, range 39156 where aomdec has 54736. After the fix that superblock matches aomdec element for element and the cut walks to the known 128x64 intra-in-inter wall; with EC_INTRA128_IN_INTER=1 it decodes both frames (128x64=15) where it previously hit a Golomb-tail wall. Also adds y_mode/uv_mode/tx_depth EC_TRACE_MODE_STEP rungs to the rect intra-in-inter arm, which had none. Classes: tx-grid-published-block-side, early-return-skips-tail.
docs(inter128intra): r1 suite totals -- 424 passed, 1 pre-existing failure, 37 ignoredAhmet Kaan Gümüş · e15b305Browse files
docs(inter128intra): r1 report -- measurement, cross-decoder ladder, recipe sweep, film linesAhmet Kaan Gümüş · f3ec30dBrowse files
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
feat(av1): decode the 128-root HORZ/VERT half coded INTRA in an inter frame (opt-in, ungated)Ahmet Kaan Gümüş · 37c9fd7
feat(av1): decode the 128-root HORZ/VERT half coded INTRA in an inter frame (opt-in, ungated) The shape routes through the key frame's own proven body (decode_block_128rect: square TX_64X64 luma units, one TX_32X32 chroma unit per 64x64 mu chunk on the offset-10 txb_skip rows, per-TU prediction, Reach::of_tu mu-chunk rule, frame-edge write clip) with the three inter-frame differences: the mode-info read (INTRA_IN_INTER_MODE -> y_mode[3] -- size_group_lookup puts BLOCK_128X64/64X128/128X128 in group 3 -- plus the skip the inter caller already read), the tx_depth context (the real TXFM_CONTEXT bands via tx_size_context_txfm_rect against max_txsize_rect_lookup's TX_64X64, hence min(64)), and the set_txfm_ctxs publication an intra block of an inter frame makes. CfL (>32), filter intra (>32) and palette (>64) do not exist at this size and stay refused by name inside that body. OPT-IN ONLY (EC_INTRA128_IN_INTER=1): the named refusal is NOT lifted, because nothing proves the arm yet. The three 2 s cuts of the 10-bit 1920x792 128-superblock stream that reach this shape reach it AFTER a pre-existing entropy desync -- their frame 2 diverges from instrumented aomdec inside the superblock at mi(0,320), hundreds of blocks before mi(128,416) -- and three aomenc recipes (256x256 noise / static-band-plus-noise-strips, cq 20/32/45/55, --sb-size=128 --min-partition-size=64 --enable-rect-partitions=1 --kf-max-dist=100) produced zero 128-root HORZ/VERT halves in an inter frame at all. Default decode behaviour is byte-for-byte unchanged.
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.