Commits
Commits on
71d8f67fcf39c2cabd212e1080cd96c412cc0b3a2026-08-30
fix(av1): palette-Y refuses by name instead of decoding to wrong pixelsAhmet Kaan Gümüş · 71d8f67
fix(av1): palette-Y refuses by name instead of decoding to wrong pixels r3's gate proved a real palette-Y block reconstructs to pixels that mismatch libaom despite every symbol read (colours, index-map wavefront, context, CDF table) checked line-for-line correct -- and left the gate SKIPping on that mismatch, which hid a real stream decoding to silently wrong pixels from the whole suite. decode.rs's palette_y_mode arm now returns a named refusal right after decoding the colours/map (palette_hits still fires, so the read path stays proven non-vacuous) instead of handing the wrong reconstruction to the caller; all the landed reconstruction code stays in place, unreachable until the pixel desync is found. The gate (a_real_aomenc_stream_with_palette_y_refuses_by_name, renamed from ..._decodes_pixel_exact) now hard-asserts that refusal fires with palette_hits > 0, instead of SKIPping on a mismatch. Also adds an EC_TRACE_PALETTE=1 rung to the aom-oracle instrumentation (decode_color_map_tokens's per-pixel range + av1_read_uniform's map[0]) for the next round's range-ladder bisect, per charter job 2. EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 235 passed, 0 failed, 17 ignored.
docs(av1): lane-palette r4 charter -- no SKIP on a known-wrong result; ladder the desyncAhmet Kaan Gümüş · 97e8e94
docs(av1): lane-palette r4 charter -- no SKIP on a known-wrong result; ladder the desync
test(av1): real-aomenc palette-Y gate (smptebars, hue=s=0); palette_hits fires, pixel mismatch documentedAhmet Kaan Gümüş · 7e82cbf
test(av1): real-aomenc palette-Y gate (smptebars, hue=s=0); palette_hits fires, pixel mismatch documented Verified r2's two milestones green first: 234/0 (matches the tree's baseline, nothing to commit for that step). New gate proves the reconstruction path is non-vacuous (palette_hits hard-asserted) but the reconstructed pixels mismatch ffmpeg's decode of the same bytes -- read_palette_colors_y, read_uniform, palette_color_index_context and the PALETTE_Y_COLOR_INDEX CDF table were all checked line-for-line against the aom-oracle source and match exactly, so the actual desync site is still unlocated (documented in the gate's own doc comment and lanes/palette-r3.report.md). SKIPs rather than fails so the suite stays green; removes enable-palette from gate_coverage.rs's NEVER_EXERCISED since a real block now reconstructs from it.
docs(av1): lane-palette r3 charter -- verify r2's milestones, then the gateAhmet Kaan Gümüş · 8671b8fBrowse files
feat(av1): palette-Y reconstruction (colour cache, delta colours, wavefront index map, prediction wiring)Ahmet Kaan Gümüş · c2f121e
feat(av1): palette-Y reconstruction (colour cache, delta colours, wavefront index map, prediction wiring) Types in report sections 3-6: Neighbours above/left_palette_size/colors + record_palette_y + palette_ctx_and_cache (av1_get_palette_mode_ctx + av1_get_palette_cache, SB-row-boundary above-null rule); read_palette_colors_y (cache-accept bits + delta-coded remainder + merge_colors), read_uniform, palette_color_index_context (weighted neighbour score + selection sort + hash lookup table), decode_color_index_map (wavefront diagonal scan). read_intra_mode gains a `palette: Option<(ctx, cache)>` param: Some at decode_block's key-frame path (real decode), None at decode_leaf8 (old refuse-unconditionally behaviour preserved bit-for-bit). Palette prediction reaches PlaneBuf::reconstruct through a PALETTE_PRED thread-local (the existing ENABLE_EDGE_FILTER idiom). A palette block under a split luma transform refuses by name (untested against a real stream this round). palette_uv_mode still refuses (UV reconstruction is stage 2) but its context is now the block's own real just-decided Y palette use. Refusal strings changed: - REMOVED: "a block that actually uses a palette (Y) -- reconstruction is out of scope" from decode_block's key-frame path (still present, unreachable-changed, at decode_leaf8's excluded call site). - ADDED: "a palette block with a split luma transform (round 1)". - UNCHANGED (still present): the UV palette refusal string, verbatim. cargo check -p ec-av1 --tests: clean. Full suite not run this round (turn budget) -- next round's first job.
feat(av1): palette colour-index CDF tables + 4-site wiringAhmet Kaan Gümüş · 28f95f6
feat(av1): palette colour-index CDF tables + 4-site wiring PALETTE_Y_COLOR_INDEX / PALETTE_UV_COLOR_INDEX (entropymode.c), indexed [n-2][color_ctx], transcribed from AOM_CDFn macros with zero-padding past each row's real n+1 entries (call site slices [..=n]). Wired into Cdfs: struct fields, per-frame counter reset (reset3, generic), defaults array. Inert until stage 3-4 reads them.
docs(av1): lane-palette recon -- full stage-1 palette-Y implementation plan, no code landed (budget spent deriving the algorithm against libaom)Ahmet Kaan Gümüş · e76206dBrowse files
docs(av1): lane-palette charter -- palette reconstruction then intrabcAhmet Kaan Gümüş · e23b762Browse files
test(av1): pin the coding tools no real-aomenc gate exercisesAhmet Kaan Gümüş · 21b2356
test(av1): pin the coding tools no real-aomenc gate exercises lane-chroma r1 found reconstruct()'s `smooth_neighbor` hardcoded false -- wrong whenever a directional block neighbours a smooth-mode one -- and it had survived twenty real-aomenc gates because every one of them passes --enable-smooth-intra=0. The corner-cut was not hidden by a weak assert; it was hidden by the gates' encoder recipes, which no assert had ever looked at. gate_coverage derives, from the gate source itself, the set of aomenc tools switched off in all 20 gates and on in none -- provably never exercised by a real stream -- and pins it: cdef, intrabc, paeth-intra, palette, smooth-intra. An unlisted tool joining that set fails the test, and so does an entry the gates have since started enabling, so a lane closing a hole must delete its line. Negative-checked: dropping the enable-cdef entry fails with exactly that name. Suite 234 passed / 0 failed.
style(av1): thread-local hit counters take line comments, not doc commentsAhmet Kaan Gümüş · 7895d2a
style(av1): thread-local hit counters take line comments, not doc comments The atomics->thread_local conversion (3cfbe37) left the 28 counter doc comments attached to a macro invocation, which rustdoc does not document: 28 unused_doc_comments warnings. Comments kept verbatim, /// -> //, and the five that still claimed 'across every call in the process' now say 'on the current thread' -- the counters stopped being process-global in that commit.
Merge branch 'lane-rectwire2': rect coefficient decode lands, pixel-exactAhmet Kaan Gümüş · 94033af
Merge branch 'lane-rectwire2': rect coefficient decode lands, pixel-exact The desync that held this lane for three rounds was an extra symbol, not a wrong table. decode_block_rect read the tx-depth symbol unconditionally, where both square paths gate their read_tx_size on `tx_select`. That symbol exists only under TX_MODE_SELECT, and several gate recipes pass --enable-tx-size-search=0, so the encoder wrote none and the decoder consumed one that was never there -- desyncing the tile from that point, which is why both 32x16 strips of the pinned quadrant were wrong from their first pixel. r4's own range ladder had already named it without recognising it: the oracle's range was unchanged across its whole block, 58692 either side, while ours moved 58692 -> 43570. Equal ranges either side of a symbol mean the symbol was never consumed -- a cheaper conclusion than a near-certain CDF, and it needed no further instrumentation. r4 read it as a wrong CDF row and refused to land on an unconfirmed suspect, which was the right call on the evidence it had. Free-partition gate: 15 pixel-exact matches of 40 with zero mismatches and rect_coeff_hits=38, against 11 matches and rect_coeff_hits=0 under the refuse-by-name posture. The firing count is a hard assert again. Full lib suite 232 passed / 0 failed.
fix(av1): gate the rect strip's tx-depth read on tx_selectAhmet Kaan Gümüş · 8a896ab
fix(av1): gate the rect strip's tx-depth read on tx_select The tx-depth symbol exists only under TX_MODE_SELECT. Both square paths gate their read_tx_size on `tx_select`; decode_block_rect read it unconditionally. Several gate recipes pass --enable-tx-size-search=0, so the encoder wrote no such symbol and the decoder consumed one that was never there, desyncing the tile from that point -- which is why both 32x16 strips of the pinned quadrant came out wrong from their very first pixel. r4's own range ladder had already named it without realising: the oracle's range was UNCHANGED across its whole block (58692 either side) while ours moved 58692 -> 43570. Equal ranges either side of a symbol mean the symbol was never consumed. r4 read it as a wrong CDF row and refused to land on an unconfirmed suspect, which was right on the evidence it had. With the read gated, the real coefficient decode is pixel-exact: the free-partition gate reports rect_coeff_hits=38 and 15 pixel-exact matches of 40 with zero mismatches, where the refuse-by-name posture gave 11 matches and rect_coeff_hits=0. The hard assert on the firing count is restored. Full lib suite 231 passed / 0 failed in this worktree.
fix(av1): make the gate hit-counters thread-local so a delta is the test's ownAhmet Kaan Gümüş · 5c21ffa
fix(av1): make the gate hit-counters thread-local so a delta is the test's own The firing counters were process-global atomics and cargo runs tests in parallel threads, so a gate's `hits() > before` delta could be satisfied by a SIBLING gate's increments -- the gate would pass without its own feature ever firing, which is the vacuous-gate failure this batch has already fixed twice by other means. Eleven gates took that delta without holding the counter lock. Measured before the fix: the free-partition gate reported rect_partition_hits=9 and partab_hits=2 alone, and 18 and 4 inside the full suite. Same stream, same decode, double the count -- the difference was other tests. Serializing those eleven on the existing lock fixed the correctness and took the suite from 67 s to over 600 s, because it serializes every slow aomenc gate against every other. Thread-local counters give the same isolation with no serialization at all: the decoder runs single-threaded, so each test thread's counts are inherently its own, and the added locks come back out. After: the same gate reports 9 and 2 in both contexts. Full lib suite 232 passed / 0 failed in 67 s.
wip(av1): rect strip bisection (orchestrator-committed at the turn cap)Ahmet Kaan Gümüş · 2ea3bfcBrowse files
Merge branch 'lane-fixdet': the gate fixtures were never reproducibleAhmet Kaan Gümüş · 0169a4e
Merge branch 'lane-fixdet': the gate fixtures were never reproducible ffmpeg's `gradients` lavfi source ignores its `seed` for colour selection. Hashing one identical command line five times gave five different fixtures, and twenty gate sites built their input that way -- so those gates have never once had a reproducible input, and a pin captured from such a run could not be regenerated. The encoder was not the variable: six aomenc runs over a fixed y4m produced identical bytes. That isolation matters, because it corrects an earlier claim of mine that pinning the encoder's threads had fixed the filter_intra gate. It had not -- that gate still failed about one run in fifteen in isolation. Freezing the colours would have made the source reproducible and quietly destroyed the per-attempt content sampling these gates depend on to fire their features, which is a class this repo has already been bitten by. Deriving the colours FROM the seed keeps both: one helper now serves all twenty sites, with a guard test asserting that one seed reproduces byte-identically and two seeds differ. Re-measured after the fix: the filter_intra gate passes 20/20 and 15/15 in two independent sets of isolated runs, and the free-partition gate gives identical counts across three runs where it previously moved. No gate failed consistently, so this nondeterminism was not hiding a decoder defect. An unknown number of past failures filed against aomenc attempt selection were really the source changing underneath. That is a real phenomenon, which is what made it a plausible cover story. Full lib suite 232 passed / 0 failed.
docs(av1): lane-fixdet r1 reportAhmet Kaan Gümüş · b4bac81
docs(av1): lane-fixdet r1 report VERDICT FIXED. filter_intra 14/15 -> 20/20; free-partition counts stable byte-identical across 3 isolated runs; full suite 232/0. Confirmed the one full-suite-vs-isolated count discrepancy is a shared static AtomicUsize (RECT_PARTITION_HITS/PARTAB_HITS in decode.rs) racing across tests in the same process, not residual fixture nondeterminism -- filed as deferred, out of this lane's scope.
fix(av1): route all 20 gradients gate fixtures through seed-derived coloursAhmet Kaan Gümüş · 5967ddb
fix(av1): route all 20 gradients gate fixtures through seed-derived colours ffmpeg's `gradients` lavfi source ignores its own seed= for colour selection -- measured, five identical command lines gave five different fixtures. Add gradients_source(seed, w, h, tail) which derives c0..c3 from the seed with a plain integer hash (still passes seed= through too), verified reproducible per-seed while keeping per-attempt variety across seeds. All 20 stream.rs call sites now build their fixture through it. Guard test gradients_source_is_reproducible_per_seed pins same-seed byte-identical / different-seed differs.
docs(av1): lane-fixdet r1 charter (gate fixtures are not reproducible)Ahmet Kaan Gümüş · df7e2d1Browse files
feat(av1): trace the oracle's intra key-frame mode info tooAhmet Kaan Gümüş · c8e7f7e
feat(av1): trace the oracle's intra key-frame mode info too The rect-strip desync could not be bisected because libaom's key-frame path had no traced symbol at all between the partition read and the first coefficient block -- EC_TRACE_MODE covered only decodemv.c's inter path. That gap is exactly where the defect hides. EC_TRACE_MODE now also wraps read_intra_frame_mode_info and prints the msac range either side, with the decoded mode, uv_mode, skip and tx size. Same wrapper-around-impl shape, same idempotence guard, still silent when unset -- verified emitting on a real stream and silent without the flag.
Merge branch 'lane-rectwire': rect coefficient infrastructure, decode still refusedAhmet Kaan Gümüş · 7e312c0
Merge branch 'lane-rectwire': rect coefficient infrastructure, decode still refused Three rounds, landing on a refusal rather than a decode, which is the correct outcome for what was proven. r1 did the recon and deliberately did not land code with the budget it had left -- the right call for a coefficient-decode edit, where the failure mode is a silent desync. Its recon narrowed the job sharply: decode_block_rect is called from only four sites at fixed size pairs, get_txsize_entropy_ctx reduces to txsize_sqr_up_map so most TxbSet fields reuse the square ones, and the only genuinely new pieces are two eob CDF table sets. r2 landed the wiring: those two CDF sets at all four sites, the four literal scan tables (verified byte-for-byte, and confirmed NOT reproducible from the square zigzag formula generalized -- the transcription was necessary, not lazy), the rect context helpers, and a real non-skip decode path. r3 triaged the mismatch r2 reported honestly rather than shipped. It is a real deterministic desync, not an attempt-selection flake: 93.5% of the frame's luma mismatches concentrate in the one PARTITION_HORZ quadrant, and both 32x16 strips are wrong from their first pixel. All three of r2's own suspects were cleared against libaom source. So the non-skip branch refuses by name again and the decode logic stays in the file, unreachable, for the round that isolates the divergence. The gate's RECT_COEFF_HITS assert is downgraded to a note, since it is now zero by construction -- a hard assert that cannot fire is the vacuous-gate trap this batch already fixed once. Full lib suite 231 passed / 0 failed; the free-partition gate is green with zero mismatches.
Merge branch 'lane-gm2': the mv-stack's missing global-motion fallbackAhmet Kaan Gümüş · dd73232
Merge branch 'lane-gm2': the mv-stack's missing global-motion fallback Root cause of the last global-motion refusal, and it was not in the warp path at all. The single-ref mv-stack fell back to (0,0) when the neighbour scan came up short, where libaom falls back to the querying block's own gm_get_motion_vector for its ref frame. That is invisible whenever a live ref's global motion is identity or translation -- the fallback value is (0,0) either way -- and wrong the instant a ref carries real ROTZOOM and a block needs the fallback, such as the first block of a frame, which has no neighbours. r5 spent a round proving the refusal named a correlate: the failing pixel belonged to a plain NEWMV block against GOLDEN that never enters the global-warp branch, so "more than one active ROTZOOM slot" described the configuration the defect showed in, not the defect. r6 then walked the coefficient/mode range ladder the new oracle instrument made possible: the range matched exactly either side of the block's mode info (34391 -> 46688 on both sides), so consumption was bit-exact and the decoded mv still differed -- a construction bug, which is what it turned out to be. The multi-slot refusal is gone. On this merge the interintra-wedge gate decodes 40 of 40 attempts pixel-exact with zero refusals; it was refusing 27 of 40 when this batch started. Full lib suite 231 passed / 0 failed. AFFINE global models stay refused -- unproven, not broken.
fix(av1): revert rect coeff decode to refuse-by-name -- desync found, not isolatedAhmet Kaan Gümüş · 3bebc9d
fix(av1): revert rect coeff decode to refuse-by-name -- desync found, not isolated lane-rectwire r3: pinned stream rectwire-flake-1.obu (seed 55) reproduces deterministically and shows a genuine desync in r2's real (non-skip) 32x16/16x32 coefficient decode (93.5% of frame-0 luma mismatches land inside the one HORZ-split quadrant, both strips ~100% wrong from their first pixel). r2's three named suspects (base_ctx_rect offsets, chroma skip-ctx formula, dc_sign_ctx index) all cross-checked byte-for-byte against real libaom source and cleared. Range-ladder bisection stalled on the intra key-frame path having no traced symbol between partition and first coefficient in the oracle; next round's first move is patching that into aomdec. Reverted decode_block_rect's non-skip branch to refuse by name (r1 behavior); RECT_COEFF_HITS gate assert downgraded back to a SOFT-NOTE. Free-partition gate green (29 refusals incl. 3 new named ones, 11 matches, 0 desyncs), full lib suite 231/0.
docs(av1): lane-gm r6 report -- multi-slot ROTZOOM refusal root-caused and liftedAhmet Kaan Gümüş · b7f796cBrowse files
fix(av1): mv-stack single-ref predictor falls back to global motion, not zeroAhmet Kaan Gümüş · 43e5d8c
fix(av1): mv-stack single-ref predictor falls back to global motion, not zero Root cause of lane-gm r4/r5's "more than one concurrently active ROTZOOM/AFFINE ref slot" refusal, found by range-laddering the r5 pin against a new aomdec EC_TRACE_MODE instrument: libaom's setup_ref_mv_list fills any mv_ref_list slot the neighbour scan left short with gm_get_motion_vector for that block's own ref, not zero. Our find_mv_stack_with_sign_bias used (0, 0) -- invisible whenever the live ref's global motion is itself identity/translation, wrong the moment it's a real ROTZOOM/AFFINE and a block's own stack (e.g. the very first block of a frame, no neighbours) comes up short. Symbol consumption was already bit-exact (rng matched aomdec before/after mode info); only the predictor value was wrong. Fixed at the fallback (nearest_mv/near_mv now default to gm_mv(gm, ref_frame)); the r5/r6 pin decodes all 24 frames byte-exact through the unmodified decode_stream. The multi-slot refusal that was masking this is lifted (AFFINE-on-single-ref refusal stays). Wedge gate: 10/40 matches -> 33/40 (7 remaining refusals are all an unrelated screen-content-tools capability gap). Full ec-av1 --lib suite: 230/231 green (1 filter_intra gate flake, confirmed non-regression by standalone rerun -- ok).
feat(av1): coefficient and mode-info range-ladder rungs for the oracleAhmet Kaan Gümüş · 3e41e62
feat(av1): coefficient and mode-info range-ladder rungs for the oracle Two lanes stalled on the same missing instrument: the oracle's aomdec traced only read_partition, so a desync inside a coefficient block or inside the mv-stack/DRL/mv reads had no ladder to walk. Partition granularity is far too coarse for either. EC_TRACE_COEFF=1 wraps av1_read_coeffs_txb and prints the msac range before and after every coefficient block, keyed by plane/row/col/tx_size. EC_TRACE_MODE=1 wraps read_inter_block_mode_info and prints the range either side of a block's mode info, with the resulting mode, both refs and mv0. Same wrapper-around-impl shape as the existing partition rung, same idempotence guard, and both are env-gated: an uninstrumented run emits nothing, verified. Building the instrument is the first subtask, not the excuse.
Merge branch 'lane-screen2': palette syntax on inter-frame intra sub-blocksAhmet Kaan Gümüş · a447d85
Merge branch 'lane-screen2': palette syntax on inter-frame intra sub-blocks Inter frames with allow_screen_content_tools decode now, and the whole-frame refusal is gone entirely rather than narrowed. The AB-partition gate refused 6 of 40 attempts on that string; it refuses none. The round corrected a scope assumption worth recording: libaom's read_intra_block_mode_info -- the inter-frame intra reader -- has no use_intrabc call at all. intrabc is intra-frame-only by spec dispatch, since av1_read_mode_info branches on frame_is_intra_only, so this path needed palette wiring only. Genuine palette or intrabc use still refuses by name at any frame type, as do rect intra strips in screen-content frames. Full lib suite 231 passed / 0 failed.
wip(av1): rect coefficient wiring (in progress, orchestrator-committed at the turn cap)Ahmet Kaan Gümüş · a27a535Browse files
docs(av1): lane-gm r5 -- localize (not fix) frame14 multi-slot-rotzoom mismatchAhmet Kaan Gümüş · 42d6aa0
docs(av1): lane-gm r5 -- localize (not fix) frame14 multi-slot-rotzoom mismatch Recaptured the lost r4 pin (seed 43, frame 14, row0/col18, determinism-verified 2x). Proved the mismatched pixel comes from a plain NEWMV/GOLDEN translational block that never enters the new global-warp code path at all (only 7 blocks in the whole 24-frame stream ever do, and mi=(0,0) isn't one of them) -- ruling out CDEF/LR/deblock/hidden-frame amplification along the way. Root cause still open: likely a per-frame mv-stack/NEWMV-predictor value that should vary per ref but doesn't when GOLDEN+BWDREF are both concurrently ROTZOOM. Range-ladder step needs an aomdec decodemv.c EC_TRACE patch not built this round. Refusal unchanged.
feat(av1): thread allow_screen_content_tools palette consumption into inter-frame intra sub-blocksAhmet Kaan Gümüş · ad21245
feat(av1): thread allow_screen_content_tools palette consumption into inter-frame intra sub-blocks decode_inter_block/decode_inter_block8's intra-sub-block branches (libaom's read_intra_block_mode_info) now read the same PALETTE_Y_MODE/PALETTE_UV_MODE symbols read_intra_mode already consumes for key frames, gated by the same av1_allow_palette bsize check, reusing the palette_bsize_ctx(side)/0-ctx corner-cut. Confirmed against decodemv.c: read_intra_block_mode_info has NO use_intrabc call at all (intra-frame-only symbol, av1_read_mode_info dispatches on frame_is_intra_only) -- narrowed charter's intrabc scope for this path accordingly. Removed stream.rs:169's remaining frame_type != Key && allow_screen_content_tools whole-frame refusal now that both key and non-key intra paths consume the syntax. 231/0 lib suite unchanged (bit clear on every existing stream -> inert).
docs(av1): rectwire r1 report -- design worked out, not landedAhmet Kaan Gümüş · 46dcc37
docs(av1): rectwire r1 report -- design worked out, not landed Scan-table transpose, rect eob-context reduction, and the two missing eob_pt CDF table sets (512-luma, 128-chroma) all cross-checked against real libaom source with byte-level verification. Not implemented this round: threading base_q_idx through decode_block_rect's four call sites plus a real coefficient-decode desync risk was more edit-and- verify surface than the remaining turn budget could safely absorb. Full wiring plan + exact CDF values in lanes/rectwire-r1.report.md for the next round.
docs(av1): lane-rectwire r1 charter (wire rect transforms into decode)Ahmet Kaan Gümüş · 8775a26Browse files
Merge branch 'lane-gm': non-IDENTITY global motion decodes through the warp pathAhmet Kaan Gümüş · 384a874
Merge branch 'lane-gm': non-IDENTITY global motion decodes through the warp path Four rounds. The first three ported the syntax correctly -- gm_get_motion_vector, the mvstack neighbour substitution, the is_global_mv_block vs is_nontrans_global_motion split -- and the wedge gate still mismatched, because every check that compared mv VALUES passed. A range ladder settled it: our msac range and the instrumented aomdec's were both 38664 at the offending block, so entropy was in sync and the defect was prediction-side. libaom's allow_warp has a global_warp_allowed branch that predicts every is_global_mv_block block with the full per-pixel affine warp, independent of motion_mode; this decoder only ever warped for local WARPED_CAUSAL and fell back to translational MC on the block-centre mv -- a centre-point approximation whose error grows with distance from the centre, which is exactly the error shape that was observed. r4 implements that path, reusing the existing warp_affine and shear machinery rather than writing a second one. The seed-43 pin's frame 1 luma, the divergence r3 root-caused, now matches, as do frames 0-13. The blanket "any non-IDENTITY global motion" refusal is replaced by two named ones: AFFINE models, and more than one concurrently active ROTZOOM/AFFINE ref slot -- the latter is a real residue r4 localized but did not root-cause, and refusing it beats guessing. Also fixed en route: gm_get_motion_vector was missing the -1 on both block-centre offsets that libaom's block_center_x/y apply. Full lib suite 231 passed / 0 failed. The wedge gate's match count is 11-16 of 40 across runs -- it selects a different aomenc attempt each run, so single-run counts from any one round are not comparable.
feat(av1): global-warp prediction for single-ref GLOBALMV (allow_warp's global_warp_allowed branch)Ahmet Kaan Gümüş · eed6f8c
feat(av1): global-warp prediction for single-ref GLOBALMV (allow_warp's global_warp_allowed branch) Wires global_motion[ref] into crate::warp::global_warp_params (reuses find_projection's get_shear_params, no second warp implementation) for every single-ref is_global_mv_block, gated independent of motion_mode matching libaom's allow_warp exactly (local WARPED_CAUSAL short-circuits first, else-if global). Pin gm-seed43.obu: frame 1 luma mismatch (r3's root cause) now MATCH; frames 0-13 all match. Frame 14+ hits a NEW, narrower, distinct shape (two ref slots concurrently ROTZOOM) -- refused by name rather than guess-fixed. stream.rs's whole-frame refusal narrowed from "any non-IDENTITY global motion" to two named remaining gaps: AFFINE models, and more-than-one concurrently active ROTZOOM/AFFINE ref slot. Wedge gate: 27/40->30/40 other-capability refusals (10 matches, wii_hits=4), full lib suite 227/0 unchanged.
docs(av1): lane-gm r3 report (root cause = missing global-warp prediction path)Ahmet Kaan Gümüş · 4fc67a0Browse files
Merge branch 'lane-recttx': rectangular inverse transforms, all 14 sizes pinnedAhmet Kaan Gümüş · f4ec6fe
Merge branch 'lane-recttx': rectangular inverse transforms, all 14 sizes pinned The inverse transform path is (w, h) now, with the old side-taking entry points as thin wrappers so no call site moved. The rect scale round2(c * 2896, 12) fires only when |log2w - log2h| == 1, and row_shift_wh carries all 19 sizes from libaom's av1_inv_txfm_shift_ls. Every one of the 14 rectangular sizes is pinned by checksum against the real libaom 1D kernels, probed with an asymmetric coefficient block so an axis swap cannot hide -- the failure this work was most likely to ship. The square path is proven bit-identical by value, not merely by a green suite. This is the primitive, not the feature: decode.rs is untouched, and using it still needs rect scan order, rect eob context, and max_txsize_rect_lookup threading. Those three are what stand between this and lifting the refusal of inter partitions below 16x16, and the intra strips' skip-only restriction. Full lib suite 226 passed / 0 failed.
docs(av1): lane-recttx r1 report (all 14 rect sizes pinned; decode.rs wiring still owed)Ahmet Kaan Gümüş · 494492d
docs(av1): lane-recttx r1 report (all 14 rect sizes pinned; decode.rs wiring still owed)
fix(av1): gm_get_motion_vector block-centre -1 offset; root-cause seed-43 wedge mismatch to missing global-warp prediction path (not fixed)Ahmet Kaan Gümüş · 75017f1
fix(av1): gm_get_motion_vector block-centre -1 offset; root-cause seed-43 wedge mismatch to missing global-warp prediction path (not fixed) Root-caused lane-gm r2's interintra-wedge gate mismatch (seed 43, frame 1 luma) via a pinned/self-decoded-twice reproduction and a msac range-ladder comparison against a patched aomdec: entropy is in sync at the divergent block (rng=38664 both sides), and this decoder's gm_get_motion_vector computes the spec-correct mv once block_center_x/y's missing "- 1" is fixed (found by diffing against the real oracle's mv.h). The remaining gap is real but unfixed this round: libaom predicts every is_global_mv_block (ROTZOOM/AFFINE GLOBALMV, >=8x8) with the full per-pixel affine global-motion warp (reconinter.c's allow_warp / global_warp_allowed), independent of motion_mode; this decoder only builds a warp prediction for local WARPED_CAUSAL and falls back to translational MC for every other GLOBALMV block. Whole-frame global_motion != IDENTITY refusal in stream.rs stays in place.
Merge branch 'lane-altref2': the ALTREF2 gate fires and hard-assertsAhmet Kaan Gümüş · c08245b
Merge branch 'lane-altref2': the ALTREF2 gate fires and hard-asserts The gate had passed its whole life without once exercising ALTREF2 -- 86 attempts, zero firings -- because 16 frames is a single mini-GOP, room for BWDREF and never a second pyramid level. The flags were already right; the clip was too short. At 64 frames ALTREF2 fires 3-4 times per run, and the silent skip-on-never-fired is replaced by an assert, so the gate now fails rather than lies when the feature stops appearing. The search table in the report records that the gf-pyramid-height knobs add nothing measurable once the clip is long enough, so nobody repeats it. Full lib suite 224 passed / 0 failed.
Merge branch 'lane-screen': consume palette/intrabc syntax on key framesAhmet Kaan Gümüş · 31f684b
Merge branch 'lane-screen': consume palette/intrabc syntax on key frames Screen-content key frames decode now. The decoder does not reconstruct a palette -- it consumes the syntax so the arithmetic decoder stays in sync, and a block that genuinely uses palette or intrabc refuses by name. The whole-frame refusal is narrowed rather than removed: decode_inter_block's intra-sub-block branches have no palette wiring at all, so inter frames with the bit set keep refusing until a follow-up lane threads the same two flags there. Two integration points this merge had to settle: Rect intra strips (lane-intradisp) do not consume palette syntax -- the square reader's palette_bsize_ctx is keyed on a single side -- so a strip in a screen-content frame would skip symbols the encoder wrote and desync. It refuses by name instead. The filter_intra gate was eaten by the old whole-frame refusal and skipped for its whole life; now that it runs, it turned out not to pin --threads=1 the way every sibling gate does, and a multi-threaded aomenc is not deterministic, so each run encoded a different stream and the gate flaked against whichever features that run happened to pick. Pinned, plus EC_FI_SEED/EC_FI_CQ hooks so the recipe can be searched without a rebuild. It fired in 6 consecutive runs and in 14 of 15 points of a (cq, seed) sweep; the one failure was a real "use_filter_intra never fired" assert at cq=60, not a mismatch. Full lib suite 224 passed / 0 failed, twice.
fix(av1): altref2 gate -- 64-frame clip makes ALTREF2 actually fire (was 16, 86/86 zero-firings), hard-assert the hit count; search table + filter-intra status in reportAhmet Kaan Gümüş · bb31348
fix(av1): altref2 gate -- 64-frame clip makes ALTREF2 actually fire (was 16, 86/86 zero-firings), hard-assert the hit count; search table + filter-intra status in report
wip(av1): rectangular inverse transform + libaom dump harness (in progress)Ahmet Kaan Gümüş · 1a9fc2c
wip(av1): rectangular inverse transform + libaom dump harness (in progress) Committed by the orchestrator: the builder hit its turn cap mid-verification.
fix(av1): derive the key-frame skip context; refuse a split-transform rect stripAhmet Kaan Gümüş · 0b6be16
fix(av1): derive the key-frame skip context; refuse a split-transform rect strip Two defects an adversarial source review found in the intra HORZ/VERT strip merge, both confirmed against libaom. The key-frame intra path read `skip` from `cdfs.skip[0]` unconditionally, while av1_get_skip_txfm_context (pred_common.h:175-181) is above_skip + left_skip. That was latent -- key frames rarely skip -- but the rect strips are skip-only, so every strip this decoder accepts guarantees a skip=1 neighbour, and the second strip of a HORZ pair would have read the wrong CDF row and desynced the rest of the tile. Fixed at all three intra call sites, not just the rect one: the defect is the class, and the pre-existing square site is now load-bearing. The context comes off the mi skip grid, which every path already fills, with an absent neighbour contributing 0 the way an absent above_mi/left_mi does. Second, tx_depth was read and then ignored: the predictor ran over the whole strip regardless, where libaom predicts per transform unit with each unit taking its edges from the previous unit's reconstruction. That is a silent pixel mismatch, and it violates this change's own skip-only contract, so a split transform now refuses by name until the per-TU loop is ported. Full lib suite 224 passed / 0 failed -- the skip-context fix is inert for every existing stream, as it must be.
docs(av1): gm r2 -- record step-8 narrowing attempt + its pixel-mismatch reversalAhmet Kaan Gümüş · 1e8e3e2
docs(av1): gm r2 -- record step-8 narrowing attempt + its pixel-mismatch reversal Removing the whole-frame IDENTITY-only refusal decoded AB/free-partition gates clean (0 global-motion refusals, both green) but exposed a real mismatch on a_real_aomenc_stream_with_interintra_wedge_decodes_pixel_exact seed 43 frame 1 luma (EC_WEDGE_GATE_ATTEMPTS=20 EC_AV1_REQUIRE_AOMENC=1). Reverted the narrowing rather than ship a wrong decode; refusal stays until that seed is captured/self-pinned and root-caused next round.
docs(av1): lane-screen r1 report -- gate counts and next-lane ceilingAhmet Kaan Gümüş · b45a5f7Browse files
docs(av1): lane-altref2 r1 charter (make the vacuous ALTREF2 gate fire)Ahmet Kaan Gümüş · 8da2b4bBrowse files
feat(av1): thread allow_screen_content_tools/allow_intrabc through decode_key_frame_tile[_with_cdfs]; narrow whole-frame refusal to non-key framesAhmet Kaan Gümüş · 818f85d
feat(av1): thread allow_screen_content_tools/allow_intrabc through decode_key_frame_tile[_with_cdfs]; narrow whole-frame refusal to non-key frames decode_block/decode_leaf8/read_intra_mode already consumed palette/intrabc syntax on key frames (prior builder). This wires the two bools the rest of the way: through decode_key_frame_tile_with_cdfs and the public decode_key_frame_tile wrapper, stream.rs's real production call (header.allow_screen_content_tools/allow_intrabc), and the 7 test call sites (false, false -- none of those fixtures use screen content tools). Narrows stream.rs:169's whole-frame refusal to `frame_type != Key && allow_screen_content_tools`: decode_inter_block/ decode_inter_block8's intra-sub-block branches have no palette/intrabc wiring at all, so removing the refusal for inter frames would desync them silently.