forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 00c1b3ff2d80d84fef71bb6208110dedbbd95fc4Filtered to crates/ec-av1/src/refusal_inventory.rsClear filter

2026-09-04

test(av1): enumerate the superblock-root partition alphabet against its armsAhmet Kaan Gümüş · 00c1b3f
test(av1): enumerate the superblock-root partition alphabet against its arms

The key-frame superblock root's `match part` carries the refusal "a
superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4"
in its fallback arm. `part` is either a `partition_w64` symbol (ten values,
`symbol` cannot return more) or, at a frame edge, one of the three gathered
outcomes HORZ/VERT/SPLIT -- all inside that same alphabet. The existing
arm enumerator already walks matches keyed by their own fallback string, so
this is one entry: the match has an arm for all ten values, and the refusal
is dead. Mutation-checked (dropping PARTITION_VERT_4 from its arm fails the
test by name).
docs(av1): census the 128-root screen-content strip refusal (site B, r23)Ahmet Kaan Gümüş · f79247a
docs(av1): census the 128-root screen-content strip refusal (site B, r23)

Its premise is already false by the spec -- 5.11.46 codes palette only for
`Block_Width <= 64 && Block_Height <= 64`, so a 128x64/64x128 half consumes no
palette syntax and `allow_screen_content_tools` changes nothing about it -- but
6 aomenc encodes at `--sb-size=128 --tune-content=screen` (704x320, the
edge-forced size r18 proved for the non-screen twin; screen cell content at cq
10/20/40 and r18's own panning-texture-plus-fresh-ramp shape) code ZERO
128-root halves of any kind, so there is nothing to gate a lift with and the
refusal stays with its census written down.
feat(av1): reconstruct palette blocks on 8x8 leaves inside inter framesAhmet Kaan Gümüş · cdef95e
feat(av1): reconstruct palette blocks on 8x8 leaves inside inter frames

`decode_inter_block8`'s intra arm read `palette_y_mode`/`palette_uv_mode` off
hardcoded CDF row 0 and refused the moment either said "yes". It now reads the
whole `read_palette_mode_info` syntax with this leaf's REAL
`av1_get_palette_mode_ctx` and colour cache, decodes both colour-index maps
after the mode info (`av1_visit_palette`) and predicts from them through the
existing PALETTE_PRED slot, per transform unit when the leaf's `tx_depth`
splits -- the same shape the >=16 intra-in-inter block already ran.

A palette block on an 8x8 leaf also made a pre-existing hole in the palette
neighbour bands reachable: a sub-8x8 group published nothing, so the row's
`left_palette_size` kept an earlier 8x8 palette block's size and
`av1_get_palette_mode_ctx` read 1 where libaom gathers 0 (decode-order frame
1, mi(30,30): palette size decoded as 8 instead of 2). All three sub-8x8
tails now publish the all-zero state, as does `decode_inter_block8`'s own
compound early return (class early-return-skips-tail). New rung `EC_PALPUB=1`
prints every publication into those bands, which is what named the gap.

Gate `a_screen_stream_with_palette_8x8_leaves_in_inter_frames_decodes_pixel_exact`:
15 frames pixel-exact on every plane vs ffmpeg, 25 palette-Y and 12
palette-UV 8x8 leaves inside inter frames -- exactly the 25 `bsize=BLOCK_8X8
palette_size>0` blocks aomdec's `EC_PALSYN` counts past the key frame.

The `(UV)` refusal string is gone from the decoder entirely (this leaf was its
only site); the `(Y)` one survives only as the defensive `palette.is_none()`
guard no caller can reach.
feat(av1): reconstruct palette blocks inside inter frames, and fix the palette colour-index CDF counter resetAhmet Kaan Gümüş · 6a16223
feat(av1): reconstruct palette blocks inside inter frames, and fix the palette colour-index CDF counter reset

An intra block in an inter frame refused by name the moment it actually used
a palette ("reconstruction is out of scope"), at both the square
(`decode_inter_block`) and the rect (`decode_intra_rect_in_inter`) path. Both
now read the real syntax -- mode/size/colours off this block's own
`av1_get_palette_mode_ctx` context and `av1_get_palette_cache` colour cache,
the two colour-index maps deferred past `filter_intra` exactly as
`av1_visit_palette` runs them -- and predict from the map (per transform unit
where the luma transform splits), the same machinery the key-frame paths use.
Every block of an inter frame now also stamps its palette state (all-zero for
an inter block) into the mi-granular neighbour bands, which is what libaom's
mode-info grid holds and what the next block's cache and mode context read.

The witness then desynced at the FIRST inter-frame palette block's colour
index map, third symbol: the two palette colour-index tables are this
decoder's only variable-alphabet CDFs (the reader takes `[..=n]` of a
`[u16; 9]` row, so `update_cdf`'s symbol counter lives at index `n`), and
`Cdfs::reset_counts` zeroed the array's last slot instead. Every colour-index
row therefore crossed a frame boundary with a saturated count and adapted at
rate 6 where libaom, counting from zero, adapts at 4 (class
cdf-counter-not-reset). Swept: those two are the only `[..=n]` readers here.

Also lifted, as a stale premise: the 16x4/4x16 arm of "a HORZ/VERT intra strip
in a screen-content frame (palette syntax is consumed for square blocks
only)" -- that arm routes through `decode_rect4_16_strip`, which takes
`allow_screen_content_tools` and reads the whole palette syntax already. The
128-root arm keeps the refusal (its body reads none, and no --sb-size=128
screen witness exists).

Gates (aomenc --tune-content=screen --enable-palette=1 --enable-intrabc=0
--sb-size=64, 15 frames, key + inter, 8-bit and 10-bit twins):
a_real_aomenc_screen_stream_with_palette_blocks_decodes_pixel_exact and
a_screen_stream_with_16x4_intra_strips_in_inter_frames_decodes_pixel_exact --
all 15 frames byte-exact vs ffmpeg on every plane, with inter-frame palette
counters y/uv > 0 so neither gate is vacuous.
test(av1): enumerate the 128-root partition alphabet too, keyed by the refusal itselfAhmet Kaan Gümüş · 5b764e4
test(av1): enumerate the 128-root partition alphabet too, keyed by the refusal itself

The 32x32 enumeration generalises: find each partition match by the refusal
in its own fallback arm rather than by line number, expand inclusive-range
patterns (the four AB shapes at the 128 root are one guarded arm), and check
the arms against the alphabet that match's CDF codes -- eight symbols for
partition_w128, ten for partition_w32. A mutation run that narrowed the AB
range to VERT_A reported the missing value.
feat(av1): code the palette syntax on a rect intra strip inside a screen-content inter frameAhmet Kaan Gümüş · 7ee6680
feat(av1): code the palette syntax on a rect intra strip inside a screen-content inter frame

read_palette_mode_info has no square-only term: a --tune-content=screen
inter frame writes palette_y_mode (and palette_uv_mode) for every block
whose shape palette_bsize_ctx_wh admits, intra strips included. The inter
path's intra arm skipped both symbols and refused the whole case by name,
and a real stream reaches that refusal -- measured with decode_probe on
testsrc2 256x192 --tune-content=screen --enable-palette=0
--enable-intrabc=0: an 8x16 strip at 8-bit, a 16x8 one at 10-bit.

The 2:1 reader now codes the syntax itself (mode context 0 and no cache:
no block this decoder produces can USE a palette, and the arms it shares
with the key-frame path refuse that by name), and the 1:4 arm goes through
read_intra_mode_rect, which already did. Both arms of the new gate decode
ten frames pixel-exact against ffmpeg with 63 strips counted each.

Six earlier encodes with the palette SEARCH on never reach an inter frame
at all: the key frame stops on the separate palette-reconstruction refusal
first (class refusal-hides-a-defect).
test(av1): enumerate the var-tx leaf domain against the two too-large-leaf refusalsAhmet Kaan Gümüş · 8f932d5
test(av1): enumerate the var-tx leaf domain against the two too-large-leaf refusals

read_var_tx_size emits a leaf only as the unit it entered with or a
sub_tx_size_map step below it, so the reachable leaf set of an entry never
exceeds that entry. Both callers enter at or below their own ceiling; the
single exception -- a 64px block entering at TX_64X64 under a 32 ceiling --
is one unit whose only above-ceiling leaf is the whole block, i.e. exactly
the `single` case each refusal is guarded by.
test(av1): enumerate the 32x32 partition alphabet against the arms that code itAhmet Kaan Gümüş · 34574f5
test(av1): enumerate the 32x32 partition alphabet against the arms that code it

partition_w32 is a ten-symbol CDF and symbol_fixed cannot return outside
0..nsyms, so PARTITION_NONE..=PARTITION_VERT_4 is the whole domain of
part32. Both matches -- intra and inter -- carry an arm for each value, so
neither trailing refusal is reachable. They stay in the code (part32 is a
usize, the match needs a fallback, and a named refusal beats a panic) with
the enumeration as their proof.

The arm scan is token-exact on purpose: a mutation run that renamed one arm
constant passed a substring version, because a misspelled constant in a
pattern position is an irrefutable binding that compiles and swallows the
alphabet.
test(av1): register the 12-bit and intrabc-on-rect-strip proofs in the refusal inventoryAhmet Kaan Gümüş · 0c4727a
test(av1): register the 12-bit and intrabc-on-rect-strip proofs in the refusal inventory

Both gates already existed -- one negative (a hand-built 12-bit sequence
header is refused by that exact string), one witness (a real aomenc screen
key frame reaches intrabc on a rect strip) -- but neither was named as the
proof of its refusal, so the inventory's numerator undercounted.
test(av1): prove the rect transform table/scan refusals over the measured shape domainAhmet Kaan Gümüş · 517f8b4
test(av1): prove the rect transform table/scan refusals over the measured shape domain

Refusal D is three arms -- rect inter luma set, its chroma sibling and the
rect scan table. Each is enumerated against the block-shape census over the
shapes it is actually handed: the block footprint, the 4:2:0 chroma unit
(the pair's 8x4/4x8 for a 1:4 strip), the rectangular var-tx leaves
(sub_tx_size_map[TX_16X4] == TX_8X4) and the min(w,32) x min(h,32) coded
corner, whose 32x32 case goes through the square reader instead. All 12
rect census shapes below 128 px are covered, so none of the three can fire
for a shape a real stream presents.
test(av1): census-prove the intra 16x4/4x16 chroma-pairing refusal unreachableAhmet Kaan Gümüş · 48ada7f
test(av1): census-prove the intra 16x4/4x16 chroma-pairing refusal unreachable

Refusal C fires for an intra footprint with a side below 8 that carries no
chroma-pair record. The census says the only sub-8 footprints three real
streams present are the 16x4/4x16 strips of a 16x16-level 1:4 partition, and
that caller sets INTER_STRIP_CHROMA for every one of its four strips before
the block is decoded; the sibling counter shows the SUPPORTED path firing
16x4=337 4x16=580 (439 chroma-paired) inside streams that decode with no
refusal at all.
test(av1): prove the intra-in-inter size-group refusal names a shape no stream presentsAhmet Kaan Gümüş · 86c64ab
test(av1): prove the intra-in-inter size-group refusal names a shape no stream presents

Refusal B ("an intra-coded {bw}x{bh} block on the inter block path") sat on a
match whose reachable domain nothing checked; after r18 lifted the 128 halves
its measured arrivals all take an earlier branch. The match is now
`intra_in_inter_size_row`, and a test enumerates it against the block-shape
census: `decode_intra_rect_in_inter` has one call site (`write != side`), a
sub-8 footprint is either the 16x4/4x16 strip16 branch or refused there, a
128-px one returns from the 128-root branch, so the lookup can only ever see
the ten rectangular census shapes with 8 <= min side and max side <= 64 --
each of which has a row.
test(av1): census-prove the rect-residual refusal unreachable over three real streamsAhmet Kaan Gümüş · 81b0ef9
test(av1): census-prove the rect-residual refusal unreachable over three real streams

Refusal A ("a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs
rectangular residual coding") was an unmeasured claim about a SHAPE.
`inter_piece!` sets `reject_residual` only when the block's true footprint
differs from its square CDF context, so the refusal needs a footprint that is
both non-square-in-context and missing from `rect_inter_residual_supported`.

`INTER_BLOCK_SHAPES` + `inter_block_shape_mask()` record every
`(side, write_w, write_h)` triple decoded on the thread (bit 31 = a triple the
table does not list, so the gate is a census and not a restatement of itself).
Three real streams present exactly 18 triples -- four square ones, where
`reject_residual` is false, and all fourteen rectangular AV1 block shapes,
every one of them covered by the residual table.

Also adds `PROVEN` to the refusal inventory: which refusals have a proving
witness or census test, printed as the inventory's numerator.
test(av1): un-ignore 9 green gates whose ignore reasons were stale; reword 3 zero-firing gates; drop dead opt-in mentionsAhmet Kaan Gümüş · 8a26589
test(av1): un-ignore 9 green gates whose ignore reasons were stale; reword 3 zero-firing gates; drop dead opt-in mentions

The 9 gates were ignored for defects/refusals that no longer exist on this
tip; all 9 pass with their assertions untouched. The 3 gates whose recipe
never fires the feature keep the attribute with the measured reason
(class gate-blind-to-feature). Comment mentions of two decode opt-ins that
were lifted now state the present default-on path and its gate.

2026-09-02

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.
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): 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.
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.
feat(av1): the 32x32-level 1:4 inter strip codes its rectangular residual (32x8/8x32)Ahmet Kaan Gümüş · 0f5742b
feat(av1): the 32x32-level 1:4 inter strip codes its rectangular residual (32x8/8x32)

MEASURED first: an env-gated print at the refusal site (EC_RECTRES=1) on both
10-bit 3840x1608 film cuts and four offsets of the 10-bit 1920x792 stream gives
6/6 refusals at w=32 h=8 or w=8 h=32, non-skip, inter -- nothing else. The
64-axis shapes the charter expected were already supported and never fire.

TX_32X8 codes all 256 positions. New TxbSet::LumaRect32x8Inter = the intra
LumaRect32x8 tables (get_txsize_entropy_ctx = TX_16X16, txsize_log2_minus4 = 4)
plus a tx_type table the intra twin has none of: av1_get_ext_tx_set_type at
tx_size_sqr_up == TX_32X32 is EXT_TX_SET_DCT_IDTX for inter with or without
reduced_tx_set, read at the txsize_sqr_map[TX_32X8] == TX_8X8 row. Chroma pair
is one 16x4/4x16 unit (ss_size_lookup[BLOCK_32X8] = BLOCK_16X4) = Chroma8's
tables. Scans, sub_tx_size_map[TX_32X8] = TX_16X8 var-tx leaves and the rect
coefficient reader were already shape-general.

Gate a_real_aomenc_inter_sequence_with_32x32_level_1to4_strips_codes_their_rect_residual:
real aomenc, --enable-1to4-partitions=1 --enable-tx-size-search=1
--min-partition-size=8 --max-partition-size=32, 16 attempts x 8/10-bit, both
orientations, every decode-order frame Y/U/V vs ffmpeg, oos_mismatch == 0, one
hard assert per lifted shape on the PIXEL-COMPARED counter: 32x8=7 8x32=8,
0 refusals, 0 mismatches. A 72-run recipe sweep found that only 32-pixel motion
bands at cq >= 48 make aomenc code a NON-SKIP strip; narrower bands give the
same partition with skip set and prove nothing about the residual.

Film frontier: the 10-bit 3840x1608 cut still shows 33 frames -- the gain is
inside frame 34, which now codes a 32x8 residual unit and stops on a different
wall (an intra 16x4/4x16 strip inside an inter 16x16-level 1:4 partition). All
six cuts moved to that same next refusal. The rect64 refusal is NOT lifted: the
clean prefix reports rect64_corner_tu 0/0, so no witness exists yet.
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
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.
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.
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-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-inter16ab' (2e711e1): 16-level inter 1:4 arms and rectangular wedge codebooksAhmet Kaan Gümüş · 305b01a
Merge branch 'lane-inter16ab' (2e711e1): 16-level inter 1:4 arms and rectangular wedge codebooks

Rect compound_type/wedge_idx CDF rows keyed by the block's true (w,h), the
8x4/4x8 inter coefficient sets, and the hgtw/hltw rectangular wedge codebooks
(288-entry libaom enumeration pinned at lanes/wedge_libaom.expected.txt).

Conflict resolution: the lane and main had each landed the same
BLOCK_SIZES_ALL row fix under different names -- kept the lane's
bsize_all_index / wedge_used_bsize / is_any_masked_compound_used_here and
deleted main's duplicates (main's wedge_used_wh wrongly listed 16x64/64x16,
which have no wedge codebook in libaom). The TxbSet 8x4-inter variants were
also duplicated: kept main's names, dropped the lane's identical twins. Main's
non-square COMPOUND_WEDGE refusal, auto-merged into the lane's lifted code,
removed.

Gates: wedge (1), interintra_wedge (2), rectangular_compound_wedge (1),
16x16_level_1to4 (1), 16x16_level_ab (1), 1to4 family (7),
refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1) -- pass.
feat(av1): intra 128x64/64x128 at the 128 superblock root -- rect intra block with per-TU prediction, mu-chunk chroma, and a frame-edge write clipAhmet Kaan Gümüş · 603f865
feat(av1): intra 128x64/64x128 at the 128 superblock root -- rect intra block with per-TU prediction, mu-chunk chroma, and a frame-edge write clip

The key-frame path refused the 128 root's HORZ/VERT arm by name (r7). It now
decodes one BLOCK_128X64 (or 64x128) per half through decode_block_128rect:
two-or-more SQUARE luma transform units (max_txsize_rect_lookup caps at
TX_64X64), one 32x32 chroma unit per 64x64 mu chunk per plane on the
offset-10 txb_skip rows, per-TU prediction in raster order, one cdef_idx per
half fanned over the CDEF units it covers.

PlaneBuf::reconstruct/reconstruct_rect now clip at the padded frame edge: our
buffer is 32-aligned while libaom's is superblock aligned, and a 64x64 unit of
a bottom-edge 128x64 block indexed one row past a 1080p buffer -- two panics
on real 10-bit 1920x792 extracts.

Gate: a_real_aomenc_sb128_intra_rect_block_decodes_pixel_exact, 5 real aomenc
streams (8+10 bit, HORZ and VERT, cq 8..55), every decode-order frame
pixel-exact vs aomdec, 96 intra 128-rect blocks.
Merge branch 'lane-edgeboth' (6be7343): 16-level both-axes-cut nodes decode as a forced SPLITAhmet Kaan Gümüş · fa9efb8
Merge branch 'lane-edgeboth' (6be7343): 16-level both-axes-cut nodes decode as a forced SPLIT

libaom decode_partition reads NO partition symbol when neither has_rows nor
has_cols holds; this decoder refused that corner at the 16 level. Conflicts in
decode.rs (two lanes each adding an edge-strip counter) and refusal_inventory.rs
resolved by keeping both sides and dropping only the two both-axes refusals the
lane lifted.

Gates: both_axes_cut (1), refusal_inventory (3), gate_coverage (9),
base_ctx_rect_offsets (1) -- 14 passed, 0 failed.
Merge branch 'lane-intersub8' (a5b9770): sub-8x8 inter partitions (SPLIT, HORZ, VERT) lifted and gatedAhmet Kaan Gümüş · 89682ac
Merge branch 'lane-intersub8' (a5b9770): sub-8x8 inter partitions (SPLIT, HORZ, VERT) lifted and gated

The "an inter partition below 8x8" refusal is gone: the sub-8x8 inter arms decode,
with the CDEF skip band for the 8x4/4x8 pair, and are gated at both bit depths.
Four narrower refusals take its place (intra 4x4 / 8x4 / 4x8 inside the sub-8x8
split, sub-8x8 under a scaled reference, COMPOUND_WEDGE on a non-square block).

Merge resolution: this lane's compound-8x8-leaf interp read is DROPPED -- lane-interp3
landed the same read with the is_nontrans_global_motion suppression term, and keeping
both would have read the switchable_interp symbol twice. The lane's palette-on-1:4
refusal is not carried (lane-kf900 lifted that shape). Trace rungs from both sides kept.

Gates: sub8x8_inter (1), dual_filter_obmc_8x8 (1), obmc (5), refusal_inventory (3),
gate_coverage (9), base_ctx_rect_offsets (1) -- all pass.
Merge main 1176a16 into lane-leaf8tx: CDEF skip band, golomb frame-edge partitions, kf900/kf1200 fixturesAhmet Kaan Gümüş · 8c20321
Merge main 1176a16 into lane-leaf8tx: CDEF skip band, golomb frame-edge partitions, kf900/kf1200 fixtures

Kept main's OBMC unrecorded-filter refusal string; kept the lane's EC_OBMC trace lines.
feat(av1): superblock-level inter AB partitions, and a var-tx block that stamped its neighbour bands squareAhmet Kaan Gümüş · b412012
feat(av1): superblock-level inter AB partitions, and a var-tx block that stamped its neighbour bands square

The 64-level PARTITION_HORZ_A/_HORZ_B/_VERT_A/_VERT_B arms on the inter tile
path: two 32x32 inter squares plus one true 64x32/32x64 inter strip, visited
in libaom decode_partition order, with a per-arm hit counter.

Root cause of the desync the first gate run found: decode_inter_block's
var-tx branch recorded its neighbour side bands as `side x side` on the
premise "a var-tx block is always square", which stopped holding when the
SB-level rect strips landed. A 32x64 strip wrote above_side_mi = 64, so the
superblock below read partition ctx 2 where aomdec reads 3 and desynced at
the next symbol. Now stamped with the block's true write_w/write_h.

Gate a_real_aomenc_inter_sequence_with_superblock_level_ab_partitions_decodes_pixel_exact:
256x192, 20 attempts per bit depth, every decode-order frame compared Y/U/V
vs ffmpeg. 8-bit 12 pixel-exact attempts, arms [6,5,4,2]; 10-bit 4 attempts,
arms [2,1,3,2]; 0 named refusals, 0 out-of-scope mismatches.
Merge branch 'lane-golomb' (173b793): frame-edge partition bits, luma-only deblock grid, cropped reference guardsAhmet Kaan Gümüş · 58dfef5
Merge branch 'lane-golomb' (173b793): frame-edge partition bits, luma-only deblock grid, cropped reference guards

- frame-edge partition bits at the 32 level; edge32 gate.
- chroma deblock grid keeps the block's own av1_get_max_uv_txsize -- the var-tx
  leaf write is LUMA only (libaom get_transform_size splits for AOM_PLANE_Y alone).
  Merge resolution: lane-r14's RECT (row,col,tw,th) leaves are kept and routed
  through this lane's fill_lf_grid_leaf_luma.
- inter chroma tx_type set narrowing, cropped reference-size guard, loop-restoration
  crop, mc.rs:203 panic converted to a refusal (OBMC neighbour with no recorded
  switchable interp filter). The lane's second refusal string (palette on a 1:4 rect
  strip) is NOT carried: lane-kf900 lifted that shape, and it no longer exists in
  decode.rs.

Gates: 32x32_frame_edge (1), refusal_inventory (3), gate_coverage (9),
base_ctx_rect_offsets (1), vartx (1), 1to4 (6) -- all pass.
feat(av1): decode a nonzero angle_delta_y on an 8x8 intra leaf inside an inter frameAhmet Kaan Gümüş · 7136112
feat(av1): decode a nonzero angle_delta_y on an 8x8 intra leaf inside an inter frame

av1_use_angle_delta(BLOCK_8X8) is true, so the leaf codes angle_delta_y off
angle_delta_cdf[mode - V_PRED] exactly as a key-frame block does; the delta
already fed the directional predictor here, only the refusal stood in front
of it. Gated by a real-aomenc 192x128 6-frame inter sequence (8- and 10-bit,
--enable-angle-delta=1, --enable-directional-intra=1, min/max partition 8/32),
109 / 75 nonzero-delta 8x8 intra leaves on the first attempt, every
decode-order frame pixel-exact vs ffmpeg.

The sibling tx_depth-split refusal STAYS: its per-TU implementation is in the
tree behind the refusal and decodes the 8-bit arm exactly, but a 10-bit
stream still mismatches (see lanes/leaf8tx-r1.report.md).
feat(av1): decode the 128 root's gathered frame-edge HORZ/VERT arm on the inter pathAhmet Kaan Gümüş · 83a30ca
feat(av1): decode the 128 root's gathered frame-edge HORZ/VERT arm on the inter path

mi_rows/mi_cols that do not fill the last 128 superblock make has_rows128 /
has_cols128 false, and the gathered bit then codes PARTITION_HORZ (a 128x64
block whose bottom half is outside the frame) or PARTITION_VERT (64x128) --
the only 128-partition shape a 1080p stream reaches (mi_rows 270). The inter
tile path now decodes both through inter_piece! with two TX_64X64 luma units
per mu chunk, TX_32X32 chroma, per-block cdef_idx fan-out and sb-size-aware
whole-block delta-q; Neighbours::new pads its side arrays to a superblock
multiple (libaom av1_alloc_context_buffers) since such a block records state
past the last mi row. The intra path is square-block only and now refuses the
arm BY NAME instead of silently decoding it as four 64x64 quadrants.

Gate a_real_aomenc_sb128_gathered_edge_horz_partition_decodes_pixel_exact:
4 real aomenc --sb-size=128 --cpu-used=0 streams (384x320 and 192x256, 8+10
bit, cq 32/45/55), every decode-order frame incl. the hidden alt-ref compared
against the instrumented aomdec, hard-asserting the edge counter and the inter
128x64/64x128 block counter.
Merge branch 'lane-kf900' (cbfe32d): skipped-leaf tx grid, chroma-reference neighbour snap, palette and intrabc on rect stripsAhmet Kaan Gümüş · b4cddf3
Merge branch 'lane-kf900' (cbfe32d): skipped-leaf tx grid, chroma-reference neighbour snap, palette and intrabc on rect strips

- skipped 8x8 intra leaves publish their BLOCK side (not the resolved TX_4X4) to
  the next block's tx-size context; new 10-bit key-frame fixture reelb_kf900.obu gates it
  luma-exact with a >=15 hit assert.
- smooth_uv_neighbour now snaps to the chroma REFERENCE mi (mi & !1) like libaom's
  set_mi_row_col, which subsumes main's per-call pair_mi fix at the 16x4/4x16 arm.
  Merge resolution: the RECT4_16_UV_PAIR_FILT_HITS witness would have gone
  tautologically 0 (both sides snap to the same mi), so it now compares the snapped
  answer against a new smooth_uv_neighbour_unsnapped -- it measures what the snap
  buys, and the 16-level 1:4 gate keeps its hard assert.
- 10-bit palette literals, palette + use_intrabc on 1:4 / sub-16 rect strips.

Gates: skipped_8x8_intra_leaves (1), palette (7), intrabc (1), 1to4 (6), smooth (3),
refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1) -- all pass.
wip(sbab): partial from the interrupted roundAhmet Kaan Gümüş · f760942
wip(sbab): partial from the interrupted round

Superblock-level inter AB partition arms (HORZ_A/HORZ_B/VERT_A/VERT_B at
64x64 in an inter frame) plus a per-arm hit counter; refusal line removed.
No gate yet.
Merge branch 'main' (aa83400) into lane-intersub8Ahmet Kaan Gümüş · b198e87
Merge branch 'main' (aa83400) into lane-intersub8

Auto-merge clean in decode.rs / stream.rs / refusal_inventory.rs /
decode_probe.rs; cdf.rs is byte-identical to main's. One bsize_index and one
compound_type/wedge_idx read site survive the merge, so main's inter16ab
copy of the rect CDF-row fix and this lane's r4 copy did not duplicate.
cargo check -p ec-av1 --all-targets is clean.
feat(av1): lift the sub-8x8 inter HORZ refusal (two BLOCK_8X4 leaves)Ahmet Kaan Gümüş · 4496b6d
feat(av1): lift the sub-8x8 inter HORZ refusal (two BLOCK_8X4 leaves)

The |d|<=2 luma band that kept HORZ refused through r4 was the merged
lane-cdef defect: the 8x8 inter leaf never wrote the CDEF skip band, so
8x8 groups next to an 8x4 pair were filtered where libaom skips them.
A 56-arm sweep (7 cq x 4 sp x 2 depths, transposed source, rect on) now
has zero mismatching arms; the three that were red are pixel-exact.

The gate grows attempts 16..23 on the transposed source (aomenc picks HORZ
below 8x8 there, VERT on the untransposed one), counts the two axes apart
and asserts each fired on >=2 pixel-compared attempts, and asserts a
non-square masked-compound block (new RECT_MASKED_COMPOUND_HITS) so r4's
compound_type/wedge_idx CDF-row fix stops being unexercised.
Merge 10b801a into lane-uv8Ahmet Kaan Gümüş · 79d795fBrowse files
Merge main aa83400 into lane-uv8Ahmet Kaan Gümüş · 553a763Browse files
feat(av1): non-DC chroma modes on an 8x8 intra leaf inside an inter frame (UNGATED)Ahmet Kaan Gümüş · 9e5cab1
feat(av1): non-DC chroma modes on an 8x8 intra leaf inside an inter frame (UNGATED)

decode_inter_block8's intra arm now reads uv_mode over the CFL-allowed
alphabet, the CfL alphas and angle_delta_uv in libaom's own order
(read_intra_block_mode_info, decodemv.c:1178-1220), predicts chroma from
get_uv_mode(uv_mode) with the CfL AC over the leaf's 4x4 chroma, derives the
chroma tx_type from that mode, reads palette_uv only when uv_mode is DC, takes
its luma/chroma edge-filter strength from the mi-exact neighbour modes instead
of a hardcoded false, and stamps the mode/uv_mode neighbour bands it never
wrote. New per-leaf counters intra_in_inter8_uv_hits().

The refusal string and its CAPABILITY_CLAIMS line are dropped, but the gate
(stream.rs::uv_mode_in_inter8_gate, 8-bit/10-bit/2-tile arms) never observed a
firing attempt: every --min-partition-size=8 inter stream refuses on an
UNRELATED, pre-existing inter-frame desync (same refusals with the chroma
tools switched off; the key frame of the same recipe is pixel-exact).
See lanes/uv8-r1.handoff.md.
feat(av1): rectangular wedge masks (hgtw/hltw codebooks) -- COMPOUND_WEDGE and wedge-interintra on 8x16/16x8/16x32/32x16/8x32/32x8 inter blocksAhmet Kaan Gümüş · da48c91
feat(av1): rectangular wedge masks (hgtw/hltw codebooks) -- COMPOUND_WEDGE and wedge-interintra on 8x16/16x8/16x32/32x16/8x32/32x8 inter blocks

wedge.rs carried only wedge_codebook_16_heqw and the one signflip row the
three square sizes share, so every rectangular masked-compound or
wedge-interintra block was refused by name. Ported the remaining two
codebooks (wedge_codebook_16_hgtw for h>w, _hltw for h<w, reconinter.c
203-235) and the four distinct wedge_signflip_lookup rows (reconinter.c
160-183), keyed by the block's TRUE footprint.

Masks are stored padded to a max(bw,bh)-square plane so the existing
square prediction/blend buffers index them unchanged (a rect strip is
predicted square and writes only write_w x write_h).

Verification by ENUMERATION against a C harness LINKED AGAINST libaom
(av1_init_wedge_masks + av1_get_contiguous_soft_mask): all 9 wedge-capable
bsizes x 2 signs x 16 indices = 288 checksums, fixture
lanes/wedge_libaom.expected.txt; its 96 square lines are byte-identical to
the older independent transcription lanes/wedge_dump.expected.txt.

New gate a_real_aomenc_stream_with_a_rectangular_compound_wedge_decodes_pixel_exact:
16/16 attempts (8+10 bit, cq 50/55, 4 pans) pixel-exact vs ffmpeg and vs
aomdec over every decode-order frame, 298 rect wedge blocks
(16x32=108 hgtw, 32x16=190 hltw), 0 zero-wedge mismatches.

Both "the wedge codebook is square-only" refusals dropped from
refusal_inventory. The 1:4 gate's VERT_4 / split-tx-8x4 arms now assert
their MEASURED blocker (the rect-residual-coding refusal) instead of a
bare 0.
fix(av1): rect masked compound read the SQUARE envelope's compound_type/wedge_idx CDF rowAhmet Kaan Gümüş · f750870
fix(av1): rect masked compound read the SQUARE envelope's compound_type/wedge_idx CDF row

A 16x8 (or any non-square) compound block with comp_group_idx==1 read
BLOCK_16X16's compound_type_cdf/wedge_idx_cdf row instead of BLOCK_16X8's,
because decode_inter_block indexed those tables by its square `side` argument
rather than the block's true (write_w, write_h) footprint -- class
table-indexed-by-raw-size. The same square envelope also decided
is_any_masked_compound_used, so a 4x16/16x4 strip would read a comp_group_idx
symbol libaom never writes.

Root cause proven by range ladder on a 192x128 6-frame 8-bit AV1 stream
(transposed-structure geq source, cq14, rect partitions on): entering the 16x8
block both decoders are at rng 46505, agree through the mv (58288), and after
the fix agree at the end of mode info (61760) and at the next block (60694);
that stream now decodes pixel-exact on every decode-order frame, where before
it drifted from decode-order frame 5.

Also: a COMPOUND_WEDGE mask on a non-square block is refused by name (the
wedge codebook here is built per square side only), and EC_TRACE_MODE gains
EC_CGI / EC_CIDX / EC_IF rungs (comp_group_idx, compound_idx, interp filter:
ctx + value + range) -- the rungs that localized this.

The sub-8x8 HORZ (two BLOCK_8X4) refusal STAYS: with the fix, 3 of 28 sweep
arms still differ by |d| <= 2 in luma only, in the bottom-left corner, with an
element-exact entropy ladder -- a post-entropy filter/reconstruction defect.
EC_AV1_SUB8_HORZ=1 decodes it for that bisect.