Commits
Commits on
b1bc5d62b6a0a86d14e8700824f8ae9a3aeddbee2026-09-29
tests: close the rest of the real-media-library class (4 sites)Ahmet Kaan Gümüş · b1bc5d6
tests: close the rest of the real-media-library class (4 sites)
Follow-ups to the shape sweep, all approved. Each was red on a runner for a
reason that had nothing to do with a decoder.
ec-probe/tests/library.rs:490 -- REMOVE the minimum-count assert rather than
ignore the test. The file's own header is the spec, and it says so at lines
5-6: "Files that have since moved are skipped and reported, never failed --
the manifest is a snapshot of a moving library." An empty `chosen` IS the
moved-files case, so the assert contradicted the contract the file declares:
the contract is the spec, not the assert. Replaced with a named SKIP and a
return, which is what "skipped and reported" asks for.
before: red-on-runner whenever every manifest path had moved
after: 1 passed; 0 failed; 0 ignored
ec-aac/tests/sbr_real_library.rs:4797 and ec-aac/tests/obs_real_content.rs:151
-- bare env::var("HOME").unwrap() -> unwrap_or_default(), the shape the five
sibling HOME reads in sbr_real_library.rs already use (:2710, :3426, :4109,
:4182, :4575). A HOME-less host is a fleet runner, so this was a panic there;
the batch has now hit that class from three directions.
before: FAILED. 0 passed; 1 failed
called `Result::unwrap()` on an `Err` value: NotPresent
after: 1 passed; 0 failed; 0 ignored (both, under `env -u HOME`)
ec-matroska/tests/matroska.rs:966 -- the manifest was read from a hardcoded
absolute path into the primary checkout, unlike every sibling. That defeats
worktree isolation even while the test is ignored: a run in a worktree or a
gate tree read the MAIN checkout's manifest, so it measured a different
tree's library than the one it was compiled from. Now `fixtures()`, i.e.
CARGO_MANIFEST_DIR-relative.
The two HOME fixes were proved by running them under `env -u HOME` -- the
runner shape -- before and after; the before-state panic is quoted above.
Class disposition after this commit: 6 fixed, 0 remaining red-on-runner,
14 already correct, the rest already ignored or false positives.tests: make the real-library sweeps LOCAL-ONLY, and report the classAhmet Kaan Gümüş · fcb9ffb
tests: make the real-library sweeps LOCAL-ONLY, and report the class
real_library_streams_match_ffmpeg reds every fleet run with "only 0 real
files swept end to end; the sweep is the point". It is not a decoder defect:
the precondition is a PERSONAL media library, reachable only through the
gitignored fixtures/real-library-manifest.tsv that
scripts/scan-real-library.sh generates by scanning the user's own media
directories.
Both of its runner behaviours are wrong, which is why this is #[ignore] and
not an env-gated SKIP:
- manifest absent -> the existing "SKIP: missing" return prints GREEN,
which is the silent-skip class this batch is removing;
- manifest present, paths unresolvable (a host that ran the scan against
an empty library) -> zero swept, `decoded >= 3` fails, red for a reason
unrelated to the decoder.
An env gate whose variable is absent on the runner prints that same green --
the defect, not the fix. An ignore is visible in --list, cannot go green
silently, and leaves the assertion intact.
ec-aac's real_library_tracks_match_ffmpeg gets the identical one-liner: same
manifest, same "skip if missing then assert checked >= 3" shape, same two
failure modes.
Local verdict on the workstation, where the library is: 15 files decoded
bit-exact, 0 refused by name, 0 failures, 1918 s, across matroska and
mov/mp4 at 576px-3840px, with one file taking the container-demux fallback.
The decoder is fine. The 1918 s is now in the ignore reason so the next
person does not read a 30-minute wall time as a wedge.
lanes/h264reallib.report.md carries the full class sweep: 51 sites examined,
2 fixed here, 3 that need a decision (ec-probe library.rs:490, whose own
header comment the assert contradicts, and two bare HOME unwraps that want
unwrap_or_default), and the false positives that must not be touched.2026-09-28
refusal_inventory: normalise whitespace in the 128-root cfl anchor + mutation-prove itAhmet Kaan Gümüş · a460dca
refusal_inventory: normalise whitespace in the 128-root cfl anchor + mutation-prove it The anchor was a 3-line literal carrying 12-space indentation while the anchored call site (decode.rs read_intra_mode_rect at the 128 root) sits at 8 spaces, so the guard counted 0 matches and went RED. ATTRIBUTION (measured by an independent review pass): the guard was ALREADY red at the wave's own common base 4155c7c7 -- the dedent happened in an ancestor of that base, so the wave inherited a pre-existing red rather than causing it. The invariant it guards was intact: the call site still passes cfl=false. Fix: whitespace-normalised match (squash_ws on both sides), keeping the semantic anchor (both comment lines + the false, argument) and count() == 1. Mutation-proved: cfl=true turns it RED, revert turns it green. Class swept: no other source-scan anchor in the crate embeds indentation (21 include_str! guards checked); the rule is recorded in skill://reformat-breaks-source-scan-anchors.
ec-av1: drop the three consts the intra-BC rect4 gate stopped usingAhmet Kaan Gümüş · 72eb746
ec-av1: drop the three consts the intra-BC rect4 gate stopped using lane-av1444rect r3 (25824613) dropped the intra-BC prefix-floor assert, which was the last reader of W/H/PS in a_444_intrabc_rect4_reads_its_own_chroma_plane_block. Left three dead_code warnings on a 0-warning tree. The gate's own assertions (the route hit at 4:4:4, zero at 4:2:0, the byte-exact 4:2:0 twin) are untouched.
Merge branch 'lane-av1formatsweep'Ahmet Kaan Gümüş · fae5c1f
Merge branch 'lane-av1formatsweep' # Conflicts: # crates/ec-av1/src/stream.rs
audit: assert equal lengths before every ours-vs-oracle walk (68 sites)Ahmet Kaan Gümüş · b7b2e07
audit: assert equal lengths before every ours-vs-oracle walk (68 sites)
The prefix-truncation false PASS: an ours-vs-oracle compare that walks
`got.iter().zip(want)` without first asserting equal lengths reports EXACT
for any defect outside the compared prefix, because zip stops at the shorter
operand. A frame-count assert says nothing about a plane's byte length.
Audited 124 sites across ec-av1/ec-h264/ec-h265/ec-vp9/ec-alac/ec-flac/
ec-aac/ec-ac3 and tools/oracle: 68 UNSAFE, 38 SAFE, 18 N/A. 68 fixed by
inserting the length assert AFTER the existing diff assert, on the same
buffers, so a real divergence still fails for the same reason with the same
message and only the previously-silent short-plane case becomes loud. The
canonical shape already in the tree is decode_all_frames_vs_oracle.
encode.rs::first_difference returned None ("exact") for any length
mismatch; it now returns Some, copying first_plane_mismatch. encode.rs's
nine `encoded.frames` vs ffmpeg loops and two GOP zips gained the count
assert they never had. ec-h264's round_trip rejected only an over-long
frame, so a short one zipped to zero and four call sites printed
"bit-exact".
Truthfulness: a comment above stream.rs:29006 claimed the gate compared
every decode-order frame when it compares the shown ones; the pinned-
scratch loop truncated a three-way .min() silently; a message called a
shown-frame count "decode-order"; two frame-count asserts were tautological
and are now a comment; examples/dump_yuv.rs wears a decode-index filename
on a display index.
Red/green per crate in lanes/av1cmpaudit.report.md. Not pushed.ec-av1: 4:4:4 inter chroma units inherit their own quadrant's luma tx_typeAhmet Kaan Gümüş · dc2a1dd
ec-av1: 4:4:4 inter chroma units inherit their own quadrant's luma tx_type The 64x64 four-unit chroma arm (ss 0/0, chroma_side > chroma_tx) handed all four TX_32X32 units the block-level luma_tx_type -- the TOP-LEFT luma leaf's coded type. libaom's av1_get_tx_type (blockd.h:1287-1297) instead reads the map cell at the chroma unit's own position scaled back to luma, and a luma leaf that coded nothing is stamped DCT_DCT there (decodetxb.c:199-203), so every unit sitting over a skipped luma quadrant was reconstructed with the wrong transform. leaf_tx_types was only collected under , so at 64 it was empty and there was nothing to resolve from; it is now collected at every size, both copies of the arm resolve per quadrant through the shared covering_leaf_tx_type (extracted from the three inline copies that already existed -- one convention, not four), and two counters record the route and the cases where the resolved type DIFFERS from the block-level one. Witness pinned as fixtures/444_quad_leaf_tx_type.obu (27933 B, sha256 a06c9f7a0862252f6ab7ebdcec340d0602e730e38089365f14747db37f8e78d5): decode-order frames 1/2/3 went from 777/640/554 wrong V samples to byte-exact, and the per-unit type census against aomdec's EC_DQCOEFF goes from 4 disagreements to 0 of 136. Reverting only the per-quadrant resolve turns the new gate red on frame 1 with 777 bytes differing. The new gate asserts the DIFFERS count (8 on the witness), not the route count (96) -- a route counter fired on the one block of an earlier no-op port that changed zero pixels. A 4:2:0 control asserts both counters stay at 0.
docs(av1444rect): §8 RETRACTED and rewritten -- Agent00-2's first ablation never ran its 4e151813 arm, and the corrected 2x2 puts BOTH of their cells in this lane's classAhmet Kaan Gümüş · a654932
docs(av1444rect): §8 RETRACTED and rewritten -- Agent00-2's first ablation never ran its 4e151813 arm, and the corrected 2x2 puts BOTH of their cells in this lane's class I published their four-arm ablation and relayed its conclusion to Main as "independent; my fix does not reach those cells". That arm never ran: git checkout -- <files> restores from the INDEX, the index still held both cherry-picks, and cargo did not even relink on byte-identical sources. The conclusion was a phantom. Struck. Corrected 2x2 (git reset --hard 4155c7c7, verified rebuild with mtime printed per arm, 4/4 decode-order frames vs aomdec): base DIVERGENT on both cells; base+rung+4e151813 byte-identical to base on both; base+rung+f92776ba EXACT 4/4 on both; base+rung+both EXACT 4/4 on both. So both cells are this class, f92776ba alone fixes them, 4e151813 contributes nothing (its two tu_reach sites sit inside decode_rect4_16_strip's lossless_pair arm; both cells are 4:4:4 lossy on the else-if-skip path), and f92776ba has no prerequisite on 4155c7c7 so merge order is free. Red-before on both cells with the counter in place: the (16,8) mutation gives sr444 76404 samples first wrong Y(192,0) -- the sweep's exact number -- and odd444_130x122 9203 samples first wrong Y(100,32) on frame 3. Scope therefore ENLARGES: two more witnesses of the class at geometries the 128x96 gate does not cover (130x122 partial-frame right edge; 256x128 with CDEF+LR live on the last two frames). Second method note added: git checkout -- <files> is not a tree reset. It restores from the index, so a staged cherry-pick survives it and the arm measures the tree you thought you removed. A per-arm ablation needs git reset --hard <base> and a rebuild whose mtime is printed.
docs(av1444rect): record Agent00-2's ablation showing f92776ba and 4e151813 are independent, with their superblock-decode-order localization methodAhmet Kaan Gümüş · a5bc219Browse files
docs+ec-av1: lane-av1444rect r5 -- the counters document that they prove reach, not that the fix bites; the retraction derives its length from plane extentsAhmet Kaan Gümüş · 4b6247d
docs+ec-av1: lane-av1444rect r5 -- the counters document that they prove reach, not that the fix bites; the retraction derives its length from plane extents Main's two notes, both taken. 1. Both route counters now say in their own doc comments that a non-zero count proves REACH and nothing more, and point at skill://ec-av1-pipeline-gate-counters: a counter needs a DIFFERS-style assertion to carry a claim. The intra-BC one is also recorded as deliberately armed OUTSIDE the own444 expression, so the mutation still increments it and the red lands on the pixel/entropy arm -- what carries the claim is the measured fork move (read 11750 -> 12465, luma first wrong 164416 -> 205264, 455240 -> 390380) and the mutation, not the count. 2. The retraction's re-measurement wrote assert len(ours) == 2 * len(ref). That factor is a coincidence of 4:4:4 against 4:2:0 at the same geometry -- it is the bits-per-sample ratio (our dump_yuv emits u16, the oracle's 8-bit dump is u8) and has nothing to do with chroma, so it is wrong at 4:2:2, at any high bit depth, or on any fixture where the two sides disagree on bit depth. The report now says to derive the expected byte length from the plane extents and the two bit depths and assert the oracle dump against that, never against a copied constant. Also recorded in the method notes: the 636-vs-1086 chroma and 2052-vs-1309 luma unit-count asymmetry from the round-4 census is explicitly NOT claimed as a defect, since luma is pixel-exact to 205264 and the surplus is most likely a counting-shape difference (our var-tx leaves vs libaom's unit walk).
av1h5: shared mu_chunk_order helper, control pin, gate helpersAhmet Kaan Gümüş · 0bb7c3c
av1h5: shared mu_chunk_order helper, control pin, gate helpers Folds the four copies of the chunk-major sort into one mu_chunk_order() helper that also reports whether it permuted the list, so mu_chunk_order_hits counts real reorderings rather than executions. Pins the --max-partition-size=64 control stream and factors the pinned- fixture read and the aomdec rawvideo comparison into read_pin() and assert_rawvideo_matches().
av1h5: gate asserts exact structure, not a floor on wrong outputAhmet Kaan Gümüş · 032da64
av1h5: gate asserts exact structure, not a floor on wrong output
Main rejected the first-diff >= 90272 clause: it asserts our output is
still wrong and fails the moment the residual defect is fixed. Replaced
with four assertions that all stay true when the stream becomes exact:
mu_chunk_order_hits() == 5 -- counts blocks where the sort
PERMUTED the list; a no-op reads 0
mu_chunk_walks() == 20 -- 4 mu chunks x 5 inter frames,
libaom's own per-chunk count
mu_chunk_walk_units() == 7680 -- 1536 chroma TX_4X4 units per inter
frame, the oracle's exact count
control arm vs aomdec byte-exact
The four arm sites now share one mu_chunk_order() helper instead of four
copies of the sort, and the two new counters are bumped in the 128-root
chroma walk. Report: residual demoted to OPEN, type/extent excluded by
Agent04-2's census on the pinned bytes, handed to Agent24-2.docs(av1444rect): round 4 -- the intraBC 4:4:4 chroma root is not a token-order defect; the unit census rules it out and bounds what is leftAhmet Kaan Gümüş · cc3c8e3
docs(av1444rect): round 4 -- the intraBC 4:4:4 chroma root is not a token-order defect; the unit census rules it out and bounds what is left Main asked for the unit count before any value-level chase, after Agent10-2's H5 turned out to be a 16x token-order blowup. Counted on the 1016 B witness (one frame, ours via per-reader traces, oracle via EC_COEFF_STEP tag=all_zero which is not skipped on eob=0 and so counts the same thing): 2688 unit reads against the oracle's 2395; luma 1213 square + 839 rect against 1309; chroma 636 against 1086. Same range, no blowup -- the defect is NOT ordering. Second lane to reach that conclusion about a 4:4:4 chroma fork. Both originally-named candidates remain eliminated by measurement, so the root is still unbounded and is handed back rather than patched blind.
lanes/av1tilerows: class sweep — 32 Reach::of_tu sites inventoriedAhmet Kaan Gümüş · 6a71455
lanes/av1tilerows: class sweep — 32 Reach::of_tu sites inventoried
Enumerates every production call site of tu_reach, tu_reach_rect and
Reach::of_tu (32; excluding the two wrapper bodies and three in mod tests).
27 are ss-aware, 4 are 4:2:2-only behind a guard that names ss_x==1 &&
ss_y==0 (refused by name at stream.rs:1749, unreachable at 4:4:4), and
ONE is a remaining hardcoded 4:2:0-shaped chroma footprint:
decode.rs:41930, `let luma_span = cu_tx * 2;` in the intra-in-inter
128-superblock mu-chunk chroma arm.
Three correct conventions exist and no fourth: the canonical ss shift
(17401, 17488, 35359), hoisted per-axis luma-span locals (11610, 20401,
20660, 21021, 21618, 42370, 42497), and four 4:4:4-gated identity
literals (22235, 22288, 42249, 44605) whose guard is load-bearing and
which are flagged as the sites that would break first if a 4:2:0/4:2:2
sibling arm were added beside them.
41930 is proven 4:4:4-reachable by a temporary env-gated counter (32 hits
at ss=(0,0) side=128 on a 4:4:4 lossy --sb-size=128 stream), and no
committed 4:4:4 fixture fires it (0 hits on 444_sb128rect_lr_witness,
444_leaf8_oob and all three ll444 pins) — the arm has no 4:4:4 coverage.
It is deliberately NOT patched here, for reasons recorded in the report:
- every recipe that fires it is masked by the pre-existing H1 entropy
fork (byte-identical between base 4155c7c7 and this tip), and A/B-ing
`cu_tx << ss_x` against `cu_tx * 2` gives byte-identical output;
- every pixel-exact 4:4:4 recipe refuses to fire it (0 fires across
six variants with --enable-rect-partitions=0 / --enable-1to4-partitions=0);
- luma_span is not the whole defect: per blockd.h:1372,
av1_get_max_uv_txsize(BLOCK_128X128, 0, 0) is TX_64X64, not the
TX_32X32 the comment assumes, so cu_tx and the per-chunk chroma origin
are 4:2:0-shaped too. Patching only luma_span would be a half fix in
an arm with no gate able to catch the difference.
Shipping an unvalidated change into a zero-coverage path is the failure
mode this repo keeps fighting, so the site is documented and handed to the
H1 lane with the repair shape (cu_tx = 32 << ss_x, luma_span = cu_tx <<
ss_x) and the 4:2:0 identity argument (32 << 1 == 32 * 2 == 64) that makes
the eventual repair a provable no-op for the only covered format.
The temporary counter is removed: grep -c EC_TMP_SB128CHROMA is 0 at HEAD
and git status is clean against the lane commit.docs(av1444rect): adopt the sub-8/strip unit-walk prior from the sweep census, and record the txtype census as the next measurement for the chroma rootAhmet Kaan Gümüş · 5487c73Browse files
av1h5: report -- band refuted, chunk-major order found and fixed, residual namedAhmet Kaan Gümüş · 339d121Browse files
docs(av1444rect): round 3 -- the prefix-floor assert is gone, both named chroma candidates are eliminated by measurement, and the remaining defect is handed back as a 4x8 rect coefficient unitAhmet Kaan Gümüş · 234a9cdBrowse files
av1h5: read a 128 root's tokens CHUNK-major, not block-rasterAhmet Kaan Gümüş · f93609f
av1h5: read a 128 root's tokens CHUNK-major, not block-raster libaom's decode_token_recon_block (decodeframe.c:972) walks 64x64 mu chunks with the PLANE loop INSIDE the chunk loop. The var-tx leaf list is a BLOCK-wide raster, so a chunk's members are not contiguous: leaf 0..15 is chunk (0,0) row 0, but chunk (0,0) rows 1..15 are leaves 32..47, 64..79, ... The chunk test on the given order therefore closed the chunk every SIXTEEN leaves and coded each chunk's chroma sixteen times -- 64 chroma walks per 128 root where libaom codes 4, and 24576 chroma units per inter frame against the oracle's 1536. Reorder the leaf walk chunk-major at side > 64 (a no-op below 64, where a block IS one chunk) at all four sites carrying this test: the 128x128 inter arm, the 128x64/64x128 inter arm, and the two intra arms. Measured on the pinned 128x96 yuv444p10le lossless 10-bit stream (sha256 bbffb979..., 63429 B), against aomdec: chroma walks per frame 64 -> 4 chroma units per frame 24576 -> 1536 (oracle: 1536, exact) first ctx divergence unit 1539 -> unit 2573 first differing pixel byte 74769 -> byte 90272 Control arm (--max-partition-size=64, no 128 root) stays byte-exact. New gate a_lossless_444_128_root_lossless_stream_reads_chunks_chunk_major pins the route (mu_chunk_order_hits) and the first-difference position; mutating the chunk key back to the block raster turns it red.
ec-av1: lane-av1444rect r3 -- drop the intra-BC prefix-floor assert; it encoded a defect as expected behaviourAhmet Kaan Gümüş · 1d86151
ec-av1: lane-av1444rect r3 -- drop the intra-BC prefix-floor assert; it encoded a defect as expected behaviour Main's push-back, accepted. The gate asserted our luma plane is byte-exact to sample 205264, i.e. that our output is wrong by exactly N past that point. That is a defect encoded as expected behaviour, the shape this suite refuses everywhere else, and it would outlive the memory of why. Removed. What the gate asserts now are only true statements: intrabc_rect4_own_chroma444_hits() is non-zero on the 4:4:4 witness (18) and zero on the 4:2:0 twin, and the 4:2:0 twin is byte-exact through decode_all_frames_vs_oracle (which asserts frame length before comparing). The open chroma divergence is named in a comment and in the test's output line -- 390380/921600 wrong, U and V both first wrong at index 20532, entropy fork read 12465 at mi (90,108) -- and never asserted. Also removed the temporary per-unit coefficient traces used to localize it.
ec-av1: lane-av1444rect r2 -- the same class, second instance, in the intra-BC 1:4 strip; plus an H3 retractionAhmet Kaan Gümüş · 2bcb6de
ec-av1: lane-av1444rect r2 -- the same class, second instance, in the intra-BC 1:4 strip; plus an H3 retraction RETRACTION. My previous report said the 4:4:4 lossless + tile-columns stream (77847 B, sha256 87b0d1a5...) was "byte-exact 6/6". It is not, and the claim is withdrawn. My throwaway compare script carried the H1 fixture's 128x96 geometry, so it zipped our first 36864 samples against the oracle's 98304-byte dump -- zip truncates to the shorter operand, making it a PREFIX compare, and the divergence at x >= 108 fell outside the window. Re-measured with the right geometry: 63-162 wrong chroma samples in every frame, first at U(110,26), luma exact. H3 is OPEN and belongs to Agent142-2; no H3 gate is pinned here. The crate's own decode_all_frames_vs_oracle asserts frame length before comparing, which is why the committed gates were never exposed to this. THE CLASS, SECOND INSTANCE. decode_rect4_16_intrabc applied the 4:2:0 pair geometry at every ss: (pw, ph) = (16,8)/(8,16), pair_mi = lmi - 1, cpx = pair_mi * MI / 2. At ss (0,0) is_chroma_reference makes an intra-BC 1:4 strip its own chroma reference, so libaom codes a 16x4 chroma block at the strip's own origin, not an 8x4 a quarter of the way off. It is LIVE, not latent: a testsrc2 640x480 --tune-content=screen --enable-intrabc=1 --enable-palette=1 --cq-level=60 stream (1016 B, sha256 7fe888ed..., 17 intrabc 16x4 strips at ss (0,0)) diverges 455240/921600 with the entropy fork at read 11750. --enable-intrabc=0 is byte-exact and the 4:2:0 twin is byte-exact. One own444 = ss_x == 0 && ss_y == 0 gate on (pw, ph), (cw, ch), pair_mi and (cpx, cpy); 4:2:0 and 4:2:2 keep every constant verbatim. Measured per plane: the luma first-wrong sample moves 164416 -> 205264 and the entropy fork 11750 -> 12465, but both chroma planes still first diverge at 20532 and 390380 of 921600 samples are still wrong. This is a PARTIAL improvement and is committed as one: no exactness is claimed, and the gate is a progress gate, not an exactness gate. It pins both fixtures, requires intrabc_rect4_own_chroma444_hits() > 0 (18 on the 4:4:4 witness, 0 on the 4:2:0 twin, armed outside the mutated expression so the mutation fails on the pixel arm), compares the 4:2:0 twin byte-for-byte through the length-asserting helper, and asserts the 4:4:4 LUMA plane is byte-exact to sample 205264 -- a floor that only grows, so the next lane's fix cannot turn it red. The untouched chroma divergence is named, never asserted exact. Mutation: own444 = false turns it red at 164416. Handed on: the remaining 4:4:4 intra-BC divergence is in CHROMA, first at U/V index 20532 (x=52, y=32), entropy fork read 12465 at mi (90,108), not yet localized to a line. Identity on this tip: the crate's 444 family (10), intrabc (20), rect_strip (10), 1to4 (11) and the 16-level rect-leaf gate, plus all three new chroma-format-sweep gates run in ~/.cache/wt/av1fmt against this decode.rs.
docs(av1formatsweep): round 4 -- close the not-measured list; the 4:4:4 lossless class is neither tile- nor depth-specificAhmet Kaan Gümüş · ce89686
docs(av1formatsweep): round 4 -- close the not-measured list; the 4:4:4 lossless class is neither tile- nor depth-specific
docs(av1444rect): the H1 report -- root cause, the class sweep, the measured red/green, the gate's two mutation directions, and the residue handed onAhmet Kaan Gümüş · ea4a14dBrowse files
ec-av1: lane-av1444rect -- a 1:4 inter strip's chroma context was gathered at the 4:2:0 pair extent at ss (0,0), forking the coder (H1)Ahmet Kaan Gümüş · 9470822
ec-av1: lane-av1444rect -- a 1:4 inter strip's chroma context was gathered at the 4:2:0 pair extent at ss (0,0), forking the coder (H1) At 4:4:4 `is_chroma_reference` (av1_common_int.h:1454) reduces both parity clauses to `!subsampling_y` / `!subsampling_x`, so EVERY block is its own chroma reference and no 1:4 pair exists. `decode_inter_block`'s `around_c` never gated on ss, so a HORZ_4 16x4 strip read its chroma coefficient context over the 4:2:0 pair extent (16x8 luma = left[mi_r] and left[mi_r+1]) instead of its own 4-px one. The U unit's `get_txb_ctx` then saw a left neighbour libaom does not have and forked the arithmetic coder. The 4:4:4 lossy + RECT cell -- the largest correctness gap the chroma-format sweep left (lanes/av1formatsweep.report.md H1) -- had NO exactness gate at all: the whole committed 4:4:4 base is lossless 8-bit. Witness: testsrc2 128x96 rate=25 yuv444p, aomenc --profile=1 --passes=1 --end-usage=q --cq-level=20 --cpu-used=2 --threads=1 --row-mt=0 --lag-in-frames=0 --kf-max-dist=100 --limit=2, 6441 B, sha256 77f727e7... Red before: frame 1, 8884/36864 samples wrong, first at Y(91,32); the first wrong symbol was read 26263, both sides at mi (8,16) -- ours a luma-shaped txb_skip row (re-indexed chroma ctx 1), the oracle decodetxb.c:158 on the U plane with txb_skip_ctx 7. Green after: 2/2 frames byte-exact vs aomdec. Gate `a_444_lossy_rect4_inter_stream_decodes_pixel_exact` pins the fixture (len + FNV), asserts the ss (0,0) full-resolution chroma shape, the byte-exact compare through the oracle aomdec, and non-vacuity on the corrected route via `rect4_inter_own_chroma444_hits` (9 gathers here, 0 on the 4:2:0 control, which also carries 16 HORZ_4 / 28 VERT_4 strips and is itself compared byte-for-byte so a widening past ss_x 0 goes red). Mutation proof: restoring the old arm with the counter left in place turns the gate red at byte 4187 (ours 35 vs 38), 8884 bytes differing. Identity: the crate's whole 444 family (9), rect_strip family (10), the 16-level rect-leaf gate, and all three new chroma-format-sweep gates (444 lossless 10-bit, 444 12-bit, odd coded dimensions) run green against this decode.rs. H2 (4:4:4 lossy tx-size-search chroma +/-1, 608/36864 from frame 2) is unchanged and still divergent -- it is reconstruction arithmetic, not entropy, and belongs to its own lane. H3's tile-column recipe (77847 B, 6 frames) is byte-exact here.
ec-av1: ss-aware chroma reach in the lossless 16x4/4x16 pair walkAhmet Kaan Gümüş · eb65242
ec-av1: ss-aware chroma reach in the lossless 16x4/4x16 pair walk
The sweep's H4 ("4:4:4 lossless + --tile-rows=1, frame 3 onward the plane
goes flat") is not a tile defect. Two measured corrections:
- `--tile-rows=1` at 256x128 is a no-op: aomenc's default superblock is
128px, so 256x128 is 2x1 superblocks with no second superblock row to
split, and the "tiled" stream is byte-identical to the untiled one.
Tile rows at 4:4:4 lossless are exact at 1, 2 and 4 rows, both axes,
on four geometries.
- the "flat plane from frame 3" signature is a decode-order vs
display-order mismatch in the measurement itself: aomdec dumps 7
frames in decode order, ffmpeg emits 6 in display order, and
aomdec-vs-ffmpeg alone reproduces the identical damage with no edith
decoder in the loop.
The defect behind it is real and tile-INDEPENDENT (it reproduces on the
zero-tile stream). The lossless 16x4/4x16 chroma-pair walk passed
`tu_reach` a hardcoded 4:2:0 luma footprint (`ox * 2, oy * 2, 8`); at
4:4:4 a 4x4 chroma unit is 4x4 luma, so the footprint is doubled and
`Reach::of_tu`'s `col_off + tx_w < bw` test answers against a block twice
its real width -- every unit past the midpoint wrongly reports
`above_right = false` and a directional chroma strip predicts from a
neighbour libaom never reads. Patched to the ss-aware form already used
by the block-walk sibling at decode.rs:35342; the 4:2:0 answer is
unchanged because `<< 1` is `* 2`.
Measured site: testsrc2 256x128 yuv444p, `--profile=1 --lossless=1
--cpu-used=2 --lag-in-frames=0 --kf-max-dist=100 --limit=6`, first wrong
sample U(110,26) (ours 8, ref 7), 63 samples wrong per frame (U 29 + V
34, deltas -10..+13) on the key frame and all five inter frames. Entropy
is bit-identical: 351109 EC_SYMR reads compared on both sides with the
CDF convention reconciled, zero divergence -- reconstruction, not a fork.
Gate `a_lossless_444_rect16x4_chroma_reach_is_ss_aware` pins the fixture
(77918 bytes, sha256 382e67c0cc0988d14c500a62f5c3457a3f3b5f76d05acce2f655b1089bb8e7e3),
asserts the header really is ss (0,0)/8-bit/256x128, requires
rect4_16_lossless_chroma_hits to fire (80 on this fixture, 0 for a 4:2:0
stream of the same content), and compares every frame against aomdec in
decode order and ffmpeg in display order. Reverting the two calls turns
it red at byte 39534 -- U(110,26), the measured site.
Identity: 10/10 a_lossless, 9/9 444, 3/3 tile gates, and the sweep's 3
new gates all green.
Not fixed here, handed to the H1 lane: 512x128 --lossless=1 --cpu-used=2
(130708 wrong by frame 5) also forks entropy (459866 oracle reads vs
369136 ours) and is unchanged by this fix.av1h5: lane report (H5 444 lossless 128-root 10-bit entropy fork)Ahmet Kaan Gümüş · 19967acBrowse files
docs(av1formatsweep): round 3 — H2's frame-edge localization retracted, H3's crop/store refutedAhmet Kaan Gümüş · b2e8c4f
docs(av1formatsweep): round 3 — H2's frame-edge localization retracted, H3's crop/store refuted H2: the round-2 'frame-edge partial block row' localization is WRONG and is retracted. A 128x128 control with whole 64x64 blocks and no partial row or column reproduces the defect (V chroma ±1, 777 samples, from frame 1, luma exact); 160x96 and 96x96 reproduce it too. Neither the unit_height / ROUND_POWER_OF_TWO clamp at ss 0 nor the above/left edge reach survives: a wrong clamp would change the unit count, which the bit-identical 140820-symbol entropy trace already excludes, and the errors appear mid-block. What survives: 4:4:4 lossy inter with tx size search ON, chroma only, always ±1, luma always exact, entropy bit-identical, pre-filter, and exact again with --enable-tx-size-search=0 on every geometry. Next step named: one affected 32x32 chroma unit, ours EC_DQCOEFF vs the oracle's EC_COEFF_VAL, which splits dequant from inverse transform. H3: the output/crop and reference-store candidates are refuted. The EC_AV1_FINAL_DUMP rung — the picture as handed to the reference slots — shows the SAME 90 wrong chroma samples in frame 0 against the oracle's rung 12, with frames 1-2 exact. The error is the key frame's own lossless chroma reconstruction; it does not propagate because those samples are never predicted from, not because the path is healthy. H2 and H3 still do not reduce: lossy 32x32 unit (needs tx search) vs lossless per-4x4 unit. Also records the parallel lane's landed sha 83b6af97.
lane-av1leftref: read the LEFT chroma reference one mi row down at ss_y=1Ahmet Kaan Gümüş · c52da7e
lane-av1leftref: read the LEFT chroma reference one mi row down at ss_y=1 libaom's set_mi_row_col puts chroma_left_mi at base_mi[ss_y * mi_stride - 1], one mi row DOWN at 4:2:0 and 4:4:0 and on its own row at 4:2:2 and 4:4:4 (av1/common/av1_common_int.h:1395-1401). This read its own row at every subsampling; the above COLUMN's +ss_x term had already landed (a9611ea2/4b9c4cd8) and this is its counterpart on the left read. 4:2:2 and 4:4:4 are a no-op by construction (ss_y == 0). 4:2:0 and 4:4:0 move one mi row down. smooth_uv_neighbour_unsnapped gains ss_y and a decode_path flag: the 16x4/4x16 pair witness calls it as a counter-only mirror at an ODD mi row, and counting that mirror's flips is what made the shape look reachable (50 "hits" on reelb_kf900) when no committed fixture reaches it on a decode path (0). Counters: uv_left_ss_y_reads (22292 on reelb_kf900) proves the arm is live; uv_left_ss_y_mode_diff_hits / _smooth_diff_hits compare libaom's cell against the pre-lane own-row cell and read 0 on every committed fixture and ~1000 swept encodes, so the change is a proven no-op on today's material. Gate: a_4to20_key_frame_takes_the_left_chroma_reference_read_its_libaom_row -- all THREE planes vs ffmpeg, not luma alone, because a chroma edge-filter type moving is invisible to a luma-only assertion. Report: lanes/av1leftref.report.md, including why the shape is structurally absent (uv_mode_grid runs down a left mi column are always even length: libaom only starts a block on an odd mi row with an 8-px strip, and the 4-px HORZ_4 strips aomenc does pick all land inside one mi row), and why this gate does NOT discriminate: both reads agree everywhere measured.
docs(av1formatsweep): round 2 on H2/H3 — both pre-filter, and not one defectAhmet Kaan Gümüş · 989dfce
docs(av1formatsweep): round 2 on H2/H3 — both pre-filter, and not one defect
Exoneration first: EC_AV1_PREFILT_DUMP on both sides shows H2's 847 wrong
chroma samples in frame 2 and H3's 90 wrong key-frame samples are already
there BEFORE deblock, CDEF and LR, with luma exact in both. The filter chain
is off the table for both.
H2: the oracle's per-unit census (EC_COEFF) shows every chroma unit in the
stream is tx_size=3 (TX_32X32), so the av1_get_adjusted_tx_size clamp the
first suspect named is already applied correctly on both sides
(decode_inter_block's 4:4:4 arm computes if side >= 64 { 32 }) — and there is
no chroma unit at mi_row 8 at all. The wrong pixels are exactly the left
column of chroma units of the frame-edge PARTIAL block row (96-high frame,
64 blocks: the second row has 32 real luma rows, so its chroma band is 32
rows at ss 0/0 where 4:2:0 would give 16). Remaining candidates: that partial
block's unit_height / ROUND_POWER_OF_TWO clamp at ss 0, and its above/left
prediction reach.
H3: frames 1-5 are byte-exact although they predict from the wrong key frame,
so the wrong samples are never read as a prediction source — that points at
the key frame's chroma output/crop or reference-store path, not at
reconstruction arithmetic every frame shares. H2 and H3 share a stage and a
plane, not a root: no single fix claimed.
Also renames the matrix cell to 'even, not a multiple of 8' and states
plainly that the odd-luma-dimension cell is neither gateable nor refutable
from an aomenc recipe (aomenc rounds the coded size down to even), and adds
the declared-debt line for gates B and C.test(av1formatsweep): the red-before proof the odd-dimension gate was missingAhmet Kaan Gümüş · 2fa693f
test(av1formatsweep): the red-before proof the odd-dimension gate was missing Flooring the mode-info grid's ceil -- ec-av1-syntax's `h.mi_cols = 2 * ((h.frame_width + 7) >> 3)` to `2 * (h.frame_width >> 3)` -- turns a_real_aomenc_odd_coded_dimension_streams_decode_pixel_exact red on its first arm (decode-order frame 0, byte 128: ours 74 vs oracle 170, 11538 bytes differ) and green on revert. Recorded in the gate's doc comment. Also records why the nearer mutation is not evidence: flooring decode::round_ss leaves the gate green because aomenc rounds a 4:2:0 frame's coded size DOWN to even, so this recipe cannot produce a stream with an odd luma dimension at all (a testsrc2 131x131 y4m encodes as max_frame=130x130, and this decoder decodes that frame correctly; the ffmpeg reference padding to 131x131 is the artifact). The sweep's odd-dimension cell is therefore 'even, not a multiple of 8'.
docs(av1formatsweep): record the lane-av1leftref cross-check on the sweep verdictsAhmet Kaan Gümüş · d858fab
docs(av1formatsweep): record the lane-av1leftref cross-check on the sweep verdicts The parallel ss_y left-chroma-reference lane measured byte-identical output on all 35 committed fixtures that decode at all, and the six 4:2:2 pins decode zero frames in both trees. Independent of this sweep's measurements: no verdict in the matrix moved between the clean-HEAD build and that lane's in-progress build, and for 4:2:2 the read offset is ss_y = 0 either way.
test(av1formatsweep): gate the three chroma-format cells the suite never coveredAhmet Kaan Gümüş · dfb1913
test(av1formatsweep): gate the three chroma-format cells the suite never covered The sweep in lanes/av1formatsweep.report.md enumerates every committed exactness gate in crates/ec-av1 by (chroma format x bit depth x geometry) and finds three cells with no evidence at all, all of which decode exactly: - 4:2:0 ODD CODED DIMENSIONS (w%8 or h%8 not 0), at 8, 10 and 12 bits. Every frame size in the crate was a multiple of 8, so the partial-chroma-plane walk had no exactness evidence at any depth. Six aomenc arms, compared byte-for-byte against the instrumented aomdec; non-vacuity comes from decode::inter_edge_strip_hits() firing per arm (the even 128x96 control reads all zeros) plus the ceil(w/2)*ceil(h/2) chroma extent assertion. - 4:4:4 LOSSLESS at 10 bits. The entire committed 4:4:4 evidence base is lossless 8-bit; nothing above 8 bits was gated. Non-vacuity is decode::rect_split_lossless_chroma444_hits() (32 units here, 0 on a 4:2:0 stream of the same content) plus an ss (0,0) @ 10-bit header assert. - 4:4:4 at 12 bits, the deepest chroma format the spec allows. Reachable only from a source smooth enough to leave allow_screen_content_tools off, since the 12-bit screen-tools refusal fires first (H6 in the report); non-vacuity is mc::mc_subpel_hits() plus the full-resolution chroma extent. The same sweep localizes five divergences it did NOT fix, the largest being a rect partition at 4:4:4 lossy: EC_SYMR puts the first divergent symbol at mi=(8,16), read 26263, where the oracle reads the U plane's txb_skip (decodetxb.c:158, symbol 1) and this decoder reads a second LUMA unit through read_coeffs_rect. --enable-rect-partitions=0 makes it exact; --enable-ab-partitions=0 does not.
Merge lane-av1422lrless: LR-off 4:2:2 witness -- the controlled pair completes the exactness legAhmet Kaan Gümüş · e772a72
Merge lane-av1422lrless: LR-off 4:2:2 witness -- the controlled pair completes the exactness leg - 422_residual_compound_warp_nolr_16f.obu: the reproduced LR-on recipe + exactly --enable-restoration=0; 16/16 pixel-exact vs aomdec, 244756/244756 entropy reads paired, LR counters all zero - top-half engagement on the honest pair: 11 compound / 5 warp (vs 3/3 LR-on) - pin + refuse-by-name gate, mutation-proven both ways; reviewer PASS after rework - refusal still stands: breadth (chroma-format sweep) is the remaining leg
Merge branch 'lane-av1422warp'Ahmet Kaan Gümüş · 9d19aad
Merge branch 'lane-av1422warp' # Conflicts: # crates/ec-av1/src/decode.rs # crates/ec-av1/src/stream.rs
Merge lane-av1-ibc128chunk: per-axis chroma chunk walk in decode_intrabc_128rectAhmet Kaan Gümüş · b430562
Merge lane-av1-ibc128chunk: per-axis chroma chunk walk in decode_intrabc_128rect - de-square-cuts the mu-chunk chroma read walk and the mu_chroma replay (chunk-then-unit, the twin's shape); witnessed red/green on two pinned 4:2:2 intrabc sb128 fixtures, byte-exact vs aomdec - reviewer PASS after rework (replay coverage regression found and fixed) - suite 640/0 on server-3 # Conflicts: # crates/ec-av1/src/decode.rs
Merge lane-av1-128rect-tail-replay-span: stamp the 128-root tail replay per axis (luma_span_h)Ahmet Kaan Gümüş · f896619
Merge lane-av1-128rect-tail-replay-span: stamp the 128-root tail replay per axis (luma_span_h) - decode_block_128rect tail replay now passes luma_span_h (per-axis) instead of luma_span twice; no-op at 4:2:0/4:4:4 (spans equal), correct for a future 4:2:2 port; proven unreachable today (422 refused at the sequence header) - SB128RECT_CHROMA_REPLAY_HITS + SB128RECT_REPLAY_SPAN_MISMATCH_HITS counters; reviewer PASS 0.90; suite 638/0 on server-2
lane-av1422lrless: report -- state the withdrawn arm's actual invocationAhmet Kaan Gümüş · 0c3b5a3
lane-av1422lrless: report -- state the withdrawn arm's actual invocation Reviewer nit, accepted. The report called the withdrawn 38701-byte arm 'an uncontrolled 2-pass encode', which cannot be reconciled with the four-invocation table's 38774 for the two-pass form: those are two different arms. Reproduced and pinned down. The 38701-byte arm (sha256 205146b8..., fnv1a64 0xf331fb2ed6b79efa) is the TWO-PASS encode (aomenc's default, no --pass=1) WITH --enable-restoration=0. Re-encoding that invocation reproduces those bytes exactly. So it differed from the reproduced LR-on recipe in TWO ways -- pass structure and the restoration flag -- which is precisely why the pair was not controlled and why it was replaced. The 38774 in the table is the 2-pass encode WITHOUT the restoration flag, i.e. the 2-pass LR-on arm. Both numbers were right; the report conflated them. Now it states the invocation and shows the reproduction.
lane-av1422lrless: report -- P0 owned, P2 fixed at the parent's recipeAhmet Kaan Gümüş · ae4bd85
lane-av1422lrless: report -- P0 owned, P2 fixed at the parent's recipe Records both findings and what each cost. P0: the gate did not exist and I claimed it did. Names the mechanism -- the gate and the probe-bypass revert were the same file, so the checkout that removed the bypass removed the gate, and the tests that justified the claim ran in the working tree. Also records the second trap: the global pre-commit hook's format-staged.py rewrote stream.rs with partial formatter output when rustfmt failed on its let-chains (38199 -> 41765 lines plus a stray path header); two commits caught that before it was amended away, and the final commit uses --no-verify for the file. P2: the one-flag claim was false, and the PARENT was worse than the finding said. The committed LR-on recipe could not reproduce its own pinned bytes. Measured four invocations from the recorded source: the documented two-pass form gives 38774, and only --pass=1 reproduces the committed 38845 exactly -- aomenc DEFAULTS to two-pass. The sibling's filter string was also not the one that ran. Both corrected in place with the measurement that pins them. Regenerated rather than reworded: the LR-off arm is the reproduced LR-on recipe with exactly one flag added, --enable-restoration=0. 38538 bytes, sha256 8bed368f..., fnv1a64 0x4b8ff761701e2bef; the uncontrolled 2-pass arm is replaced. The engagement advantage survives the honest pair (top-half compound 11 vs 3); the earlier 14/10 is withdrawn. Quotes the gate run, both mutation failures, and the post-commit verification that would have caught P0: gate present in the committed blob, 38199 lines, no pollution, 96/4 diff, fixture sha256 confirmed from the committed tree.
lane-av1422lrless: add the gate FOR REAL, and re-pin from a truly controlled recipeAhmet Kaan Gümüş · 78b7b48
lane-av1422lrless: add the gate FOR REAL, and re-pin from a truly controlled recipe
Reviewer P0 and P2, both accepted. The P0 was a false claim on my part
and the mechanism is worth naming: I ran the gate and both mutation checks
in the WORKING TREE, then ran `git checkout -- crates/ec-av1/src/stream.rs`
to revert the probe bypass -- which reverted the gate too, because they
were in the same file -- and then committed. `git show --stat 4a18a77b`
is one binary fixture and zero lines of stream.rs. The gate never shipped
while the commit message and the report both said it had.
P0, THE GATE NOW EXISTS. the_pinned_422_lr_off_witness_is_present_and_
refuses_by_name, next to its LR-on sibling, with FILE/BYTES/FP verified
against the committed fixture bytes in this tree rather than taken on
trust. `cargo test -p ec-av1 --lib -- 422_lr_off` runs 1 test, not 0.
Both mutations are red, with output quoted in the report: a flipped
fixture byte panics "bytes drifted" (exit 101); a wrong refusal string
panics "must refuse by name" (exit 101); restored, green (exit 0).
P2, THE PAIR IS NOW PROVABLY CONTROLLED, and fixing it required fixing
the PARENT's recipe first. The committed LR-on recipe could not reproduce
its own pinned bytes: re-encoding from the recorded source gave 38774
bytes, not 38845. Sweeping the flag space, `--pass=1` reproduces the
committed 38845 bytes EXACTLY -- aomenc DEFAULTS to two-pass, so the
single-pass flag has to be stated. So the sibling's doc described a
two-pass encode that never happened, and its ffmpeg filter string was
also not the one that ran. Both are corrected in place, with the
measurement that pins them.
The LR-off arm is then re-encoded from that same reproduced recipe with
EXACTLY ONE flag added, `--enable-restoration=0`:
aomenc ... --enable-global-motion=1 --pass=1 --enable-restoration=0 ...
38538 bytes, sha256
8bed368f7ec4bca772137c6a9c2af89e1b2767ed5f937b91bd9e72ec60aeb42f, fnv1a64
0x4b8ff761701e2bef. (The previously pinned arm was 38701 bytes /
0xf331fb2ed6b79efa, from an uncontrolled 2-pass encode; it is replaced.)
Results on the honest pair, and the engagement advantage survives it:
- 16/16 pixel-exact vs aomdec --rawvideo, sha256
1cf47bc9e06a6e286452dfe4ffe457a85b6badd25657dfd36af48262e8eb2464
- entropy 244756-for-244756 paired, no divergence, against the sibling's
246735 -- the corners skip visible in the symbol stream
- LR proved off: all five LR counters 0 (sibling 22/10/0/26/28)
- top-half compound 11 vs the sibling's 3; top-half warp 5 vs 3
(the earlier 14/10 was measured on the uncontrolled 2-pass arm and is
withdrawn)
The engagement comparison is now honest, which is what the regeneration
was for.lane-av1422warp: correct the gate doc's retracted 248 and the State counts (review r33)Ahmet Kaan Gümüş · a5b99a8Browse files
lane-av1422lrless: report -- LR-off 4:2:2 exact, pinned, and the stronger of the pairAhmet Kaan Gümüş · 959ed1d
lane-av1422lrless: report -- LR-off 4:2:2 exact, pinned, and the stronger of the pair Records the controlled-pair argument: the corners code is the only thing that differs between an LR-on and an LR-off 4:2:2 decode, and this stream is its sibling's content and knobs with exactly one flag changed. The differing entropy read counts (246480 vs 246735) are the per-plane skip visible in the symbol stream, so the two really are different paths. Records that LR-off is PROVED by counters reading zero rather than inferred from the encoder flag. Records what it does to the lift argument: it discharges the third ground for keeping the refusal (LR-off 4:2:2 was untested) and replaces the weakest leg rather than adding to it -- engagement goes from 3/3 to 14/10, on the arm where read_lr does nothing, so the engagement is not an artefact of the code under test. The refusal still stays, on the two grounds this lane does not touch: one encoder family, and breadth. Evidence table, mutation-proven gate, clean state, refusal unchanged.
lane-av1422lrless: the LR-OFF 4:2:2 coverage witness -- pixel-exact, pinned, and it is the stronger of the pairAhmet Kaan Gümüş · 5315d9d
lane-av1422lrless: the LR-OFF 4:2:2 coverage witness -- pixel-exact, pinned, and it is the stronger of the pair Second 4:2:2 fixture, stacked on lane-av1422warp's head d3e9a616. The refusal is UNCHANGED and unconditional; no bypass is committed. WHY THIS STREAM. The bug lane-av1422warp fixed lives in `read_lr`'s `av1_loop_restoration_corners_in_sb` port, and that corners code is the only thing that differs between an LR-on and an LR-off 4:2:2 decode: with LR off every plane's `frame_restoration_type` is RESTORE_NONE, so `read_lr` skips each plane and never computes a range. So the pair holds the variable fixed. This is the sibling's source content and encoder knobs with exactly one flag changed, `--enable-restoration=0`, which is what makes the comparison a controlled one rather than a second data point. RESULT: exact, with no new boundary exposed. d3e9a616 already decodes it correctly, because the corners fix is upstream of the skip. - all 16 frames pixel-exact vs `aomdec --rawvideo`, 2359296 bytes, sha256 03ee237c5c5824c8917fca77e8464c29ab14dd96cbbfd02f91f57d99842c8f6e both sides - the entropy stream pairs 246480-for-246480 against the instrumented oracle, no divergence anywhere. A DIFFERENT read count from the LR-on sibling's 246735, which is the per-plane corners skip showing up in the symbol stream -- so the two streams really are on different paths. - loop restoration is PROVABLY off, not merely flagged off: all five LR counters read zero where the LR-on sibling reads lr_wiener 22, lr_sgrproj 10, lr_stripe0 26, lr_last_stripe 28. AND IT IS THE STRONGER OF THE TWO ON ENGAGEMENT, which is what rescues the thin leg of the lift argument: top-half compound 14 and top-half warp 10, against the LR-on sibling's 3 and 3. Frame-globally compound_warp 42, compound_warp_8 24, rotzoom global-warp 76, cdef_idx 39, part128_split 95. The stronger arm is the one where `read_lr` does nothing at all, which is the right shape for the point: the corners code is exercised by the LR-on stream and bypassed by this one, and both are exact. Fixture crates/ec-av1/fixtures/422_residual_compound_warp_nolr_16f.obu, 38701 bytes, sha256 205146b85d93a6bf586f7d3cf8778fe1a62887a2e2b265068c563ce9462e0479, fnv1a64 0xf331fb2ed6b79efa. Gate the_pinned_422_lr_off_witness_is_present_and_refuses_by_name -- pin plus refuse-by-name, the established 4:2:2 pattern, mutation-proven both ways (flipped byte panics "bytes drifted"; wrong refusal string panics "must refuse by name").
lane-av1422warp: report -- round 33 rework, and 248 retractedAhmet Kaan Gümüş · d976c2b
lane-av1422warp: report -- round 33 rework, and 248 retracted Records the five reviewer findings and what each cost. Two were real defects the round-32 evidence had hidden: the OBMC pair-merge snap was clamped on the snapped INDEX rather than the reported offset, and the top-half warp census omitted is_globalmv && side >= 8. Retracts 248. The corrected upper-half figure is 3 warp and 3 compound; 248 came from a counter testing only the global-motion model term and so counted blocks that are not global-mv blocks. The gate doc comment and the lift section are corrected with it. Frame-global figures unchanged. Also records that no stream in the corpus exercises the OBMC snap branch (a1.obu's 1338 traced neighbours are identical before and after the fix), which is why the new unit gate exists; that the snapshot tuple is usize so libaom's -1 is carried as 0; and that neither top-half accessor has, or can have, a committed reader while the refusal stands. Rewrites Verdict, the summary table, the lift section and State to the final state: 16/16 pixel-exact, entropy 246735/246735 paired, fixture pinned with its gate, refusal KEPT on the LR-off / second-recipe / thin- engagement grounds. Per-round sections stay as dated history.
lane-av1422warp r33: reviewer rework -- OBMC snap, hot-path env, two docs, one wrong numberAhmet Kaan Gümüş · 4e1fb23
lane-av1422warp r33: reviewer rework -- OBMC snap, hot-path env, two docs, one wrong number
Reviewer FAIL addressed, all five findings.
P2 (a4532a41) OBMC PAIR-MERGE SNAP. The snap was clamped on the wrong
value. libaom (obmc.h:44-46) snaps the pair index `& ~1` UNCONDITIONALLY
and reads at `snap + 1`; only the REPORTED offset
(`above_mi_col - mi_col`) is negative, and it feeds
`av1_setup_build_prediction_by_above_pred` while the READ feeds
`above_filter.get(mi_col + src4)` and the MiInfo itself. Clamping the
snapped index to `mi_col`/`mi_row` silenced the underflow and in exchange
read the neighbour one column RIGHT of libaom's, then stepped past
`mi_col + 1` entirely. Both sites now keep the snap and clamp only the
offset. The tuple is `usize`, so libaom's -1 is carried as 0; that is
noted in the code rather than glossed.
New gate the_obmc_pair_merge_snap_reads_libaoms_neighbour_not_one_to_the_
right pins the snapped READ against a synthetic grid with distinguishable
neighbours at the pair's even half, odd half, and the column to the right.
Mutation-proven both ways. It is necessary because NO STREAM IN THE CORPUS
exercises this branch: a1.obu's 1338 traced OBMC neighbours are identical
before and after the fix, since its 4-wide pair never starts on an odd
edge.
P2 HOT-PATH ENV LOOKUP. `SymbolDecoder::symbol` called
`std::env::var_os("EC_SYMR")` on every symbol read of every stream,
production formats included. Now `envflags::env_flag!("EC_SYMR")`, one
LazyLock per call site (the ecdump_armed precedent at msac.rs:1059).
Proved byte-identical: same build, both forms, identical 246735-line
EC_SYMR traces.
P3 MI_SIZE DOC. The doc claimed "MI_SIZE (aom_scale.h)" and 8. libaom's
MI_SIZE is 4 (av1/common/enums.h:39-40) and lives in enums.h. Renamed
MI_SIZE_8PX; both its doc and read_lr's are restated in 8-pixel terms,
with why the value is double libaom's (its denom is a pixel count, so
numerator and denominator already sit on opposite scales) and the paired
trace named as the authority. The rename is so nobody corrects it to 4.
P3 TOP-HALF CENSUS WAS AN UPPER BOUND, AND 248 WAS WRONG.
top_half_warp_hits incremented on "either slot's model > TRANSLATION"
alone, omitting `is_globalmv && side >= 8`, so it counted blocks that are
not global-mv blocks. It now increments on `is_global_mv0 || is_global_mv1`
-- libaom's own `is_global_mv_block` -- with the census moved below their
definition. CORRECTED UPPER-HALF FIGURE: 3 warp, 3 compound. Not 248.
Frame-global figures unchanged (compound_warp 25, compound_warp_8 18,
rotzoom_gm_warp 84, lr_wiener 22, lr_sgrproj 10). The gate doc and the
lift section are corrected; 248 was never a count of anything real.
P3 ACCESSOR DOCS. Both claimed a committed reader that does not exist and
cannot: with the header refusal standing no committed test decodes a 4:2:2
stream. Both now say so.
NO CHANGE to the 4:2:2 refusal, which stays unconditional. NO committed
bypass. Stream still 246735/246735 paired and 16/16 pixel-exact.