forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 552edc4cede0dfd9bebbc4e344242802802d15cc

2026-09-02

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)
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 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
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üş · 99d520f
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.
debug(av1): EC_LFPARAMS rung + r4 report -- frame 1 of the pinned 192x68 stream reconstructs bit-exact, the mismatch is our deblock filtering 10x more edges than the oracleAhmet Kaan Gümüş · 85dc25f
debug(av1): EC_LFPARAMS rung + r4 report -- frame 1 of the pinned 192x68 stream reconstructs bit-exact, the mismatch is our deblock filtering 10x more edges than the oracle

The r3/charter premise (compound-prediction defect at mi(0,16)) is disproved: the
pre-filter dumps match exactly for frames 0 and 1; the postdeblock dumps differ by 7244
luma px. Levels ruled out by the new rung; suspects are the missing spec 7.14.2 skip /
pu_edge suppression in edge_params and the inter var-tx LF TU grid.
docs(av1): name the var-tx parent-side publish defect at its site, keep the shipped valueAhmet Kaan Gümüş · ff5d3c5
docs(av1): name the var-tx parent-side publish defect at its site, keep the shipped value

r3 proved the root cause of the straddling-band partition-ctx divergence (a var-tx
inter block is not always square: a superblock-level PARTITION_VERT strip is 32x64
with side == 64 and stamps the parent's 64 into the partition-context bands, so the
next superblock reads CDF row 0 where the oracle reads row 1) and reverts the fix:
all four variants -- true footprint in the record call, per-piece band republish,
parent-span band republish, and VERT-only -- take the straddling gate 3622 -> 3376
differing pixels AND turn two attempts of the 1:4 rect var-tx gate into the named
"non-skip rectangular strip needs rectangular residual coding" refusal, failing its
hit assert. `side` is not the parent bsize at every call site, so the band write
belongs in the partition arms; that is r4's job. Site comment records the finding,
lanes/mergefix-r3.report.md the ladders, variants and swept sites.
fix(av1): transform-unit top-right/bottom-left inside a block wider than 64Ahmet Kaan Gümüş · d1400b2
fix(av1): transform-unit top-right/bottom-left inside a block wider than 64

A block wider than 64 is coded in 64x64 "mu" chunks in raster order, so
libaom's has_top_right takes the column offset MODULO the chunk (plus the one
centre unit of a 128x128) and has_bottom_left grants the left edge of a
right-hand chunk what the already-coded left chunk holds. Reach::of_tu applied
the plain block-wide rule, so the last unit column of every chunk of a 128x64
intra block predicted from a chunk not yet reconstructed -- 375 wrong samples
per 128x64 block on a 512x512 key frame with the transform split.

Gate: a 512x512 arm (second 128 superblock column, high-frequency source,
--enable-tx-size-search=1) joins the sb128 intra_rect_block gate: 164 128x64 +
156 64x128 blocks, 294 of them at TX_16X16, 5 frames pixel-exact.
fix(av1): a var-tx inter block published its parent's side into the partition-context bandsAhmet Kaan Gümüş · aabeeaf
fix(av1): a var-tx inter block published its parent's side into the partition-context bands

The `vartx_leaves` branch of `decode_inter_block` called
`record_split_luma_rect_mi(at, side, side, ..)` on the premise that "a var-tx
block is always square". A superblock-level PARTITION_VERT inter strip is
32x64 with `side == 64`, so every such strip stamped 64 into
`above_side_mi`/`left_side_mi` instead of its own 32x64. The next superblock's
64-level partition context then read `above_side_mi*2 <= 64` as false and
picked CDF row 0 where libaom picked row 1.

Class `tx-grid-published-block-side` (7th instance). On the pinned 192x68 cq61
tile_cols=1 8-bit stream the 64x64 partition of mi(16,32) now enters and exits
at the oracle's ranges (ctx 0 -> 1, rng 51641 -> 38495, aomdec EC_PART ctx=13 =
bsl*4+1); the edge-straddling gate goes 3622 -> 3376 differing pixels. Residue
is a frame-1 reconstruction defect (mode and coefficient ladders of frame 1 are
now element-exact vs the instrumented oracle) -- see lanes/mergefix-r3.report.md.
fix(av1): the var-tx above/left txfm contexts were never reset at a tile boundary -- libaom re-inits above_txfm per tile (av1_zero_above_context) and left_txfm per superblock row (av1_zero_left_context) to 64, so at the first block of a second tile column our txfm_partition ctx read the previous tile's resolved transform size and picked the wrong CDF row; all 14 txfm_partition symbols of the 192x68 8-bit 2-tile-column gate stream now match the instrumented oracle in ctx and range, edge-straddling gate 6859 -> 3622 differing pixels (second defect open, see lanes/mergefix-r2.handoff.md)Ahmet Kaan Gümüş · 7bbea7c
fix(av1): the var-tx above/left txfm contexts were never reset at a tile boundary -- libaom re-inits above_txfm per tile (av1_zero_above_context) and left_txfm per superblock row (av1_zero_left_context) to 64, so at the first block of a second tile column our txfm_partition ctx read the previous tile's resolved transform size and picked the wrong CDF row; all 14 txfm_partition symbols of the 192x68 8-bit 2-tile-column gate stream now match the instrumented oracle in ctx and range, edge-straddling gate 6859 -> 3622 differing pixels (second defect open, see lanes/mergefix-r2.handoff.md)
fix(av1): rect tx-size context compared against the block side, not max_txsize_rectAhmet Kaan Gümüş · 606ff15
fix(av1): rect tx-size context compared against the block side, not max_txsize_rect

get_tx_size_context resolves the above/left transform sizes against
max_txsize_rect_lookup[bsize], which tops out at 64x64: a 64x128 or 128x64
block must compare against 64, never against its own 128 side. The rect helper
passed the raw block dimensions, so the right 64x128 half of a 128-root VERT
read the tx-depth symbol off CDF row 0 where libaom uses row 1 -- entropy
desync from that block on (326839/393216 bytes of a 512x512 key frame).
The square path already capped this way. After the fix the whole 5370-element
all_zero coefficient ladder of a 512x512 sb128 stream is identical to the
oracle's; the residual is reconstruction-only.
fix(av1): a 128-root block re-stamped its chroma entropy context from the whole-block grid and recorded a 64x128 var-tx block as 128x128 -- the mu-chunk DC sign of every unit but the top-left was lost (dc_sign_ctx 1 vs libaom 2 at the first chroma unit of the 64x128 edge block) and the next superblock's 128-root partition ctx read 16 vs 19; 192x256 sb128 8-bit inter stream goes 4-of-6 frames differing (36073 bytes) -> 6/6 bit-exact, new gate arm 46Ahmet Kaan Gümüş · 52c91bc
fix(av1): a 128-root block re-stamped its chroma entropy context from the whole-block grid and recorded a 64x128 var-tx block as 128x128 -- the mu-chunk DC sign of every unit but the top-left was lost (dc_sign_ctx 1 vs libaom 2 at the first chroma unit of the 64x128 edge block) and the next superblock's 128-root partition ctx read 16 vs 19; 192x256 sb128 8-bit inter stream goes 4-of-6 frames differing (36073 bytes) -> 6/6 bit-exact, new gate arm 46
feat(av1): the four AB partitions at the 128x128 superblock root, key and inter -- 128x64/64x128 half plus two 64x64 quadrants in libaom decode_partition's visit order, per-piece cdef unit and vert-AB reach; gate is RED on a pre-existing 512x512 128-rect VERT divergence proven independent of this armAhmet Kaan Gümüş · 9fbbf1a
feat(av1): the four AB partitions at the 128x128 superblock root, key and inter -- 128x64/64x128 half plus two 64x64 quadrants in libaom decode_partition's visit order, per-piece cdef unit and vert-AB reach; gate is RED on a pre-existing 512x512 128-rect VERT divergence proven independent of this arm
docs(mergefix): r1 handoff -- tx_depth neighbour-index fix, straddling-band first divergenceAhmet Kaan Gümüş · 9c6d151
docs(mergefix): r1 handoff -- tx_depth neighbour-index fix, straddling-band first divergence

Bisection over the five lane merges, the pinned streams, the first diverging
element for each red gate and the oracle instrumentation the second one needs.
feat(av1): decode an 8x8 intra leaf in an inter frame whose tx_depth splits it into 4x4 transform units -- refusal lifted, its EC_LEAF8TX_SPLIT bypass removed, and the gate that proves it now sweeps all 30 aomenc arms at both bit depths with one end-of-sweep counter assert; the gate's shipped recipe had --enable-tx-size-search=0 last, so the split it claims to cover fired 0 times before this commitAhmet Kaan Gümüş · ded6f5c
feat(av1): decode an 8x8 intra leaf in an inter frame whose tx_depth splits it into 4x4 transform units -- refusal lifted, its EC_LEAF8TX_SPLIT bypass removed, and the gate that proves it now sweeps all 30 aomenc arms at both bit depths with one end-of-sweep counter assert; the gate's shipped recipe had --enable-tx-size-search=0 last, so the split it claims to cover fired 0 times before this commit

Also: the OBMC sentinel unit test asserted the pre-merge refusal text, and two
refusal strings the rectchroma2 merge made stale are dropped from the inventory.
fix(av1): tx_size_context_txfm read above_inter/left_inter at SUB granularity, not miAhmet Kaan Gümüş · 4ee6fb6
fix(av1): tx_size_context_txfm read above_inter/left_inter at SUB granularity, not mi

`Neighbours::above_inter`/`left_inter` are written per mi cell by
`record_inter_rect_mi`, but `tx_size_context_txfm` indexed them with
`mi_c / (SUB / MI)` / `mi_r / (SUB / MI)` -- i.e. it asked a block two mi
away whether it was inter. libaom's `get_tx_size_context` lets an INTER
neighbour contribute its BLOCK size instead of its transform size, so
whenever that mis-indexed cell said "intra" while the true neighbour was a
var-tx-split inter block, the neighbour contributed its (smaller) split
transform size and the `tx_depth` symbol was read from CDF row 0 instead of
row 1 -- a silent entropy desync at the first intra-in-inter block whose
left/above neighbour split its transform.

Gate `a_real_aomenc_10bit_inter_sequence_with_a_split_transform_intra_block_decodes_pixel_exact`
(64x64 10-bit, seed 54) goes RED -> green: first diverging element was
frame 4 mi(4,12) `tx_depth val=1 ctx=0 rng=46620` vs the instrumented
aomdec's `ctx=1 cat=1 rng=51092`.
docs(av1): lane-pal8 r1 report + handoff (8x8-leaf palette lifted and gated; suite 401/1, one unattributed straddling-band failure)Ahmet Kaan Gümüş · ae334b6
docs(av1): lane-pal8 r1 report + handoff (8x8-leaf palette lifted and gated; suite 401/1, one unattributed straddling-band failure)
Merge branch 'lane-kf900' (5a28354): intrabc chroma tx_type and palette neighbour bandsAhmet Kaan Gümüş · 11a8d8e
Merge branch 'lane-kf900' (5a28354): intrabc chroma tx_type and palette neighbour bands

Chroma transform units under intrabc inherit the luma tx_type; palette
neighbour bands are recorded per mi. Clean merge, no conflicts.

Gates: intrabc (7 arms) / rect_strip_palette / palette / refusal_inventory /
gate_coverage / base_ctx_rect_offsets -- 23 passed. Both
split_transform_intra_block arms are green again; only
a_frame_edge_straddling_band_decodes_pixel_exact remains red (known
cross-product, mergefix lane).

Merged at r6 (5a28354) and NOT retired: the lane's r7 round is still running
in its worktree.
Merge branch 'lane-sbab' (1847e97): superblock-level inter AB partitionsAhmet Kaan Gümüş · 959902b
Merge branch 'lane-sbab' (1847e97): superblock-level inter AB partitions

Lifts the 64-level inter AB refusal (HORZ_A/HORZ_B/VERT_A/VERT_B: two 32x32
inter squares plus one true 64x32/32x64 strip) and writes the var-tx side
bands from write_w/write_h. Conflicts resolved keeping main's newer refusal
list minus the SB-level AB entry this lane lifts, and both probe counters.

Gates: inter_ab64 / sb_level_ab / superblock_level_rect_partition /
refusal_inventory / gate_coverage / base_ctx_rect_offsets -- 16 passed.

Known vacuity (accepted, as chartered):
real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal
now reds on its FIRING assert only -- 0 refusals, 0 mismatches, 0 rectangular
var-tx leaves reached; the lane's earlier neighbour-band fix makes attempts
refuse earlier. Pending lane-inter16ab r7.
fix(av1): tx_size ctx read above_inter/left_inter at mi/4, so an intra neighbour whose tx_depth split to 4x4 read as an inter neighbour contributing its block size -- ctx 1 vs libaom's 2 at one block, adapting the wrong tx_size_cat0 row and desyncing the next tx_depth read; the pinned 10-bit split-leaf stream now decodes pixel-exactAhmet Kaan Gümüş · 5cb1524
fix(av1): tx_size ctx read above_inter/left_inter at mi/4, so an intra neighbour whose tx_depth split to 4x4 read as an inter neighbour contributing its block size -- ctx 1 vs libaom's 2 at one block, adapting the wrong tx_size_cat0 row and desyncing the next tx_depth read; the pinned 10-bit split-leaf stream now decodes pixel-exact

Also traces the `br` rung of the square coefficient path (`EC_COEFF_STEP
tag=br`), without which the cross-decoder range ladder is blind to every
base-range symbol and mis-attributes the first divergence.
Merge branch 'lane-uv8' (7f372b9): non-DC chroma modes on 8x8 intra leaves in inter framesAhmet Kaan Gümüş · ef5fdd5
Merge branch 'lane-uv8' (7f372b9): non-DC chroma modes on 8x8 intra leaves in inter frames

txbset_for replaces the hardcoded Luma8 set. Conflicts resolved to main's
side: main's newer OBMC refusal wording (the string the decode path actually
emits) and its EC_TRACE_PART ordering; the lane's older refusal list entries
were all lifted on main already.

Gates: uv_mode_in_inter8 / non_dc_chroma / refusal_inventory / gate_coverage /
base_ctx_rect_offsets -- 17 passed. The two known cross-product reds are
unchanged (a_frame_edge_straddling_band, 10bit split_transform_intra_block).
Merge branch 'lane-reelckf2' (6fc8bab): loop-restoration stripe counters and their gatesAhmet Kaan Gümüş · e0d4def
Merge branch 'lane-reelckf2' (6fc8bab): loop-restoration stripe counters and their gates

Clean merge, no conflicts.

Gates: partial_bottom_stripe / restoration / refusal_inventory /
gate_coverage / base_ctx_rect_offsets -- 21 passed. The two known
cross-product reds carried from the sb128c merge are unchanged
(a_frame_edge_straddling_band, 10bit split_transform_intra_block).
Merge branch 'lane-sb128c' (4e65b8a): the 128 partition root's inter arms and gathered 128 edgesAhmet Kaan Gümüş · ec3d792
Merge branch 'lane-sb128c' (4e65b8a): the 128 partition root's inter arms and gathered 128 edges

Inter 128x128 NONE roots, intra-128-in-inter, and the gathered-edge HORZ/VERT
128x64 / 64x128 blocks, with the 17-row MOTION_MODE/OBMC tables and
has_top_right size-half gating. Conflicts resolved keeping both sides
everywhere they added; main's NOCFL counter kept over the lane's identical
is_cfl_allowed fix, the lane's skip-inter-128 loop-filter suppression kept, and
the chroma tail is now `!has_chroma` / `side > 64` / `rect_tu` in that order.
cdf.rs NZ_MAP*/FILTER_INTRA* unchanged (only OBMC/MOTION_MODE go 14 -> 17 rows).

Gates: 128x128 / superblock / gathered_edge_horz / ab_partitions /
free_partitions / 1to4_streams / mvstack:: / refusal_inventory /
gate_coverage / base_ctx_rect_offsets -- 75 passed, 0 failed, 1 ignored.

Known cross-product reds carried into this tree (owned by the mergefix lane,
reported by the batch coordinator on an equivalent merged tree):
a_frame_edge_straddling_band_decodes_pixel_exact and
a_real_aomenc_10bit_inter_sequence_with_a_split_transform_intra_block_decodes_pixel_exact.
Merge branch 'lane-mc64' (2be1f92): pinned 192x128 stream with a 64x64 intra block in an inter frameAhmet Kaan Gümüş · 361f8be
Merge branch 'lane-mc64' (2be1f92): pinned 192x128 stream with a 64x64 intra block in an inter frame

Adds crates/ec-av1/fixtures/av1_192x128_8bit_intra64_in_inter.obu and its gate,
plus the EC_MC_TRACE rung. Conflicts: kept main's per-var dump_stage_idx over
the lane's single-counter stage_dump_idx, and main's sub-8x8 strip chroma
footprint (the lane branched before it) with the lane's MC trace line.

Gates: pinned_rect_stream (1), refusal_inventory (3), gate_coverage (9),
base_ctx_rect_offsets (1) -- 14 passed, 0 failed.
fix(av1): an 8x8 intra leaf ignored the use_intrabc it had just readAhmet Kaan Gümüş · 68ca7c5
fix(av1): an 8x8 intra leaf ignored the use_intrabc it had just read

decode_leaf8 consumed use_intrabc and its DV through read_intra_mode and
then decoded the block as ordinary intra: it read the luma tx_type off the
7-symbol TX_SET_INTRA_1 row where libaom reads the 16-symbol
EXT_TX_SET_ALL16 (is_inter_block counts is_intrabc_block, blockd.h:373), so
the msac range diverged at the next symbol with no refusal -- invisible in
the r6 residue because the block sat in the frame's LAST superblock.

The leaf now mirrors decode_block: inter ext-tx set, BILINEAR prediction from
the current frame's pre-filter reconstruction at the DV (skip and non-skip),
chroma tx_type inherited from the coded luma type and DISARMED after the V
read (leaving it armed leaked into every later chroma block: 320 chroma
samples, luma exact), an inter-skip tx size under TxMode::Select (unskipped
is refused with decode_block's existing string), and record_intrabc_mi so a
later DV's MV stack sees the leaf.

Gate: a_real_aomenc_screen_key_frame_reads_use_intrabc_on_rect_strips arm 8
"testsrc2-cq55-leaf8" (rect and 1:4 partitions off, palette on, tx-size-search
off) with a hard per-arm leaf8_intrabc_hits assert and a gate-wide vacuity
assert; 256x192 8-bit screen stream goes 320 wrong chroma samples + an entropy
desync -> whole frame identical to ffmpeg. Full suite still owed (handoff).