forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 5a2f5efe3a0771ac7ca43d57bdf63c19a7b75ff6

2026-09-01

fix(av1): 16x8/8x16 intra strips never read use_filter_intra -- one dropped symbol per DC_PRED rect leaf desynced the tileAhmet Kaan Gümüş · 7f6f585
fix(av1): 16x8/8x16 intra strips never read use_filter_intra -- one dropped symbol per DC_PRED rect leaf desynced the tile

av1_filter_intra_allowed_bsize is 'both sides <= 32', so libaom reads the
use_filter_intra flag for every DC_PRED 16x8/8x16 block; filter_intra_size_class_rect
returned None at those two sizes, so decode_leaf_rect skipped a symbol the encoder
wrote and every following block decoded from a desynced entropy stream -- silently,
with no error and a whole-frame pixel mismatch. Adds default_filter_intra_cdfs rows
5 (BLOCK_16X8, 9394) and 4 (BLOCK_8X16, 12551) and an asymmetric pin for the pair.

Root-caused against the instrumented aomdec EC_TRACE_COEFF ladder: at leaf mi=(2,4)
ours and the oracle both decode mode=0 uv_mode=9 skip=0, our range 34808 vs the
oracle's 40668; after the fix both are 40668 and the next transform block's all_zero
reads 40269 in both. The same ladder proves r2's rect coefficient path (scans, eob
alphabets, txb sets, nz-map/br/DC-sign contexts) bit-exact for a real non-skip
TX_16X8 leaf and both its TX_8X4 chroma halves.

Lane gate stays RED and no refusal is lifted: a second, independent defect (the
rect leaf's kf_y_mode context comes from the coarse 16x16 neighbour grid, not the
real mi grid) is located to the element in lanes/rectx-r3.handoff.md.

cargo test -p ec-av1 --lib: 269 passed, 1 failed (this lane's own gate), 24 ignored.
fix(av1): inter segment map stamp uses the strip footprint (write_w/write_h), not side x side -- libaom x_mis/y_mis are mi_size_wide/high[bsize]; found by the segr1 verifier, unreachable today behind the rect-residual refusalAhmet Kaan Gümüş · 7555158
fix(av1): inter segment map stamp uses the strip footprint (write_w/write_h), not side x side -- libaom x_mis/y_mis are mi_size_wide/high[bsize]; found by the segr1 verifier, unreachable today behind the rect-residual refusal
fix(av1): cherry-pick lane-tiny 9b1297a (chroma tx size in the deblocker) + lane-sub8 r4 reportAhmet Kaan Gümüş · a3613e4
fix(av1): cherry-pick lane-tiny 9b1297a (chroma tx size in the deblocker) + lane-sub8 r4 report

Round 4 disproved the lane's own premise: instrumented aomdec shows the gate's
streams contain only PARTITION_NONE/SPLIT, so every rect/AB refusal rounds 2-3
attributed to the encoder was our own desync. With the mi-exact mode
neighbours and has_tr_4x4/has_bl_4x4 in place the symbol ladder is exact
(324/324, 318/318) and luma is bit-exact; 4 chroma pixels remain.
fix(av1): PARTITION_VERT_A/_B square sub-blocks must read libaom's _vert_ has_tr/has_bl tablesAhmet Kaan Gümüş · 02e331f
fix(av1): PARTITION_VERT_A/_B square sub-blocks must read libaom's _vert_ has_tr/has_bl tables

lane-part32 r5. A VERT_A/VERT_B partition visits its square sub-blocks
TL, BL, TR, BR -- not raster order -- so the bottom-left square's
top-right neighbour is the partition's own right-hand rectangle, which
is not decoded yet. libaom switches has_top_right/has_bottom_left onto
has_tr_vert_*/has_bl_vert_* for exactly these two partition types
(reconintra.c get_has_tr_table); this crate's `Reach` had only the
raster tables, so the BL 32x32 of an SB-level VERT_A predicted from
never-written samples (has_tr_32x32[0] bit 4 = 1 vs
has_tr_vert_32x32[0] bit 4 = 0).

Symptom on the pinned seed-63 stream: every symbol in sync with the
oracle (aomdec EC_TRACE/EC_TRACE_MODE agree on partition=6 and on every
mode, and the msac range at mi_col=40 matches ours exactly, 53240) yet
the prefilter reconstruction diverges from x=157 of the BL square, and
the 32x64 strip to its right then DC-predicts off that corrupted left
column (107 instead of ~149) and the next superblock row's V_PRED
copies it down -- 4683 luma pixels wrong from one availability bit.

Also lifts the r4 refusal narrowing into a proven capability: the four
SB-level AB arms now decode pixel-exact, hard-asserted arm by arm
(sb_ab_hits_by_arm), and PARTITION_HORZ_4/VERT_4 at 64x64 remain the
only refused 64x64 partition types.
fix(av1): intra tx_depth ctx in an inter frame reads the TXFM_CONTEXT arrays, not the deblock tx gridAhmet Kaan Gümüş · 4fc3a96
fix(av1): intra tx_depth ctx in an inter frame reads the TXFM_CONTEXT arrays, not the deblock tx grid

get_tx_size_context (libaom pred_common.h:342-371) reads above_txfm_context/
left_txfm_context, and an inter neighbour overrides its entry with its own
BLOCK size -- the two differ the moment a neighbour's var-tx tree splits, so
the deblock-grid approximation stops being equivalent under TxMode::Select.
Does not move the frame-2 gate divergence (measured), but is what libaom does.
feat(av1): decode an intrabc block vector -- use_intrabc now reads a real DV instead of refusingAhmet Kaan Gümüş · fbda1c6
feat(av1): decode an intrabc block vector -- use_intrabc now reads a real DV instead of refusing

The DV predictor is the ordinary MV stack queried with INTRA_FRAME
(libaom av1_find_mv_refs/av1_find_ref_dv), the difference reads off a
separate ndvc context at full-pel precision (MV_SUBPEL_NONE), and the
block-copy prediction rides the existing PALETTE_PRED per-block
prediction override with BILINEAR taps off the current frame's own
pre-loop-filter planes (all loop filters are already off when
allow_intrabc). tx_type switches to the inter ext-tx sets, since libaom
counts an intrabc block as is_inter_block.

Two real index bugs fell out: mvstack's sign_bias() and gm_mv() both
indexed table[ref_frame - LAST_FRAME] unguarded, so any INTRA_FRAME
query -- exactly what intrabc does -- panicked at usize::MAX.

The lane's refusal is REPLACED, not lifted: every real aomenc intrabc
block sits under TX_MODE_SELECT, whose inter var-tx transform tree
(read_var_tx_size) this decoder has nowhere, so no stream reconstructs
one end to end yet and enable-intrabc stays in gate_coverage's
NEVER_EXERCISED list. Recipe + evidence in lanes/intrabc-r1.report.md.
Revert the Golomb-tail lift: the refusal is masking a real intra-rect64 defectAhmet Kaan Gümüş · 965c6b6
Revert the Golomb-tail lift: the refusal is masking a real intra-rect64 defect

Reading tails up to 32 leading zeros is bit-identical for every tail an encoder
writes and round-trips cleanly, but it turns
a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact
RED: seed 67 refuses at this cap today and, with the cap raised, decodes to a
frame-0 luma mismatch instead. A key frame cannot legitimately carry a level
above 1<<19, so the long tail is the symptom of an earlier desync in that
stream (class refusal-hides-a-defect). Refusal restored, with the finding and
the exact repro recorded at the cap.
feat(av1): inter var-tx (TxMode::Select) read + per-TU residual; blanket inter refusal liftedAhmet Kaan Gümüş · f66f359
feat(av1): inter var-tx (TxMode::Select) read + per-TU residual; blanket inter refusal lifted

spec 5.11.17 read_block_tx_size/read_var_tx_size, libaom decodeframe.c
read_tx_size_vartx: an inter block's transform size is now the recursive
txfm_split tree from its max square transform down to MAX_VARTX_DEPTH=2,
with the above/left TXFM_CONTEXT arrays maintained per transform unit
(txfm_partition_update) and per block (set_txfm_ctxs; a skipped inter block
records its BLOCK size, not its transform size). Coefficients are read and
reconstructed leaf by leaf in the tree's own order, each unit against its own
slice of the motion-compensated predictor and its own txb_skip context;
chroma keeps the block's uv transform and inherits the top-left unit's coded
tx_type.

- decode.rs: read_block_tx_size/read_var_tx_size/txfm_partition_ctx/
  txfm_partition_update/set_txfm_ctxs, TXFM_SPLIT_READS/HITS counters,
  Neighbours::above_txfm/left_txfm, wired into both decode_inter_block
  residual branches and (new this round) all three decode_inter_block8
  branches via read_inter_luma8.
- TXFM_CTX_INIT = 64, not 0: av1_zero_above_context memsets the txfm row to
  tx_size_wide[TX_SIZES_LARGEST] and av1_zero_left_context to
  tx_size_high[TX_SIZES_LARGEST] (av1_common_int.h:1624/1632). The WIP's
  zero-init was a false premise and desynced frame 2 of the gate.
- cdf.rs/cdf_state.rs: TXFM_PARTITION (21 contexts) in the table set,
  adaptation and the per-frame counter reset; Luma4Inter/Luma4InterSet1
  coefficient sets for a var-tx tree that reaches 4x4.
- stream.rs: the blanket "an inter frame using TxMode::Select" refusal is
  gone; what remains refused is named at its own site (a var-tx leaf larger
  than 32x32; an intra block in an inter frame whose tx_depth splits).
  New gate a_real_aomenc_inter_sequence_with_tx_select_decodes_pixel_exact --
  the aomenc recipe WITHOUT --enable-tx-size-search=0, hard-asserting both
  txfm_split counters and panicking (never SKIPping) when nothing fires.
- refusal_inventory.rs: -1 blanket refusal, +2 narrow ones.

Gate is RED at frame 2 (see lanes/txselect-r1.report.md): key frame + first
inter frame decode pixel-exact with 8 splits taken, frame 2 diverges.
feat(av1): 8x8 inter leaves -- GLOBALMV, WARPED_CAUSAL, global warp, non-LAST refs, interp filter, interior split (gates still RED)Ahmet Kaan Gümüş · d4af78e
feat(av1): 8x8 inter leaves -- GLOBALMV, WARPED_CAUSAL, global warp, non-LAST refs, interp filter, interior split (gates still RED)

decode_inter_block8 was unreachable for interior blocks (every interior 16x16
PARTITION_SPLIT refused), so its GLOBALMV/WARPED_CAUSAL gaps were only half the
story. This wires the interior split down to four 8x8 leaves and closes, at that
leaf: GLOBALMV (gm_get_motion_vector), WARPED_CAUSAL (findSamples ->
find_projection -> warp_affine), allow_warp's global-warp branch, the mv-stack gm
fallback (gm r6's fix, previously only at 16x16+), the full read_single_ref tree
with ref_planes, and read_mb_interp_filter (the leaf read NO filter symbol -- a
silent desync on every SWITCHABLE stream). obmc_mask gains libaom's obmc_mask_1/_2,
which an 8x8 leaf's 4x4 chroma OBMC hits as a hard panic otherwise.

Both new 8x8 gates are RED (no firing attempt yet) and the previously-vacuous
obmc_8x8 gate now reaches real leaves and is one chroma plane off, so this branch
must NOT merge: refusals are lifted without a passing gate. See
lanes/gmaffine-r1.report.md.
feat(av1): scaled-reference MC for compound, OBMC and interintra blocksAhmet Kaan Gümüş · 97a7ed5
feat(av1): scaled-reference MC for compound, OBMC and interintra blocks

Each compound tap now scales off its own stored reference's luma width
(mc::horizontal_scaled_pass shared by predict_scaled and
predict_compound_intermediate), OBMC neighbours are re-predicted through the
scaled walk against their own reference's scale, and interintra blends over the
scaled inter prediction. Warp under a scaled reference stays refused (libaom
allow_warp's translational fallback is implemented but its stream still
mismatches); the 8x8 leaf stays refused (its MC is threaded, but the only
recipe reaching that path desyncs inside the leaf -- lane-sub8's open
below-8x8 defect, not scaling).

Also, found while probing 8x8 leaves and kept: obmc_mask(2) = {45,64} and
one-sided chroma OBMC for an 8x8 luma block (av1_skip_u4x4_pred_in_obmc,
reconinter.c:820) -- the first real 8x8 OBMC block hit unreachable!().

Gate: a_real_aomenc_superres_stream_with_compound_obmc_and_interintra_decodes_pixel_exact,
12/12 seeds pixel-exact vs ffmpeg incl. hidden alt-refs, hard-asserting
predict_scaled/scaled_compound/scaled_obmc/scaled_interintra hit counters
(3198/500/9/1). Refusals 47 -> 44.
fix(av1): have_ffmpeg() SKIPped green under EC_AV1_REQUIRE_AOMENC=1Ahmet Kaan Gümüş · 91c1335
fix(av1): have_ffmpeg() SKIPped green under EC_AV1_REQUIRE_AOMENC=1

Every real-aomenc gate opens `if !have_ffmpeg() || !have_aomenc()`, and
only have_aomenc() asserted under the require flag -- have_ffmpeg() is
evaluated first and short-circuits, so a machine without ffmpeg printed
SKIP and the whole 20-gate batch reported green with the require flag
set (class gate-skips-on-its-own-failure).

have_ffmpeg() now mirrors have_aomenc(): absence panics when
EC_AV1_REQUIRE_FFMPEG=1 or EC_AV1_REQUIRE_AOMENC=1 is set (an aomenc
gate decodes its stream through ffmpeg, so requiring the oracle implies
requiring ffmpeg). Applied to all five copies of the helper
(stream/tile/decode/encode/encoder test modules), which had the same
silent-false shape.
Merge branch 'lane-tiny': deblocker chroma tx size was luma_tx/2, must be block span/2 (av1_get_max_uv_txsize); tiny frame-size sweep is a hard gateAhmet Kaan Gümüş · cc6e91b
Merge branch 'lane-tiny': deblocker chroma tx size was luma_tx/2, must be block span/2 (av1_get_max_uv_txsize); tiny frame-size sweep is a hard gate

Verified PARTIAL→mergeable (fix correct, gate real, 268/0/22); residue: every aomenc gate skips green when ffmpeg is absent (needs EC_AV1_REQUIRE_FFMPEG twin).
feat(av1): per-block segment_id (spec 5.11.7-5.11.9) with per-segment qindex and loop-filter deltasAhmet Kaan Gümüş · 4950fc3
feat(av1): per-block segment_id (spec 5.11.7-5.11.9) with per-segment qindex and loop-filter deltas

Reads intra_segment_id (pre/post-skip per SegIdPreSkip) and inter_segment_id
at both spec positions, incl. seg_id_predicted against the primary reference's
saved map (load_previous_segment_ids); the decoded map is carried into every
reference slot refresh_frame_flags names. Consumers: get_qindex SEG_LVL_ALT_Q
at all dequant sites, SEG_LVL_ALT_LF_* in lf_level. Both seg CDFs adapt and sit
in the per-frame counter reset. The blanket segmentation refusal is replaced by
a narrow SEG_LVL_REF_FRAME/SKIP/GLOBALMV one. Gates: aomenc --aq-mode=1
--deltaq-mode=0 8-bit 16-frame (10/10 pixel-exact incl. hidden frames, 223
segment_id symbols, 6 distinct ids, 35 seg_id_predicted) and 10-bit key frame
(10/10, 80 symbols, 5 ids).
feat(av1): rect strips predict per transform unit; filter intra on a stripAhmet Kaan Gümüş · aedec07
feat(av1): rect strips predict per transform unit; filter intra on a strip

lane-rectsplit r1 (continuing the WIP snapshot c5de1b6):
- decode_block_rect's split-transform arm decodes per transform unit
  (decode_rect_split), gated by
  a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact
  (20/20 pixel-exact, rect_split_tx_hits > 0).
- predict_filter_intra takes bw x bh instead of one square side, so a
  use_filter_intra HORZ/VERT strip predicts instead of refusing; gated by
  a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact
  (--enable-filter-intra=1, cq 25, 40/40 pixel-exact, filter_intra_rect_hits=3).
- decode_leaf_rect (below 16x16) keeps both refusals, its split one renamed
  to name the size, and is listed in refusal_inventory.
- The superblock-level split-transform refusal stays: its gate is measured
  RED (seed 50, luma (171,56) off by one) and #[ignore]d with that number.
fix(av1): mi-exact intra mode neighbours + has_tr_4x4/has_bl_4x4Ahmet Kaan Gümüş · c24ba5d
fix(av1): mi-exact intra mode neighbours + has_tr_4x4/has_bl_4x4

The coarse 16x16 above_mode/left_mode slots cannot hold the two (or four)
different modes a split cell leaves behind, so every 8x8/4x4 leaf whose
neighbour sat in a split cell read the wrong kf_y_mode CDF row and desynced
the tile -- which surfaced as hallucinated HORZ/VERT/AB partition symbols
(the reference stream contains only PARTITION_NONE/SPLIT). Neighbours now
keeps a mi-granular mode map (sub8_mode_col/row, written by record_rect,
record_split_luma, decode_leaf8 and every 4x4 leaf) that wins over the
coarse slot when it holds the exact neighbouring mi. Reach gains libaom's
has_tr_4x4/has_bl_4x4 rows (the corner-cut the old comment named): sub-8x8
leaves were clamping into the 8x8 table and predicting from above-right
samples the decoder has not written yet.
fix(av1): read Golomb tails up to 32 leading zeros instead of refusing at 20Ahmet Kaan Gümüş · a369458
fix(av1): read Golomb tails up to 32 leading zeros instead of refusing at 20

libaom's own read_golomb (decodetxb.c:30) calls a 21st prefix bit a corrupt
frame and this decoder mirrored that as a refusal string; dav1d reads up to 32
and stops counting. Reading the longer prefix refuses nothing and leaves every
short tail bit-identical (our own writer tops out at 19 leading zeros,
tile::MAX_LEVEL = MAX_BR_LEVEL + (1<<19)). Gate:
decode::tests::golomb_tails_read_back_past_the_old_twenty_bit_cap round-trips
the smallest and largest value at every prefix length 0..=31 through
tile::write_golomb and back. Refusal 'a Golomb tail longer than this decoder
reads' lifted from refusal_inventory.
feat(av1): bit-depth-generic film grain synthesis and superres upscaleAhmet Kaan Gümüş · a67e457
feat(av1): bit-depth-generic film grain synthesis and superres upscale

Lifts the last two `bit_depth != 8` refusals. Film grain (spec 7.18.3 /
libaom grain_synthesis.c): grain_center = 128 << (bd-8), gauss_sec_shift =
12 - bd + grain_scale_shift, scale_LUT interpolation over the 256-entry LUT,
cb/cr offsets and clip_to_restricted_range ranges shifted by (bd-8).
Superres (spec 7.16): planes stay u16 end to end, output clamp is
(1 << bd) - 1; the filter/Round2/edge-margin path is unchanged and its three
libaom pins still hold at 8-bit.

Gated by two real-aomenc 10-bit gates (--film-grain-test=1 and
--superres-mode=1 --superres-denominator=12), both pixel-exact vs ffmpeg's
own 10-bit decode and both hard-asserting bit_depth==10 plus a firing
counter (grain_hits / superres_hits). Forcing bit_depth=8 back into either
call site fails its gate, so neither is vacuous.

Measured on his library: ReelB sets apply_grain on 25 of its first 50
frames with a real luma scaling LUT at 10 bit; neither film uses superres
(enable_superres=false in both sequence headers).
feat(av1): inter tile path codes a whole-superblock PARTITION_NONE (64x64 inter block)Ahmet Kaan Gümüş · b7d3bdb
feat(av1): inter tile path codes a whole-superblock PARTITION_NONE (64x64 inter block)

The inter tile path recursed a superblock only as SPLIT, so the case aomenc
picks for static content -- one 64x64 inter block -- was a named refusal. The
arm now decodes through `decode_inter_block` at side 64: size_group 3
(`size_group_lookup[BLOCK_64X64]`), luma through `TxbSet::Luma64` with the
32-point scan (TX_64X64 codes only its top-left 32x32 of frequencies, spec
5.11.40 -- `read_inter_plane` widens the coded corner back to 64x64 before the
inverse transform, mirroring `read_plane`'s own `tx_side != side` branch),
chroma as a plain 32x32 `TxbSet::Chroma32`.

`av1_is_wedge_used` is false at 64x64, so no `compound_type` symbol is written
there; the wedge arm's `unreachable!` becomes a named refusal rather than a
read that would desync.

Gates (both HARD-assert `inter_sb_none_hits` moved and every frame pixel-exact
vs ffmpeg; a decode error fails, never SKIPs):
  a_real_aomenc_inter_sequence_with_a_whole_superblock_block_decodes_pixel_exact
  a_real_aomenc_10bit_inter_sequence_with_a_whole_superblock_block_decodes_pixel_exact

cargo test -p ec-av1 --lib: 269 passed, 0 failed, 23 ignored.
fix(av1): deblocker derived the chroma transform size from luma's tx_depth-split tx, inventing chroma edgesAhmet Kaan Gümüş · 9920fec
fix(av1): deblocker derived the chroma transform size from luma's tx_depth-split tx, inventing chroma edges

A block's chroma transform is av1_get_max_uv_txsize(bsize): the largest
transform covering the SUBSAMPLED BLOCK, capped at 32x32. It does not
follow luma's tx_depth split. `tx_px_at`/`tx_h_px_at` computed it as
`tx_grid / 2`, i.e. half the *resolved luma* transform, so a 16x16 block
whose luma split to 8x8 read a 4-px chroma transform and the deblocker
filtered a chroma edge libaom never has. Reconstruction was already
correct (it derives chroma from the block side), which is why the symptom
was luma-bit-exact, chroma-only, +-1, and only on the seeds where the
phantom edge's filter masks happened to pass.

Chroma tx w/h are now written per-mi from the block's own span in
fill_lf_grid_rect (the single writer every caller routes through) and read
back from their own grids.

Also: probe_tiny_frame_size_boundary promoted to the hard-asserting gate
a_real_aomenc_tiny_frame_size_sweep_decodes_pixel_exact -- no #[ignore],
wrong pixels or an unnamed failure panics, only a NAMED "unsupported"
refusal is tolerated, and a floor of 70 pixel-exact attempts keeps
refusals from making it vacuous. 32x16 goes 8/10 -> 10/10; every size
except 8x8 (rect-transform refusal) is 10/10.

Instruments: EC_AV1_POSTDEBLOCK_DUMP / EC_AV1_POSTCDEF_DUMP mirroring
aomdec's own post-deblock dump (that pair is what isolated the stage), and
decode_probe takes an optional raw-yuv420p output path.
feat(av1): AFFINE global motion gated and unrefused -- stock aomenc can never write oneAhmet Kaan Gümüş · f0c06d5
feat(av1): AFFINE global motion gated and unrefused -- stock aomenc can never write one

Stock libaom pins its encoder-side global-motion model search to ROTZOOM at
both ends (av1/encoder/global_motion_facade.c:24-25), so no
--enable-global-motion=1 recipe over any content can produce a 6-parameter
model -- that is why lane-gm r4/r5/r6 refused AFFINE by name for four rounds
rather than gate it. scripts/build-aom-affine-oracle.sh widens exactly that
range in a side build (~/.cache/aom-affine, shared oracle untouched); the new
gate a_real_affine_global_motion_stream_decodes_pixel_exact encodes rotation
plus a progressive anisotropic stretch (the motion a ROTZOOM model cannot
express) and decodes it pixel-exact against ffmpeg at 8 and 10 bit, hard-
asserting the new affine_gm_hits() counter.

No decoder change was needed: read_global_motion_params already reads params
4/5 with their own subexp references and warp.rs's shear validity check plus
warp_affine are model-agnostic. Result: 24/24 frames exact both depths,
affine_gm_hits 44 (8-bit) / 48 (10-bit).

2026-08-30

fix(av1): NZ_MAP_CTX_OFFSET_32X64/_64X32 were transposedAhmet Kaan Gümüş · 621d55b
fix(av1): NZ_MAP_CTX_OFFSET_32X64/_64X32 were transposed

Re-derived from libaom's own generating formula in
get_nz_map_ctx_from_stats (txb_common.h:199-210) and hand-verified
against the raw 1024-entry arrays in txb_common.c. lane-sbpart r8 landed
these tables transposed; VERT-64 (32x64) luma is now bit-exact against
the oracle trace for the pinned seed-42 block, all six ctx/pos/level
reads matching.

This also RETIRES round 2's diagnosis, which I had charted as fact:
there is no missing SCAN_32X64/SCAN_64X32 table. libaom's scan.c:1877
says both TX_32X64 and TX_64X32 use default_scan_32x32 outright ("Half
of the coefficients of tx64 at higher frequencies are set to zeros. So
tx32's scan order is used"), and our existing scan32 = default_scan(TX32)
at decode.rs:3559 matched the oracle's (row,col) walk exactly for every
scan step of the pinned block. The defect was one table over.

Committed by the orchestrator at the agent's turn cap.
wip(part32): pin decode_block_rect64's block2 defect to a scan-table mismatchAhmet Kaan Gümüş · f9547e3
wip(part32): pin decode_block_rect64's block2 defect to a scan-table mismatch

Debug harness (debug_part32_r2_sbpart_pin_mismatch_geometry, #[ignore]d) plus
two env-gated filter bypasses (EC_AV1_DEBUG_SKIP_DEBLOCK/CDEF, off by
default) added to bisect a_real_aomenc_stream_with_a_superblock_level_
horz_vert_partition_decodes_pixel_exact's seed-42 failure.

Findings, all measured on THIS tree (not inherited from round 1 or
lane-rect64q):

- Reproduces: 266 passed, 1 failed, same as the trial merge.
- Pre-filter reconstruction (deblock+CDEF both disabled on our side) matches
  the aom-oracle's own EC_AV1_PREFILT_DUMP pixel-for-pixel through the end
  of SB(1,0)'s first VERT-64 sub-block (px=64..95, all-zero DC, correct).
  First divergence is (96,0): oracle=81, ours=76 -- exactly the first pixel
  of the SECOND VERT-64 sub-block (px=96, mi_c=24), which has real
  coefficients (eob_nonzero=true). Deblock/CDEF are proven NOT the cause
  (mismatch persists identically with both disabled).
- msac RANGE ladder (EC_TRACE_COEFF/EC_AV1_TRACE vs oracle's rung 2/4):
  ranges agree exactly up to and including the `rng=63764` entering this
  block's luma coefficient read. Both sides read eob=6. But the oracle's
  per-step trace assigns nonzero level=1 to scan positions (indices) 0, 1,
  2, 4, 5; ours reads real (row,col) pairs (0,0) (0,1) (1,0) (2,0) (1,1)
  (0,2) via `scan32 = default_scan(TX32)` -- the plain square 32x32 scan.
  The two do not correspond to the same physical layout, and the range
  diverges within this same coefficient read (37896 after, vs the oracle's
  46344) -- an in-block entropy desync, not a post-processing or dequant
  bug.
- Root-cause hypothesis (not yet landed): AV1's real scan-table selection
  for a truncated-corner VERT-64 (TX_32X64/TX_64X32) block is NOT the same
  physical scan as a genuine square TX_32X32 -- spec names a distinct
  Default_Scan_32x64/64x32 table, same shape as this file's own
  `NZ_MAP_CTX_OFFSET_32X64`/`_64X32` split fixed at lane-sbpart r8 for the
  *context* table; the *scan order* itself needs the same treatment and
  hasn't had it. `decode_block_rect64`'s `scan32 = default_scan(TX32)` at
  crates/ec-av1/src/decode.rs:3559 is the call site; needs a real
  SCAN_32X64/SCAN_64X32 table (1024-entry, truncated-corner) ported from
  libaom's `av1_scan_orders[TX_32X64]`/`[TX_64X32]`, selected the same way
  `chroma_scan` already is a few lines below (bw==64 ? ... : ...).

NOT fixed this round -- turn budget spent on entropy-layer localization
(charter's own step 2), out of runway to safely port and verify a new
1024-entry table. HEAD still red on the target gate; committing per this
repo's "landing red on the lane is fine" rule.
docs(sub8): round 1+2 reportAhmet Kaan Gümüş · 5d4c555Browse files
wip(sub8): gate compiles + enable-rect-partitions=0; RED -- real desync foundAhmet Kaan Gümüş · 4940cb1
wip(sub8): gate compiles + enable-rect-partitions=0; RED -- real desync found

Gate now compiles clean (round 1 left it uncompiled). Adding
--enable-rect-partitions=0 to the aomenc recipe was necessary (without it
aomenc picks HORZ/VERT-below-8x8, still refused by name, in 25/40 attempts)
but is not sufficient: 0/160 attempts across both the original 64x64
fixture and a spatially-isolated 16x16-only variant pass. Every real
PARTITION_SPLIT-below-8x8 hit is immediately followed by a spurious
HORZ/VERT read on the very next sibling 8x8 leaf in the same tile -- reads
as a genuine desync left behind by decode_leaf_split4/read_intra_mode_sub8,
not an encoder choice a fixture recipe can dodge. Full findings in
lanes/sub8-r1.report.md.