forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 4395cbd993d4b9fcd9be6d56b54e0fa02507dd78

2026-09-01

fix(av1): no use_filter_intra symbol for a palette-Y block (av1_filter_intra_allowed), and the multi-tile palette gate goes liveAhmet Kaan Gümüş · 4395cbd
fix(av1): no use_filter_intra symbol for a palette-Y block (av1_filter_intra_allowed), and the multi-tile palette gate goes live

libaom's av1_filter_intra_allowed also requires palette_size[0] == 0, so it writes
no use_filter_intra symbol for a Y-palette block. This decoder read one anyway,
desyncing every screen-content stream from its first palette block -- surfacing as
a bogus "partition below 8x8"/"HORZ_A below 16x16" refusal further down the tile
(refusal-names-a-correlate). Range ladder vs instrumented aomdec: both sides agree
through angle_uv at mi(0,8) rng=38738, ours then reads use_filter_intra=1.

a_real_aomenc_multi_tile_palette_stream_decodes_pixel_exact is un-ignored and green
6/6 with a per-attempt counter (palette_tile_left_hits) proving a palette block fired
at a tile's own left column, plus per-arm override proofs (sequence header
enable_cdef/enable_restoration; allow_screen_content_tools on the palette arm).

r11's charter premise that aomenc keeps the FIRST occurrence of a repeated flag is
MEASURED FALSE (last wins) -- extras stay after the base recipe.
fix(av1): palette left neighbour/colour cache is tile-relative, not frame-relativeAhmet Kaan Gümüş · 45c1398
fix(av1): palette left neighbour/colour cache is tile-relative, not frame-relative

`palette_ctx_and_cache` and `palette_uv_cache` read the LEFT palette size and
colours with no availability guard at all, where libaom's
`av1_get_palette_cache` takes `xd->left_mbmi` -- NULL whenever the block sits at
its own TILE's left column. A second tile column therefore inherited the
previous tile's palette colours into its cache and its `palette_y_mode` context.
Guarded with `c > tile_col0_mi / (SUB / MI)` on both, and `Neighbours::start_row`
now clears the four palette side bands it always skipped.

Also adds the multi-tile palette gate arm (smptebars, 2 tile columns, screen
content), `#[ignore]`d: it refuses before a palette block reconstructs because
aomenc keeps the FIRST occurrence of a repeated --enable-* flag, so the arm's
overrides never take. One edit next round (extra before the base recipe).

Tile suite 54/54 green, gate_coverage 5/5.
test(av1): multi-tile gates with the coding tools ON, and the films' real tiling measuredAhmet Kaan Gümüş · 9c8c214
test(av1): multi-tile gates with the coding tools ON, and the films' real tiling measured

Every existing tile gate turns rect/ab partitions, tx-size search, cdef and
restoration OFF to isolate the per-tile loop -- the tool-disabled-in-every-gate
shape, under which a tile-edge defect in any of those tools is invisible.

- stream.rs: `run_multi_tile_gate` + 4 arms (2x2 grid and 4 columns, 8- and
  10-bit, intra and inter) through `decode_stream`, rect+ab partitions, default
  cdef and loop restoration on, deblocking left crossing tile boundaries. The
  parsed `tile_info` is asserted to carry the grid asked for (skipping
  `show_existing_frame` headers, which code no tile info) and `tile_hits` is
  asserted >= tiles*frames so a header claiming 4 tiles cannot pass on one
  decoded tile.
- The 8-bit 2x2 inter arm is `#[ignore]`d with an open defect documented in
  place: seed 42 mismatches in one 32x32 block at x[224..255] y[32..63] from
  frame 4 on; not cdef, not restoration, not deblocking; seeds 47/48 are exact;
  tile attribution unproven because the single-tile control refuses.
- decode_probe: prints the tiling of every frame header before decoding. Both
  of his AV1 films measure cols=1 rows=1 uniform over 181 headers each,
  confirmed independently by ffmpeg's trace_headers (tile_cols_log2=0,
  tile_rows_log2=0) -- multi-tile is NOT on the critical path for them.
- gate_coverage: 5 stale 10-bit entries deleted (global-motion and
  dist-wtd-comp were already closed by lane-cwarp and left this test red at
  main 9c35ecc; ab-partitions, rect-partitions and restoration are closed by
  the new 10-bit arms), plus a note on why tiling cannot join the
  `--enable-*` derivation.
Merge branch 'lane-part32': SB-level HORZ/VERT/HORZ_A/HORZ_B/VERT_A/VERT_B at 64x64 gated pixel-exact (has_tr_vert/has_bl_vert tables for VERT_A/B visit order); refusal narrowed to HORZ_4/VERT_4 (verifier PASS, 269/0/24)Ahmet Kaan Gümüş · 9235c22
Merge branch 'lane-part32': SB-level HORZ/VERT/HORZ_A/HORZ_B/VERT_A/VERT_B at 64x64 gated pixel-exact (has_tr_vert/has_bl_vert tables for VERT_A/B visit order); refusal narrowed to HORZ_4/VERT_4 (verifier PASS, 269/0/24)

Merge fixup: lane-part32's new decode_block_rect/decode_block_rect64 call sites
(4 AB arms + the strip64! macro) needed HEAD's added `reduced_tx_set` argument.
test(av1): gate coverage is per (tool x bit depth), not per toolAhmet Kaan Gümüş · 969b81e
test(av1): gate coverage is per (tool x bit depth), not per tool

Every 10-bit gate ran --enable-restoration=0, so the 10-bit loop-restoration
path was never exercised and two hbd defects (SGR box sums unscaled, Wiener
clamp at the 8-bit bound) survived the '10-bit bit-exact' milestone.
gate_coverage.rs now classifies each real-aomenc gate by bit depth and pins
NEVER_EXERCISED_8BIT (12) and NEVER_EXERCISED_10BIT (19) over a fixed
26-flag TOOL_UNIVERSE, with the same 'defaulted means unknown' rule: only an
explicit --enable-<tool>=1 in a gate of that depth retires an entry.
45 gates, 4 of them 10-bit.
feat(av1): per-reference GLOBAL warp on compound blocks (was silently translational)Ahmet Kaan Gümüş · e67ae7f
feat(av1): per-reference GLOBAL warp on compound blocks (was silently translational)

decode_inter_block's compound branch predicted both taps through
mc::predict_compound_intermediate; libaom runs av1_init_warp_params per
reference, so each ref of a GLOBAL_GLOBALMV block under a ROTZOOM/AFFINE
model is filtered through av1_warp_plane into the compound intermediate.
No refusal named this -- silently wrong pixels.

warp.rs: warp_affine split into warp_inner + store closure, hardcoded BD=8
replaced by crate::decode::bit_depth(), new warp_affine_compound
(av1_highbd_warp_affine_c's is_compound branch, unbiased to match this
crate's intermediate domain). mc.rs: diffwtd_mask's round was missing
libaom's (bd - 8) term. New gate a_real_compound_global_warp_stream_decodes_pixel_exact:
6/6 pixel-exact, compound_warp_hits=37. 10-bit arm ignored, blocked by a
pre-existing 10-bit compound MC defect (ablation in its doc comment).
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): 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.
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.
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.
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).
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.

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.
Merge branch 'lane-tiny': filter-intra blocks read the wrong tx_type CDF rowAhmet Kaan Gümüş · d21774e
Merge branch 'lane-tiny': filter-intra blocks read the wrong tx_type CDF row

A small AV1 key frame decoded SILENTLY WRONG -- no refusal, no error,
every symbol reading as a valid value, and wrong pixels out. Measured
before the fix, 10 seeds per size: 32x32 3/10 mismatch, 24x24 3/10,
16x32 and 32x16 2/10 each; 16x16, 48x48 and 64x64 clean. Wrong pixels
returned as success is the worst failure this decoder can have, and
nothing exercised it because every one of the 267 tests uses a frame
larger than one superblock.

Root cause: libaom's av1_read_tx_type indexes intra_ext_tx_cdf by
fimode_to_intradir[filter_intra_mode] when use_filter_intra is set, NOT
by the block's ordinary mode -- which under filter intra is always
DC_PRED. Every read_plane call site passed the plain mode, so we read
the DC_PRED row where the stream had used D157_PRED. One wrong CDF row
desynced every coefficient read in the block from the first transform
unit onward.

Found by range ladder, after two rounds of hypotheses that the ladder
then disproved: the mode-info layer matched libaom in value AND range
through skip, mode, uv_mode, use_filter_intra, filter_intra_mode and
tx_depth; all_zero matched; tx_type was the first divergence, both sides
consuming exactly one symbol (37340 vs 42464) -- a wrong row, not a
missing or extra read. Two dead ends are recorded in the lane report so
they are not paid for twice: FILTER_INTRA_TAPS and the prediction
recursion are byte-identical to libaom, and the no-neighbour edge
fallback's shared `base` corner is correct.

Boundary sweep after the fix: 32x32 10/10, 24x24 10/10, 16x32 10/10,
32x16 8/10. The 32x16 residual is chroma-only with luma bit-exact and is
NOT closed -- it has its own round, and the boundary sweep becomes a
hard-asserting gate when it is.

Suite 267 passed / 0 failed.
Merge branch 'lane-rect16': HORZ/VERT intra strips below 16x16, and a vacuous gateAhmet Kaan Gümüş · 86a2b92
Merge branch 'lane-rect16': HORZ/VERT intra strips below 16x16, and a vacuous gate

The lane's parked in-flight commit carried a gate whose aomenc recipe was
the only one of 43 missing --passes=1, so aomenc silently ran two-pass and
wrote an empty stream: the gate decoded zero bytes and asserted its hit
counter against nothing. Fixed, with a !stream.is_empty() guard so the
class cannot recur silently, and I swept all 42 aomenc recipes on main --
none of the others is missing the flag.

The lane also re-checked its own premise before building on it, and it was
wrong: mandelbrot's frontmost partition_w16 blocker is PARTITION_HORZ at
mi=(0,7), not the VERT_B at mi=(3,2) the parked work targeted -- the
earlier claim had confused z-order recursion with raster mi position.

New: decode_leaf_rect, a real-mi-addressed sibling to decode_leaf8, needed
because decode_block_rect's px = c * SUB cannot address a HORZ/VERT
split's offset second strip. PARTITION_HORZ (16x8) and PARTITION_VERT
(8x16) at 16x16 now decode, skip-only, with per-mi record/skip/lf grid
bookkeeping and prev_leaf chaining.

Ceiling stated rather than faked: a coded (non-skip) strip below 16x16
needs rectangular-transform tables this decoder does not have, and is
refused by name. Mandelbrot now decodes past mi=(0,7) and stops there
instead.

Suite 267 passed / 0 failed.
fix(av1): filter-intra tx_type CDF row was the block's raw DC_PRED mode, not fimode_to_intradir(filter_intra_mode) -- desynced entropy stream at the first coefficient TU of every filter-intra block; 32x32/24x24/16x32 tiny-size gate goes 3/10,3/10,2/10 -> 10/10,10/10,10/10, 32x16 2/10 -> 8/10 (residual chroma-only defect open)Ahmet Kaan Gümüş · 3f037c3
fix(av1): filter-intra tx_type CDF row was the block's raw DC_PRED mode, not fimode_to_intradir(filter_intra_mode) -- desynced entropy stream at the first coefficient TU of every filter-intra block; 32x32/24x24/16x32 tiny-size gate goes 3/10,3/10,2/10 -> 10/10,10/10,10/10, 32x16 2/10 -> 8/10 (residual chroma-only defect open)

Also lands the EC_TRACE_COEFF per-symbol range ladder in read_coeffs (eob/base_eob/after_bases/sign/post_golomb tags) matching the oracle's decodetxb.c instrumentation added this round, and the all_zero/tx_type entry-range traces that isolated the divergence.
docs(rect16): r2 reportAhmet Kaan Gümüş · 3f2d6aeBrowse files
wip(tiny): per-symbol mode-info tracing, and the fixture-path probeAhmet Kaan Gümüş · c690c67
wip(tiny): per-symbol mode-info tracing, and the fixture-path probe

EC_TRACE_MODE_STEP-gated EC_ISTEP prints in the square read_intra_mode
and read_tx_size, plus an #[ignore]d probe_tiny_fixture_trace that
decodes a raw .obu from EC_TINY_FIXTURE_PATH so traces line up
byte-for-byte with a saved fixture instead of a regenerated one.

Purely additive; no logic changed. Committed by the orchestrator at the
agent's turn cap.
Merge branch 'main' into lane-rect16Ahmet Kaan Gümüş · 870526d
Merge branch 'main' into lane-rect16

Brings in 10-bit decode, inter-frame superres, loop restoration, the
rect64 qindex fix and the partition/tile work landed since 0bc2a83.
Git resolved it cleanly and `cargo check --workspace --all-targets` is
clean, so the lane's unverified in-flight edits from 34827e1 at least
still compile against current main.
wip(tiny): size-boundary sweep + trace probes for the silent-wrong-pixel defectAhmet Kaan Gümüş · d931dba
wip(tiny): size-boundary sweep + trace probes for the silent-wrong-pixel defect

Two #[ignore]d diagnostics in stream.rs (probe_tiny_frame_size_boundary,
probe_tiny_32x32_trace) and a comment in intra.rs recording why the
no-neighbour corner fallback is NOT the bug.

Measured, 10 seeds per size: 16x16 is 10/10 pixel-exact (so the earlier
report that 16x16 fails two thirds of the time was a different recipe
and does not hold); 32x32 and 24x24 fail 3/10; 16x32 and 32x16 fail
2/10; 48x48 and 64x64 are 10/10. The clean sizes are the ones that take
the SB-level PARTITION_NONE path at side=64, where filter_intra_size_class
returns None so filter_intra never fires -- consistent with the cause.

Toggling --enable-filter-intra=0 on the exact failing seed-45 32x32
stream flips it from mismatched to exact. Prediction math is ruled out:
FILTER_INTRA_TAPS and predict_filter_intra's recursion were checked
byte-for-byte against libaom reconintra.c:805-899.

Committed by the orchestrator at the agent's turn cap. The agent
believed it had reverted intra.rs; it had not -- the residue was
comment-only and is kept.
Merge branch 'lane-rect64q': rect64 dequant reads the running qindexAhmet Kaan Gümüş · 1cfbf53
Merge branch 'lane-rect64q': rect64 dequant reads the running qindex

decode_block_rect64 dequantized all three planes with the frame-constant
base_q_idx parameter it was handed, while every sibling path --
decode_block, decode_block_rect -- reads the running per-superblock
CURRENT_Q_IDX, which decode.rs:141-145 documents as the rule. The
function reaches maybe_read_delta_q through its own read_intra_mode_rect
call, so it updated that thread-local and then dequantized with its own
stale snapshot.

Merged as a latent-trap removal, with the negative result stated rather
than hidden: NO stream in this repository currently makes the difference
observable. The existing sb_rect gate traces 105/105 dequant calls with
base_q_idx == current_q_idx == 180 (its recipe forces delta_q_present=0),
and a sibling gate that drops --deltaq-mode=0 matched 15/40 attempts with
the drift counter still 0 -- aomenc's objective delta-q never chose a
nonzero delta on that small synthetic content. That gate is committed
#[ignore]d with its negative documented, and RECT64_QIDX_DRIFT_HITS stays
in the tree so the first stream that does drift says so out loud.

Also recorded, so neither claim is trusted twice: lane-part32's seed-42
SB(0,1) mismatch does NOT reproduce here -- a hand-regenerated identical
stream gives row 0 col 91 = 81, matching ffmpeg -- and that block has
eob_nonzero=false, so no dequant change could move its pixels either way.

Suite 266 passed / 0 failed, 20 ignored.
test(av1): instrument rect64 qindex drift, and record that nothing fires itAhmet Kaan Gümüş · 5361167
test(av1): instrument rect64 qindex drift, and record that nothing fires it

Adds RECT64_QIDX_DRIFT_HITS plus an EC_AV1_TRACE-gated `TRACE
rect64_dequant` line at each of decode_block_rect64's three dequant
sites, and an #[ignore]d sibling gate that drops --deltaq-mode=0 in the
hope aomenc's objective delta-q would vary q inside a rect64
superblock.

It does not, on this content: the existing sb_rect gate traced 105/105
dequant calls with base_q_idx == current_q_idx == 180, and the
delta-q-permitting gate matched 15/40 attempts with the drift counter
still 0. So the fix in 1d2c3bb is correct by construction -- every
sibling path reads CURRENT_Q_IDX, and decode.rs:141-145 documents that
as the rule -- but no stream in this repository currently makes it
observable. The counter is the instrument that will say so the moment
one does.

Committed by the orchestrator at the agent's turn cap.
Merge branch 'lane-hbd': 10-bit streams decode bit-exactAhmet Kaan Gümüş · 6b635d6
Merge branch 'lane-hbd': 10-bit streams decode bit-exact

Both of his AV1 films are yuv420p10le, so this is the wall his real
library actually hits. Four bit-depth assumptions were stacked behind
one another, each visible only once the one before it was fixed:

1. decode.rs passed a literal 8 as the bit_depth argument at all eight
   dequant call sites while quant.rs was already picking the right
   DC_QLOOKUP/AC_QLOOKUP row -- the whole frame came out ~4x low.
2. intra.rs's no-neighbour edge fallback (127/128/129) and dc()'s 128
   were 8-bit constants, so predictions went negative and clamped. This
   only appeared as a DIFFERENT failure shape after (1).
3. Deblock filter4/sclamp centring and the limit/blimit/hev_thr/flat
   thresholds needed << (bit_depth - 8). Correct per libaom
   loopfilter.c:517-628 but measured INERT on this fixture (identical
   diffs before and after) -- unexercised here, not dead.
4. cdef_filter_block read its primary-tap-set parity off pri_strength
   directly instead of pri_strength >> coeff_shift (libaom
   cdef_block.c:147). At 10-bit coeff_shift is 2, so pri_strength was
   always even and tap set {3,3} was silently never selected. That was
   the last 1/4096 pixel.

Gate a_real_aomenc_10bit_stream_decodes_pixel_exact: 0/4096 diffs.
The blanket "bit depth is not 8" refusal is gone, narrowed to the one
case that still reaches unported code -- superres.rs's upscale_row is
still &[u8].

Merge resolution: the dequant sites take main's per-plane quant deltas
AND the lane's bit_depth(); the superres margin keeps main's
inter-frame-capable take_last_frame_wide_margin plus the lane's
10-bit-with-superres refusal.

Suite 266 passed / 0 failed.