Commits
Commits on
7fe18316f7927efcb1e358ef4f77bf00c9f31edd2026-09-02
docs(av1): lane-t900 r8 handoff -- inter blocks never stamped the mode maps, plus the open one-sample and frame-49 itemsAhmet Kaan Gümüş · 7fe1831Browse files
fix(av1): an inter block never stamped the luma/chroma mode maps, so a later intra block's edge-filter type fell back to a stale SMOOTH modeAhmet Kaan Gümüş · cb1dc1f
fix(av1): an inter block never stamped the luma/chroma mode maps, so a later intra block's edge-filter type fell back to a stale SMOOTH mode
`get_intra_edge_filter_type` (spec 7.11.2, libaom `reconintra.h`'s
`is_smooth`) reads the above/left neighbour's `mode` (luma) and `uv_mode`
(chroma). For an INTER neighbour libaom answers "not smooth" by
construction: `mbmi->mode` holds an inter mode (>= NEARESTMV) and
`is_smooth(mbmi, plane > 0)` returns 0 outright ("uv_mode is not set for
inter blocks"). Our mi-exact mode maps were written only by intra paths,
so an intra block whose neighbour was an 8x8 inter leaf found no mi entry
and fell back to the coarse SUB-row band -- which still held a SMOOTH
mode from an earlier block in that pixel row. The directional edge filter
then ran at strength 3 where libaom uses 2, and `use_intra_edge_upsample`
can flip with it.
`record_inter_rect_mi` now stamps DC_PRED into both maps for every inter
block. New counter `inter_neighbour_not_smooth_hits` counts the reads
where the coarse band would have said SMOOTH and the mi-exact map does
not; the 128-SB inter witness gate asserts it (375 hits, still pixel-exact
on all 15 shown frames). The square-block `OUR_PRED` trace now prints
`ft=` like the rect one, which is what localised this.
Decode-order compare against aomdec on a 10-bit 1920x792 125-frame cut:
frame 11 luma+U now exact (was 28 luma / 3 U samples off), whole-cut
differing bytes 18108 -> 12780.Merge branch 'lane-t900' (19f7af9a): sub-8x8 inter chroma inherits the chroma-reference sub-block's tx_type; 128-SB witness extended to 16 decode framesAhmet Kaan Gümüş · f6360d3Browse files
docs(av1): lane-t900 r7 handoff -- instruments, extended witness, and the one-sample frame-41 residueAhmet Kaan Gümüş · 0f359c0Browse files
docs(av1): lane-t900 r7 report -- sub-8x8 chroma tx_type from the chroma-reference sub-block, extended witness, film frontierAhmet Kaan Gümüş · 18a7ed3Browse files
fix(av1): a sub-8x8 inter group's chroma inherits the CHROMA-REFERENCE sub-block's tx_type, not the first sub-block'sAhmet Kaan Gümüş · 3898141
fix(av1): a sub-8x8 inter group's chroma inherits the CHROMA-REFERENCE sub-block's tx_type, not the first sub-block's `av1_get_tx_type` (libaom `av1/common/blockd.h:1291-1305`) scales the chroma transform's `blk_row`/`blk_col` back by the subsampling and indexes `xd->tx_type_map` -- which `set_mi_offsets` (`av1_common_int.h:1679`) re-points to the CURRENT sub-block's mi. For a sub-8x8 group the current block at the chroma read is the chroma-reference (last) sub-block, so the group's one 4x4 chroma unit per plane inherits THAT sub-block's first transform unit's tx_type. Both sub-8x8 inter paths took the group's FIRST sub-block instead. No chroma tx_type symbol is coded, so the entropy stream stayed perfectly in sync and the defect only inverted a chroma unit on the wrong basis: on the 10-bit 1920x792 128-superblock stream, decode-order frame 14 differed in exactly 14 U pixels inside one aligned 4x4 chroma TU (V exact -- its unit was all_zero), where instrumented aomdec reads tx_type=7 (ADST_FLIPADST, the bottom 8x4 sub-block's own) and we read DCT_DCT (the top 8x4 sub-block was skip). New counter `sub8_chroma_tx_from_ref_hits` counts the groups that tell the two rules apart: chroma-reference tx_type != first sub-block's AND the chroma unit codes coefficients. The 128-SB witness fixture is extended from 19 to 23 frame-carrying OBUs (14 -> 16 decode-order frames, 12 -> 15 shown, 177773 bytes, sha256 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc, two independent cuts hash identically) so the gate covers frame 14, and it hard-asserts the new counter (2 hits) alongside the eight it already had.
Merge branch 'lane-t900' (d650227f): six inter-frame fixes for the 10-bit 1920x792 128-SB stream (intra-in-inter tx ctx + txfm bands, non-chroma-ref contexts, rect interintra, mi-exact edge filter, per-plane warp bail-out, cdef_transmitted per 64x64 unit), pinned 14-frame witness, intra 16x4-in-inter liftedAhmet Kaan Gümüş · 873b00aBrowse files
docs(av1): lane-t900 r6 handoff -- suite lines, the pinned 128-SB witness, and the frame-14 chroma transform-basis residueAhmet Kaan Gümüş · 8a5213bBrowse files
docs(av1): lane-t900 r6 report -- the 128-SB inter witness, the lifted 16x4-in-inter opt-in, and the frame-14 U-only transform residueAhmet Kaan Gümüş · da08706Browse files
test(av1): pin the 10-bit 1920x792 128-superblock inter witness and lift the intra 16x4/4x16-in-inter opt-inAhmet Kaan Gümüş · 27cd698
test(av1): pin the 10-bit 1920x792 128-superblock inter witness and lift the intra 16x4/4x16-in-inter opt-in `fixtures/reelc_sb128_inter_witness.obu` (166303 bytes, sha256 1191ce80e2c6c5855eaf7a8f5e8cda2cdf809f467b0dbc5e26df96dfa6b2c8bd) is the first 19 frame-carrying OBUs of a 2 s cut of a 10-bit 1920x792 AV1 stream with `use_128x128_superblock=1`: 14 decode-order frames, 12 shown. Cut twice independently from the source; both cuts hash identically. All 14 decode-order frames are byte-exact against instrumented aomdec (`EC_AV1_FINAL_DUMP`) and all 12 shown frames pixel-exact on every plane against ffmpeg. It is the first stream here that decodes exactly while the paths of the five defects this lane found in r2-r5 all fire, so the gate `a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact` hard-asserts every one: warp_plane_suppress=15, cdef_idx=763, inter_sb128_vert=68, interintra_rect=118, non_chroma_ref_ctx_skip=163, intra_in_inter_txctx=1946, edge_filter_mi_fix=195. Three of those counters are new (the r2 in-inter tx-depth context, the r3 non-chroma-reference context skip and the r4 mi-exact intra-edge-filter neighbour pair shipped with none). REFUSAL LIFTED: the `EC_INTRA16X4_DECODE` opt-in over an intra 16x4/4x16 strip in an inter 1:4 partition is gone. lane-wit16x4 r1 re-widened that refusal because r3's witness counters were phantoms of a desync (`counter-from-refused-stream`); here the arm fires 78x 16x4 + 149x 4x16 (108 chroma-paired) inside frames that are decoded AND compared exact. The named refusal itself stays for a strip with no chroma-pair record. The 128x64/64x128 intra-in-inter arm fires 0 times on this stream, so its opt-in is untouched.
docs(av1): lane-t900 r5 handoff -- per-plane warp bail-out and the 128-root second half's cdef literalAhmet Kaan Gümüş · 798ed37Browse files
refactor(av1): one warp_plane_allowed() gate for the per-plane 8px bail-out, with a hit counterAhmet Kaan Gümüş · 3aa99eb
refactor(av1): one warp_plane_allowed() gate for the per-plane 8px bail-out, with a hit counter The five chroma and three luma warp call sites now route their `av1_init_warp_params` bail-out through one helper that counts every suppression, so a gate can prove a stream really carries the shape (the square `side`/`chroma_side` can be 8 while the plane's own block is 4 wide). No behaviour change: the conditions are the ones the previous commit installed. Re-measured after the refactor -- the 2-frame cut stays exact on both frames, and the 16-frame cut stays exact on decode-order frames 0..13 (14 and 15 unchanged at 14 / 24 differing bytes).
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.