Commits
Commits on
00c1b3ff2d80d84fef71bb6208110dedbbd95fc42026-09-01
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.Merge branch 'lane-reqffmpeg': have_ffmpeg() asserts under EC_AV1_REQUIRE_FFMPEG/EC_AV1_REQUIRE_AOMENC (was silent-false, short-circuiting every aomenc gate to a green SKIP); same fix in 4 helper copiesAhmet Kaan Gümüş · 1c1fd67Browse files
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-hbd10': bit-depth-generic film grain synthesis and superres upscale; 10-bit refusals lifted with real-aomenc gates (verifier PASS, 269/0)Ahmet Kaan Gümüş · ae52c34Browse files
docs(av1): lane-palette2 r7 report -- GREEN, both charter steps gatedAhmet Kaan Gümüş · 16850feBrowse files
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): palette under a split luma transform, plus two palette desync fixesAhmet Kaan Gümüş · 4fbf701
feat(av1): palette under a split luma transform, plus two palette desync fixes - palette-Y prediction windowed per transform unit (decode.rs decode_block): with logical_tx != side each TU takes its own logical_tx-sized window of the block's index map instead of the whole-block buffer (which the FIRST unit would consume at the wrong stride); refusal "a palette block with a split luma transform (round 1)" lifted, counted by palette_split_tx_hits(). - filter_intra symbol is not written for a palette-Y block (av1_filter_intra_allowed, reconintra.h:77) -- we read one and desynced from every palette block <=32x32 (class symbol-consumption-gap); fixed on both the square (read_intra_mode) and rect (read_intra_mode_rect) paths. - palette_y_mode CDF row: the SB-top-row exclusion of the above neighbour belongs to the colour CACHE alone, not to av1_get_palette_mode_ctx, which reads plain xd->above_mbmi (pred_common.h:197). Applying it to the ctx made every SB in the frame's second SB row read the symbol off CDF row 0 while libaom used row 1 (class cdf-row-held-constant). - decode_leaf_rect reads palette syntax with its own real ctx/cache; the sub-16x16 rect palette RECONSTRUCTION stays refused by name. Gates (aomenc --enable-palette=1 --tune-content=screen --enable-rect-partitions=1, min/max-partition-size=16/64): a_real_aomenc_stream_with_rect_screen_content_ decodes_pixel_exact 14/70 pixel-exact, 13 through a split-transform palette block, palette_split_tx_hits=356; a_real_aomenc_stream_with_rect_palette_decodes_pixel_ exact 14/70, palette_rect_hits=78.
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.
wip(inter8): session restart -- uncommitted builder state preserved by orchestratorAhmet Kaan Gümüş · 9f0cf5aBrowse files
wip(rectx): session restart -- uncommitted builder state preserved by orchestratorAhmet Kaan Gümüş · 0457febBrowse files
wip(txselect): session restart -- uncommitted builder state preserved by orchestratorAhmet Kaan Gümüş · d47ed65Browse files
wip(seg): session restart -- uncommitted builder state preserved by orchestratorAhmet Kaan Gümüş · 32f07e4Browse files
wip(rectsplit): session restart -- uncommitted builder state preserved by orchestratorAhmet Kaan Gümüş · b1f001aBrowse files
wip(sub8): session restart -- uncommitted builder state preserved by orchestratorAhmet Kaan Gümüş · 00f1f0dBrowse files
wip(scaledref): session restart -- uncommitted builder state preserved by orchestratorAhmet Kaan Gümüş · c551af1Browse files
wip(part32): r4 capped at 75 turns -- SB-level HORZ/VERT 64 work in progress, uncommitted state preserved by orchestratorAhmet Kaan Gümüş · ad9ad14Browse files
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.
docs(av1): lane-tiny r4 report -- chroma tx size in the deblocker, tiny-size sweep promoted to a hard gateAhmet Kaan Gümüş · 9f31501Browse files
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.docs(part32): r2 report -- scan-table root cause pinned, fix not landedAhmet Kaan Gümüş · 4f7d6d1Browse files
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.
wip(part32): report -- gate green, workspace check clean, one pre-existing decode_block_rect64 defect exposed (out of scope, named in report)Ahmet Kaan Gümüş · c3dde3fBrowse files
wip(part32): intra 32x32 AB arms (HORZ_A/HORZ_B/VERT_A/VERT_B) decode, gated 40/40 pixel-exact, all 4 hit counters fireAhmet Kaan Gümüş · 6137e93Browse files
docs(av1): lane-palette2 r6 report -- RED, root cause traced to decode_block_rect64Ahmet Kaan Gümüş · 7ed7ffcBrowse files
test(av1): lane-palette2 r6 -- gate the broad rect-screen-content case; RED, root cause identifiedAhmet Kaan Gümüş · 083ca11
test(av1): lane-palette2 r6 -- gate the broad rect-screen-content case; RED, root cause identified Added rect_screen_content_hits (decode.rs) at the exact site the removed blanket refusal used to guard in read_intra_mode_rect: allow_screen_content_tools && a valid bw/bh, independent of whether the block ends up using a palette -- the case r5's narrower palette_rect_hits almost never observes (RD picks PARTITION_NONE for palette almost always, per r5's own measurement). New gate a_real_aomenc_stream_with_rect_screen_content_decodes_pixel_exact (stream.rs) reuses r5's --min/max-partition-size=64 recipe (proven live to dodge the 32x32-level AB-partition quirk), hard-asserts the new counter moved before comparing pixels. It fires and finds a REAL pixel mismatch: smptebars 128x128 cq=15, rows 0-63 (top two 64x64 SBs, ordinary square palette path) match ffmpeg exactly; rows 64-127 (bottom two SBs) are wrong wholesale. EC_AV1_TRACE isolates the corrupted SBs to decode_block_rect64 VERT splits (mi_row=16 mi_col=16 bw=32 bh=64, mi_col=24 bw=32 bh=64) -- NOT a palette block (no EC_PAL trace inside either), an ordinary intra rect64 reconstruction. This matches the ledger's existing dead-end ([[lane-sbpart-r9]]: "root cause is a sibling function decode_block_rect64 -- ... real-residual TX_32X64/64X32 truncation is fixed and gated" is still open) -- a pre-existing decode_block_rect64 defect, unrelated to r4's palette wiring, newly REACHABLE now that the blanket screen-content refusal is gone. r4's refusal_inventory.rs edit is left untouched (still unverified either way -- palette reconstruction itself was never exercised by this failing case). The refusal is NOT re-added: the charter's instruction on mismatch is to bisect and say so, not to revert.
docs(av1): lane-palette2 r6 charter -- gate the broad rect-strip case, not the rare palette-on-rect oneAhmet Kaan Gümüş · 09120e8Browse files
test(av1): lane-palette2 r5 -- gate for r4's rect-strip palette, currently redAhmet Kaan Gümüş · 0f46093
test(av1): lane-palette2 r5 -- gate for r4's rect-strip palette, currently red Wrote a_real_aomenc_stream_with_rect_palette_decodes_pixel_exact, driving decode_stream directly and hard-asserting palette_rect_hits fired before any pixel comparison. Measured live: smptebars/rgbtestsrc at real aomenc RD never land a clean rect-strip palette block -- 32x32-level AB partitions dominate regardless of --enable-ab-partitions (confirmed byte-identical output with =0 vs =1, same quirk as lane-sbpart-r2's SB-level AB one level up), and forcing --min/max-partition-size=64 to dodge that just makes RD prefer PARTITION_NONE (whole-SB square palette) over HORZ/VERT every time across a 70-attempt size/cq sweep. Gate is red for a real reason -- it never observed a genuine attempt -- so r4's rect-strip implementation stays unverified and its refusal is NOT lifted this round (see lanes/palette2-r5.report.md).
wip(palette2): r4's rect-strip palette implementation at the cap -- compiles clean, gate not yet written (state unverified by me)Ahmet Kaan Gümüş · 9f6023cBrowse files
docs(av1): lane-palette2 r4 charter -- rect-strip palette on a clean baseAhmet Kaan Gümüş · ddf6af5Browse files
docs(sub8): round 3 report -- partition-context fix, range-ladder trace, still redAhmet Kaan Gümüş · 915be45Browse files
wip(sub8): fix split-vs-8x8 partition context bit (side_mi 8->4); real divergence traced upstream of sub8 codeAhmet Kaan Gümüş · 1d65b2dBrowse 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.
wip(sub8): the sub8-split gate, uncompiledAhmet Kaan Gümüş · 224ed16
wip(sub8): the sub8-split gate, uncompiled Gate a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact added at stream.rs, never compile-checked -- lane-sub8 r1 hit its turn cap mid `cargo check`. Committed by the orchestrator so the round's work is not lost; the next round compiles it first.
wip(sub8): decode PARTITION_SPLIT of 8x8 into four BLOCK_4X4 leaves (intra); HORZ/VERT and inter sub8x8 refused by nameAhmet Kaan Gümüş · c7ed79bBrowse files
wip(rectx): round 2's in-flight work, committed at the turn cap by the orchestratorAhmet Kaan Gümüş · 1122732
wip(rectx): round 2's in-flight work, committed at the turn cap by the orchestrator State unverified: the agent stopped mid-run with no report.
wip(rectx): scan_8x4/4x8 asymmetric pin test vs real libaom scan.cAhmet Kaan Gümüş · 6c0af34
wip(rectx): scan_8x4/4x8 asymmetric pin test vs real libaom scan.c Sweeps the pair together against literal transcriptions of libaom's default_scan_4x8/default_scan_8x4 (av1/common/scan.c) read from ~/.cache/aom-oracle/src. A same-orientation bijection check cannot catch a swap between the two; this pins both arrays element-for- element against sources that differ from each other, so a swap fails deterministically. cargo test -p ec-av1 --lib: 267 passed, 0 failed prior to this test; refusal_inventory pins survived round 1's two refusal removals unmodified.
wip(rectx): non-skip TX_16X8/TX_8X16 rect-leaf coefficient decodeAhmet Kaan Gümüş · 6253922
wip(rectx): non-skip TX_16X8/TX_8X16 rect-leaf coefficient decode Uncommitted at the agent's turn cap, committed by the orchestrator. `cargo check -p ec-av1 --lib` clean; NO test run, NO gate, NO pixel-exact proof yet. Adds EOB_PT_128_LUMA and EOB_PT_32_CHROMA (the only tables the size actually needed -- av1_get_ext_tx_set_type puts TX_16X8/TX_8X16 under use_reduced_set in the SAME EXT_TX_SET_DTT4_IDTX the square Luma16 set already reads, so the adapted intra_tx_type_16[mode] table is correct to share and no new tx_type CDF was needed); TxbSet::LumaRect16x8 and ::ChromaRect8x4; SCAN_8X4/SCAN_4X8; an optional tx_type symbol in read_coeffs_rect, which previously hard-refused it; and the non-skip branch of decode_leaf_rect wired to real coefficient decode through the existing around_mi_rect/record_mi_rect machinery. Note for whoever reads the scan constants: this repo's SCAN_WxH naming is axis-swapped from libaom's -- repo SCAN_16X8 is libaom default_scan_8x16 verbatim. The new pair follows that established convention rather than re-deriving it, and it is NOT yet covered by a transposed-pair test.
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.
docs(av1): lane-tiny r3 report -- root cause, fix, gate deltas, open residualAhmet Kaan Gümüş · c080720Browse files
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.