Commits
Commits on
21c62a95b91a1a9929b8d548f4e7dfceb9ca73562026-09-30
Merge lane-av1422grain: film-grain synthesis is PER-AXIS -- and the 4:2:0-shaped geometry was silently wrong for 4:4:4 tooAhmet Kaan Gümüş · 21c62a9
Merge lane-av1422grain: film-grain synthesis is PER-AXIS -- and the 4:2:0-shaped geometry was silently wrong for 4:4:4 too The risk study's top finding was that `film_grain.rs` is the one module still 4:2:0-shaped, and the lift could not proceed over it. It is now per-axis, proven by measurement rather than by construction, and the measurement turned up more than the lift needed. **Evidence.** A real 4:2:2 film-grain stream decodes byte-exact with `grain_hits()` rising per cell (3 -> 4), the gate re-parses the OBUs and asserts a frame header carries `film_grain.apply_grain` (so it cannot be the params-without-apply false green of `stream.rs:16626-16629`), and the comparator is shown to bite (one flipped oracle sample per plane gives exactly (1,1,1) on every cell). The decisive control is negative: forcing the subsampling back to (1,1) and changing NOTHING else makes the 4:2:2 cell FAIL with 0/23370/22631 -- luma exact, ~30% of each chroma plane wrong, **no panic and no counter**. That single line is the defect, and it also proves the pass comes from this port rather than from a vacuous comparison. **The fix corrects the assigned premise, and the correction matters.** This libaom snapshot has NO `generate_grain_uv_422` / `av1_apply_grain_422`; it threads `chroma_subsamp_x/y` through one unified `add_film_grain_run` (`grain_synthesis.c:987`), set per pixel format in `av1_add_film_grain` (`:1386-1420`, which lists I422/I42216). The port matches the C's expressions, cited per site in the report. Three traps came out of it: the chroma BLOCK is `16 << (1 - ss)`, NOT `chroma_subblock_size << (1 - ss)` (the two agree at 4:2:0 and differ 2x wherever `chroma_subsamp == 0` -- and the wrong value is an OUT-OF-BOUNDS READ, not a wrong pixel); the block walk is in LUMA units at every subsampling, so only the chroma ORIGIN and extent are per-axis; and `copy_area(cb_col_buf + (chroma_subblock_size_y << (1 - ss_x)), ...)` is a FLAT ELEMENT offset, not a row index. **Two of the study's nine sites were wrong in the other direction and the fix says so**: `n = luma.len()/2` and `c_stride = width/2` are right at 4:2:2 and WRONG at 4:4:4 -- the operand needs a pair flag, not a division. Consequence worth stating plainly: **the pre-fix geometry was silently wrong for 4:4:4 film grain as well**, a supported format with no test of any kind. Two arms that were dead code at 4:2:0 are now live (`ver/hor_boundary_overlap`'s `==2` arm, and `add_noise_to_block`'s luma operand as a horizontal pair at `ss_x == 1`). **Coverage closed**: 4:2:2 and 4:4:4 film grain had NO test before this lane -- not an exactness gate, not a reference comparison. `ragged_overlap_tail_matches_spec_reference` was a 4:2:0-only transcription and is now driven over all three formats from one per-axis reference, with the assertion the old geometry could not make: the LAST chroma row must come back grained, which at 4:2:2 is exactly the raw bottom half the `nrows = height/2` walk left behind. Controls: `cargo test -p ec-av1 --lib film_grain` 8 passed; blast sweep on 422/444/chroma 95 passed; `cargo check --tests` clean.
lane-av1422grain: the report -- measured, ported, byte-exact, negative-controlledAhmet Kaan Gümüş · a8377a2
lane-av1422grain: the report -- measured, ported, byte-exact, negative-controlled
Records the measurement that opened the lane (aomenc emits 4:2:2 grain, and
4:4:4 too), the libaom source lines each per-axis site was transcribed from,
the three traps the port walks into, and the proof obligations.
The headline is section 5. Forcing Ss::read back to the pre-lane geometry and
changing nothing else makes g422_t5.obu fail against ffmpeg with
left: (0, 23370, 22631) right: (0, 0, 0)
-- luma exact, ~30% of each chroma plane wrong. No panic, no counter, no
refusal. That is the defect this lane closed, in one line.
Also reports, rather than buries, that my first edit used a relative path
while the shell CWD was the primary checkout and leaked into it. All 61 added
lines were verified mine and reverted; the post-probe `git status` is what
caught it. See section 8.lane-av1422grain: film grain synthesis is per-axis, not 4:2:0-shapedAhmet Kaan Gümüş · 55a7187
lane-av1422grain: film grain synthesis is per-axis, not 4:2:0-shaped MEASUREMENT first: aomenc really does emit 4:2:2 film grain, so this is a live arm, not a latent one. `aomenc --profile=2 --film-grain-test=5` over a `yuv422p` source produces a frame header carrying `subsampling_x = 1, subsampling_y = 0` with a full point set (read back with `ffprobe -export_side_data +film_grain`: seed, ar_coeff_lag 3, scaling_shift 11). The same is true at 4:4:4 under profile 1. Before this change the module grained the TOP HALF of a 4:2:2 chroma plane with a 4:2:0 row map and a 2x2 avgLuma quad -- no panic, no counter, no refusal, just a different picture. Every chroma-side constant and extent is now the C's expression, per-axis (`grain_synthesis.c`): the subblock and grain-block template (`:1018-1035`), the `avgLuma` tap, which is the `(chroma_subsamp_y + 1) x (chroma_subsamp_x + 1)` luma sample set -- a 2x2 quad at 4:2:0, a horizontal PAIR at 4:2:2, the sample itself at 4:4:4 (`:554-565`); the block placement offsets (`:1091-1094`); the chroma origin and the `half_h << (1 - ss_y)` by `half_w << (1 - ss_x)` block (`:680-681`, `:1129-1132`); the chroma stride (`:1461`); the line and column buffers (`:392-414`); and all four chroma `copy_area`/`hor_boundary_overlap` extents. Two traps the port walks into, both recorded at the site: * The block size is `16 << (1 - ss)`, NOT `chroma_subblock_size << (1 - ss)`. They agree at 4:2:0 and diverge wherever `chroma_subsamp == 0`, because the half extents `add_noise_to_block` is handed are LUMA ones (`:1254-1255`). * `copy_area(cb_col_buf + (chroma_subblock_size_y << (1 - ss_x)), ...)` is a FLAT element offset in the C, not a row index. Passing it as a row index multiplies it by the stride a second time and reads past the buffer. The `chroma_noise_row_scalar` reference grew a `pair` argument because `add_noise_to_block`'s luma operand differs by axis too: a horizontal pair at `ss_x == 1` (4:2:0 and 4:2:2 alike -- only the row step changes) and the bare luma sample at `ss_x == 0` (`:683-691`). CONTROLS UNCHANGED. The existing 4:2:0 coverage is untouched and still byte-exact against ffmpeg: `a_real_aomenc_stream_with_film_grain_decodes_pixel_exact` (8-bit), `a_real_aomenc_10bit_film_grain_stream_decodes_pixel_exact`, `a_real_aomenc_12bit_film_grain_stream_decodes_pixel_exact`, `real_aomenc_film_grain_streams_decode_pixel_exact`, plus both SIMD-vs-scalar pins. `untouched_planes_and_ragged_tail_come_back_clean` and `simd_matches_scalar_*` are unaffected. `ragged_overlap_tail_matches_spec_reference` was a 4:2:0-only transcription and is now driven over all three formats, so 4:2:2 and 4:4:4 have coverage for the first time. It also gained the assertion the old geometry could not make: the LAST chroma row must come back grained -- at 4:2:2 the plane is `height` rows tall and the old `nrows = height / 2` walk left the bottom half raw.
Merge lane-av1422hbd422: the two uncovered 4:2:2 cells are CLEAN -- 12-bit and superres both byte-exactAhmet Kaan Gümüş · 35bdf35
Merge lane-av1422hbd422: the two uncovered 4:2:2 cells are CLEAN -- 12-bit and superres both byte-exact
The risk study flagged 12-bit 4:2:2 (codable at profile 2, where both subsampling bits are coded) and
superres + 4:2:2 as never measured anywhere in the tree. Both are now measured, and both are clean: **seven
cells, all byte-exact per plane per frame vs ffmpeg 8.1.3**, no defect to attribute. Report-only; no decoder
source was touched and the refusal was not edited.
Covered: `s422_320x242_12b`, `s422_321x242_12b` (ODD WIDTH), `s422_323x243_12b` (odd width AND odd height),
`s422_320x242_12b_lossless`, and three superres cells (`s422sr_320x180_d12`, `s422sr_256x128_d12`,
`s422sr_256x128_d12_12b`) -- with **`use_superres` verified from the FRAME HEADERS**, not from the command line
(`213x180 up=320 superres=true/12`), which is the check that makes a superres claim mean anything. Two controls
(`ctl_s420_320x242_8b`, `ctl_s422_320x242_8b`) exact, and the comparator's liveness control run BEFORE any
verdict: **324 arms, 324 PASS**, one flipped sample per plane per arm in both directions with the mapping pinned
and every decode->display solution exercised.
Encoder trap worth keeping, because it is a silent-ish failure mode that reads like a codec bug:
**`aomenc` at 12-bit 4:2:2 FAILS when `--profile=2` is spelled on the command line** ("Failed to set chroma
subsampling x: Unspecified internal error", exit 1). The cells were produced without it -- aomenc upgrades the
profile itself. Same shape as the 12-bit 4:2:0 auto-upgrade already recorded, and it belongs beside it so the
next lane does not conclude that 12-bit 4:2:2 is unencodable.lane-av1422hbd422: 12-bit and superres 4:2:2 both byte-exact against ffmpegAhmet Kaan Gümüş · 9ed9589
lane-av1422hbd422: 12-bit and superres 4:2:2 both byte-exact against ffmpeg
Closes the two coverage gaps the av1422liftrisk study opened (R3, R9): no
12-bit 4:2:2 cell and no superres 4:2:2 cell existed anywhere in the tree.
Seven new cells, all measured with the patch-run-restore probe in a scratch
worktree (now removed, primary checkout verified clean):
12-bit 4:2:2 320x242, 321x242 (odd width), 323x243 (odd width+height),
320x242 lossless
superres 4:2:2 320x180 d12, 256x128 d12 (8-bit), 256x128 d12 (12-bit)
Every cell: Y=U=V=0 on every decode-order frame against ffmpeg 8.1.3
yuv422p12le / yuv422p, geometry from the SEQUENCE HEADER, decode->display
mapping re-derived from luma identity (one solution per cell).
Liveness control run first: 324/324 flip arms PASS (one flipped sample per
plane per arm, both directions).
Two encoder findings recorded because they are silent traps:
* aomenc at 12-bit 4:2:2 FAILS with "Failed to set chroma subsampling x" when
--profile=2 is spelled on the command line (apps/aomenc.c:2269-2282). The
format is codable and the profile does auto-upgrade -- use --profile=0.
* --superres-mode=1 --superres-denominator=8 at 320-wide input encodes
cleanly with use_superres=false on every frame. Always read the flag back
out of the frame headers before believing a superres cell.
Superres engagement is verified per cell in the frame headers
(171x128 up=256 superres=true/12), and predict_scaled is 3070-4066 per
stream including sub-8x8 inter blocks and 8x8 leaves under a scaled
reference, so the upscale path is genuinely exercised.
Nothing diverged, so nothing was fixed: no decoder source is touched and the
4:2:2 sequence-header guard stands. R8's missing 4:2:2 unit census, R2's
film grain, and R4's seven known-diverging 8-bit cells are untouched and
named as not-closed in the report.lane-av1422liftrisk: the lift's blast radius -- film grain is the one 4:2:0-only module, and seven tests whose only assertion is the refusalAhmet Kaan Gümüş · f3a29d1
lane-av1422liftrisk: the lift's blast radius -- film grain is the one 4:2:0-only module, and seven tests whose only assertion is the refusal Read-only study landed by Main (the lane is a shell-less scout): every ss_x/ss_y site classified as correct for 4:2:2 / correct today but WRONG for 4:2:2 / unreachable-and-needing-an-assertion; the tables indexed by the subsampling pair (the recent 4:2:2 work covers most, film_grain.rs covers none); the tests that go red versus those that go quietly vacuous; user-visible strings that become lies; and an ordered risk list. Headlines: film_grain.rs is 4:2:0-shaped throughout (c_stride/2, nrows=height/2, a 2x2 avgLuma quad, chroma row y addressed at luma row 2y), so at 4:2:2 it grains the top half of the chroma plane with the wrong row map and leaves the bottom half raw -- no panic, no counter, no refusal, just a different picture. 12-bit 4:2:2 is codable at profile 2 and has ZERO coverage anywhere in the tree. The seven refusal-named tests assert only err.contains(REFUSAL) -- they would pass on a tree where 4:2:2 decode is entirely broken -- and two of them (the 4:2:2-header-over-a-4:2:0-tile constructions, including the committed 440_request_is_422.obu pin) cannot be inverted into exactness gates because their fixture is not a 4:2:2 stream at all. refusal_inventory.rs's strip enumeration walks only (0,0)/(1,1), so post-lift it stops covering 4:2:2 without failing, while its sibling in the same file already walks (1,0). And no 4:2:2 unit census exists -- set_census_444 arms the unit counters at ss (0,0) only -- so the non-vacuity counter a 4:2:2 gate needs cannot be written yet. Main's landing note records the one thing the study could not check: the bypass it found in the working tree was real, was restored before this report was written, and never reached history.
scripts: commit the cmpff module the committed 4:2:2 drivers importAhmet Kaan Gümüş · 2d57774
scripts: commit the cmpff module the committed 4:2:2 drivers import `scripts/run422-ffmpeg.py` and `scripts/shape422-diff.py` both `import cmpff`, a module that was never committed -- the drivers were dead on arrival on a fresh checkout. `scripts/cmpff.py` is a symlink to `cmp422-ffmpeg.py`, which defines every symbol they use (`plane_spans`, `probe_geometry`, `run`, the decode->display mapping and the per-plane comparator), so both scripts run as written. Verified by importing the module and driving `scripts/run422-ffmpeg.py` through a cells JSON: three 4:2:2 cells BYTE-EXACT and a 4:2:0 control exact on a clean tree.
Merge lane-av1422ffmpegbase addendum: 94 of 95 cells byte-exact at 3d56fb60 -- and no cell moved the wrong wayAhmet Kaan Gümüş · 6253285
Merge lane-av1422ffmpegbase addendum: 94 of 95 cells byte-exact at 3d56fb60 -- and no cell moved the wrong way The base the lift will be judged on, re-measured on the post-fix tree with the same instrument. **4:2:2 44/51 -> 50/51; whole set 88/95 -> 94/95; 4:2:0 22/22 and 4:4:4 22/22 byte-exact before AND after, with ZERO cells moved.** The six closures are the family plus the luma-wrong cell (`s422_320x246`, `s422_322x240`, `s422_322x246`, `s422_352x242_10b`, `s422_416x242_10b` all to 0/0/0, and `s422_416x250_10b` 99011/61486/60106 -> 0/0/0). The single remaining red is byte-for-byte UNCHANGED across the fix -- same first bad sample (display frame 6, U row 174 col 32, ours 133 vs ffmpeg 132), same bbox, same 10-of-16 frames carrying a wrong sample, and the per-frame vector an IDENTICAL list -- which is the positive evidence that `298be661` did nothing outside its own arm. That cell is the reserved group-tail chroma SKIP arm and its owner lane is working it now. Instrument discipline worth more than the table: **the decoding binary is now an ASSERTED ARGUMENT**, not a pinned path (`FF_DUMP_YUV`), every result row records which probe produced it, the 4:2:2 rows come from a patch-run-restore build and the 4:2:0/4:4:4 controls from a SEPARATE CLEAN build of the same tree (detached worktree, `git status --porcelain` empty) -- because a single pinned path would let a bypassed binary serve the controls, and the controls are the only evidence that the 4:2:2 change moved nothing else. A **probe-split control** runs on every invocation and fails the run if the split is wrong (`W_intrabc`: clean build REFUSES, bypass build BYTE-EXACT). All 95 cells re-hashed with 0 drift, the nine committed pins re-pathed to the worktree before hashing so the hashed bytes are the shipped bytes, geometry from ffprobe (never a y4m header -- ffmpeg's y4m muxer cannot carry 10-bit), display-order shown frames on both sides, depth-correct dumps. Liveness: 23 arms, 23 PASS, re-run against this tree's dumps before any verdict, one flipped oracle sample per arm moving exactly +1 in the named plane. With a caveat the lane raised against itself and which matters: six of the seven non-zero baselines are now exact, so the non-zero-baseline class rests on ONE arm -- the red cell (0/1780/1871 -> 0/1780/1872 on a V flip at frame 14, oracle byte 2718720 eb->ea, Y staying 0). A comparator that had silently stopped reading the oracle would also report 0/0/0 on the exact cells, so that arm must be re-run when the residual closes or the liveness proof loses its non-zero case.
lane-av1422ffmpegbase: re-measure on 3d56fb60 -- 94/95 exact, 50/51 4:2:2, ONE cell leftAhmet Kaan Gümüş · e2894cb
lane-av1422ffmpegbase: re-measure on 3d56fb60 -- 94/95 exact, 50/51 4:2:2, ONE cell left
The tree moved (298be661, lane-av1422luma: decode_rect4_16_intrabc gives ss (1,0)
its own chroma) and it changes the base the 4:2:2 lift will be judged on, so this
lane's own census is re-run rather than a lane's number adopted.
4:2:2 44/51 exact -> 50/51 exact (six cells close, one unmoved)
4:2:0 22/22 exact -> 22/22 exact (0 moved)
4:4:4 22/22 exact -> 22/22 exact (0 moved)
set 88/95 -> 94/95 exact
No cell moved the wrong way. The 4:2:0/4:4:4 controls are bit-identical across the
change and every one of them was produced by a CLEAN build of 3d56fb60.
Closed, measured here: s422_320x246 0/7810/5531, s422_322x240 0/22003/21625,
s422_322x246 0/3437/2222, s422_352x242_10b 0/4653/3777, s422_416x242_10b
0/5740/4348, s422_416x250_10b 99011/61486/60106 -- the last being the only luma-wrong
cell, now 0/0/0. Still diverging: s422_384x240, 0/1780/1871, BYTE-FOR-BYTE the same
as on affe70dc -- same first bad sample (display frame 6, U r174 c32, ours 133 vs
ffmpeg 132), same bbox, same 10-of-16 frames, and the two per-frame vectors are
identical lists. 298be661 changed nothing in it, which is the expected shape for
the reserved group-tail chroma SKIP arm.
Instrument discipline: sha256 of all 95 cells re-verified (0 drift, committed pins
re-pathed to the 3d56fb60 tree before hashing); geometry from ffprobe with hard
errors; display order on both sides; depth-correct dumps; liveness re-run BEFORE the
verdicts were read -- 23 arms, 23 PASS, 0 FAIL, and the arm that now carries the
non-zero-baseline case is the one remaining red cell, which moves by exactly +1 V
on a 0/1780/1871 baseline.
New in the driver: the decoding binary is an ASSERTED ARGUMENT. FF_DUMP_YUV names
it, every result row records it as `probe`, the 4:2:2 rows came from a
patch-run-restore build and the control rows from a separate CLEAN build of the
same tree, and --probe-records proves the split on every run
({"probe_split_control":"PASS","cell":"W_intrabc","clean_build":"REFUSES",
"bypass_build":"BYTE-EXACT"}). A single pinned path would have let a bypassed
binary serve the controls, and the controls are the only evidence that the 4:2:2
change moved nothing else.
Bypass hygiene: scratch worktree probe422_v2 at 3d56fb60, guard at stream.rs:1803
patched to `if false && ...` (2-line diff verified before building), restored,
git status --porcelain empty, worktree removed, and the bypassed target directory
DELETED so no bypassed binary survives on disk for a later run to pick up. The
driver's documented path is the clean build. No decoder file edited on either
tree; the 4:2:2 refusal still stands.
Section 4's lift checklist is unchanged as a plan; section 2's tables are a record
of affe70dc and are not rewritten, this addendum is the current base.Merge lane-av1422seed r2: the flip control is PROVEN to bite (324/324) and the merged fix re-measured independentlyAhmet Kaan Gümüş · 10be7f5
Merge lane-av1422seed r2: the flip control is PROVEN to bite (324/324) and the merged fix re-measured independently The comparator this family's numbers rest on is now proven live, and the root cause of the missing proof is itself the interesting part: the census's own `flipctl.py` never ran because it was BROKEN -- it re-derived the decode->display mapping by luma identity inside every compare() call, so flipping a sample destroyed the mapping key and the call aborted. It was never "unrun". The committed control `scripts/flipctl-422.py` maps ONCE, pins that mapping across every arm, exercises EVERY decode->display solution (so an ambiguous mapping cannot hide a failure), and flips in BOTH directions -- the oracle arm and the ours arm, which is the direction every sweep number is read in. Result on the merged tree: **324 arms, 324 PASS, 0 FAIL** across five s422 targets, the luma-wrong cell, two 4:2:0 and two 4:4:4 cells, both depths, two shown frames and three samples per plane per cell, all baselines 0/0/0 so every arm is a +1-off-zero test. It also re-measured the merged fix rather than inheriting it: the five family cells 0/0/0 (from 0/22003/21625, 0/7810/5531, 0/3437/2222, 0/4653/3777, 0/5740/4348), 4:2:0 and 4:4:4 controls 5/5 exact (so the new `own422` predicate leaves the 4:2:0 pair arm and the 4:4:4 `own444` arm untouched), luma 0 on every shown frame of every cell, and `s422_384x240` unchanged at 0/1780/1871 -- correctly NOT attributed to this arm. Trap worth keeping, recorded in the report and in skill `oracle-comparator-liveness-control`: its first re-measurement ran against a STALE `main` ref (`0c77bad5`, cached before the merge) and reproduced the pre-fix numbers exactly -- nothing in the output distinguished "the fix does not work" from "the branch pointer is old". Re-resolving main first turned the same command into 0/0/0. Same class as a stale binary, on the ref instead. Honest residue, stated rather than implied: the POST-fix sentinel census was NOT re-run (the scan is still the temporary uncommitted edit; §3's census is the PRE-fix one and stands as written); coverage on the merged tree is ARGUED rather than censused (an unwritten sample would hold 0xDEAD = 57005, unreachable at either depth, so per-plane exactness cannot coexist with one -- labelled an inference); and no gate was added, because a 4:2:2 byte-exact gate is unreachable while the sequence header still refuses the format.
lane-av1422seed r2: the comparator is proven to BITE -- 324/324 flip arms, and the merged fix re-measured hereAhmet Kaan Gümüş · 358ec13
lane-av1422seed r2: the comparator is proven to BITE -- 324/324 flip arms, and the merged fix re-measured here No decoder change. lane/av1422luma 459e425d (main 298be661) closed the arm this lane localised; this round checks the claim instead of restating it, and closes the one hole this report had named against itself twice (§1.1 and §7: "the flip control was not run"). scripts/flipctl-422.py flips ONE sample and requires the wrong-sample count to move by EXACTLY +1 in that plane and 0 in every other plane, in both directions: the oracle arm (one ffmpeg sample, which on a 0/0/0 cell is the only thing that can move) and the ours arm (one of our samples, which is the direction every number in this report is read in). It maps decode->display ONCE and pins the mapping across the flip, because the census's own flipctl.py re-derives that mapping from LUMA identity inside every compare() call and a flipped sample destroys the very key it maps on -- the control aborted instead of measuring, which is why it had never run rather than merely never been run. Every decode->display SOLUTION is exercised, so an ambiguous mapping cannot hide a failure behind the one that got picked. 324 arms, 324 PASS, 0 FAIL: five s422 target cells, s422_416x250_10b, two 4:2:0 and two 4:4:4 cells, two shown display frames each, three sample indices per plane, both depths, all baselines 0/0/0 -- so every arm is a +1-off-zero test. The 2-solution mapping class (s420_352x242_10b, hidden frame 16, 72 arms) is included, which is where a comparator that quietly picks one assignment shows. Independently re-measured on main 298be661 with the local-only 4:2:2 probe bypass, reverted after (git diff main -- crates/ empty; the sequence-header refusal at stream.rs:1803 is intact): all five target cells 0/0/0, 4:2:0 and 4:4:4 controls 5/5 byte-exact, s422_* sweep 17/18 with s422_384x240 unchanged at 0/1780/1871 -- the frame-1 altref residual lane/av1422late owns. Report §9 records one trap worth keeping: the first re-measurement of this round ran against a STALE main ref (0c77bad5, cached before the merge) and reproduced the pre-fix numbers exactly. Nothing about that result distinguished "the fix does not work" from "the branch pointer is old"; re-resolving main is what turned the same command into 0/0/0. Same class as stale-binary false readings, on the ref instead of the binary. §9.3 states what is still NOT measured: the POST-fix sentinel census was not re-run (the scan remains the temporary uncommitted edit §8 step 3 describes). Coverage on the merged tree is argued, not censused -- an unwritten sample still holds PLANE_SENTINEL 0xDEAD = 57005, above the 10-bit maximum and unreachable by ffmpeg at either depth, so per-plane byte-exactness on every shown frame cannot coexist with one -- and that inference is labelled as such rather than presented as a census.
Merge lane-av1422seed r2: the localisation report is amended to point at the landed fixAhmet Kaan Gümüş · 2b46317
Merge lane-av1422seed r2: the localisation report is amended to point at the landed fix Report-only. The seed lane's localisation (the intrabc 1:4 strip's pair geometry, the constant list, the sentinel census) is annotated with the RESOLVED outcome: the fix landed as `459e425d` in lane-av1422luma, and all six cells of the family are byte-exact. The amendment records what the localisation missed and why -- the mi-map PUBLICATION half (the origin alone regressed luma 0 -> 5958) and the fact that `has_chroma` was NOT the missing piece (the caller's predicate already holds for every HORZ strip in the cell: 56 in frame 0, and the U/V units at mi (51,84) are read, so the oracle reads chroma for an even-row strip too).
lane-av1422seed: amend the report with the RESOLVED outcome -- the landed fix is 459e425d, and all three halves had to moveAhmet Kaan Gümüş · 8f27385
lane-av1422seed: amend the report with the RESOLVED outcome -- the landed fix is 459e425d, and all three halves had to move This lane's commit 33cb2d0b recorded the defect localised and the fix not landed. It has since been landed by lane-av1422luma (459e425d) on top of this lane's write-side hunk, so the report is amended rather than left to claim a stale "not landed" verdict. No decoder change is added here. New §3.3: all six cells of the family byte-exact vs ffmpeg 8.1.3, 16 shown frames -- s422_320x246 0/7810/5531 -> 0/0/0, s422_322x240 0/22003/21625 -> 0/0/0, s422_322x246 0/3437/2222 -> 0/0/0, s422_352x242_10b 0/4653/3777 -> 0/0/0, s422_416x242_10b 0/5740/4348 -> 0/0/0, s422_416x250_10b 99011/61486/60106 -> 0/0/0. 25 of 26 swept cells byte-exact; s422_384x240 unchanged at 0/1780/1871 on its own residual (luma-exact on both sides of the change, first bad frame 1) and must not be attributed to this arm. 4:2:0 and 4:4:4 controls unchanged. The landed shape is recorded in full because the lesson is the SHAPE, not the one line: one predicate own422 = ss_x==1 && ss_y==0 && horz drives FIVE edits -- the chroma plane block (bw>>ss_x, bh>>ss_y), pair_mi -> lmi, the chroma origin (px>>ss_x, py>>ss_y), BOTH chroma context gathers (around_mi_422_chroma at ss (1,0), around_mi_rect kept at 4:4:4 where a chroma column IS a luma mi column), and -- the half this lane never named -- the mi-map publication record_uv_mode_mi plus the two left/above skip loops at (lmi, bw, bh). has_chroma is NOT the missing piece; this lane's §4 candidate 1 is disproved (the caller's predicate already holds for every HORZ strip, 56 in frame 0). Why every half was needed: the gather's LEFT flag was read one mi row high (ours ctx 2, oracle ctx 8), all_zero decoded 1 instead of 0, the frame desynced -- one constant read from three places. That is why the write-side-only attempt regressed luma 0 -> 5958.
Merge lane-av1422luma: 4:2:2 IntraBC 1:4 strips code their OWN chroma -- six sweep cells byte-exact, and the luma-wrong cell was a chroma-origin ENTROPY desyncAhmet Kaan Gümüş · 2a729cd
Merge lane-av1422luma: 4:2:2 IntraBC 1:4 strips code their OWN chroma -- six sweep cells byte-exact, and the luma-wrong cell was a chroma-origin ENTROPY desync The frame-0 chroma family (five cells) and the luma-wrong cell `s422_416x250_10b` all close with one fix at one arm: `decode_rect4_16_intrabc`. The 4:2:0 1:4 PAIR rule (`is_chroma_reference`) was applied at every ss except the 4:4:4 arm, but at ss (1,0) it is true for EVERY block, so a 4:2:2 strip codes its own chroma at its own origin. Five edits land the own-chroma treatment: `cw,ch` from `(bw>>ss_x, bh>>ss_y)`; `pair_mi = lmi`; `cpx,cpy` from `(px>>ss_x, py>>ss_y)` (the pair's (144,62) was the wrong row -- 66 rows high); BOTH chroma coefficient-context gathers over the strip's own extent, routed through `around_mi_422_chroma` at ss (1,0) only (4:4:4 deliberately keeps `around_mi_rect`, since at ss_x 0 a chroma column IS a luma mi column); and the mi-map publication the next block reads (`record_uv_mode_mi` plus the two left/above skip loops) over the strip's own extent. **The luma-wrong cell was the same constant, one read later, and this is the part worth remembering**: with the origin moved but the gather left on the 4:2:0 pair, the U/V `txb_skip` read of the intra-BC 16x4 strip at mi (51,84) took its LEFT flag one mi row high (ours ctx 2, oracle ctx 8), `all_zero` decoded 1 instead of 0, the frame desynced, and luma went 0 -> 5958 wrong -- exactly the regression the earlier write-side-only attempt produced. So the defect chain is: wrong chroma origin -> wrong coefficient-context gather -> wrong skip read -> entropy desync -> wrong luma for the rest of the frame. The first divergence for that cell is a chroma `txb_skip` read at mi (51,84); the intra ladder pairs the first 450 frame-0 blocks exactly on (mi_row, mi_col, rng) and forks at index 450 (ours 8x16 vs oracle 16x16); the partition ladder shows 367 identical-rng reads with a constant +15-bit tell; the per-TU ladder is +15 through TU 1918 with the same BIT but a different CDF state at TU 1919; and the oracle's own dump for that unit shows ctx 8 above [23,23] left [0] against our ctx 2 `around=(true,true,5)`. Filters are inert: prefilter/deblock/CDEF/final all carry the same 6538 luma count. Measured after: all six cells **0/0/0** per plane per frame vs ffmpeg 8.1.3 (`s422_320x246` 0/7810/5531 -> 0/0/0, `s422_322x240` 0/22003/21625 -> 0/0/0, `s422_322x246` 0/3437/2222 -> 0/0/0, `s422_352x242_10b` 0/4653/3777 -> 0/0/0, `s422_416x242_10b` 0/5740/4348 -> 0/0/0, `s422_416x250_10b` 99011/61486/60106 -> 0/0/0), three of them also 17/17 byte-exact in DECODE order against the instrumented aomdec with the hidden altref included. Controls unchanged: 4:2:0 10-bit and 4:4:4 10-bit sample cells 0/0/0 before and after, the pre-existing gate `a_444_intrabc_rect4_reads_its_own_chroma_plane_block` passes with UNCHANGED numbers (23 own-chroma strips at 4:4:4, 0 at 4:2:0), the 26 intrabc-named tests pass, and liveness is proven post-fix by per-plane single-sample flips (Y, U and V each move by exactly +1 and leave the other two planes at 0). `s422_384x240` is explicitly NOT this arm: it stays 0/1780/1871, luma-exact, first bad frame 1, and belongs to the reserved group-tail chroma SKIP arm's new owner.
lane-av1422seed: amend the report with the RESOLVED outcome -- the landed fix is 459e425d, and all three halves had to moveAhmet Kaan Gümüş · 8a032f3
lane-av1422seed: amend the report with the RESOLVED outcome -- the landed fix is 459e425d, and all three halves had to move This lane's commit 33cb2d0b recorded the defect localised and the fix not landed. It has since been landed by lane-av1422luma (459e425d) on top of this lane's write-side hunk, so the report is amended rather than left to claim a stale "not landed" verdict. No decoder change is added here. New §3.3: all six cells of the family byte-exact vs ffmpeg 8.1.3, 16 shown frames -- s422_320x246 0/7810/5531 -> 0/0/0, s422_322x240 0/22003/21625 -> 0/0/0, s422_322x246 0/3437/2222 -> 0/0/0, s422_352x242_10b 0/4653/3777 -> 0/0/0, s422_416x242_10b 0/5740/4348 -> 0/0/0, s422_416x250_10b 99011/61486/60106 -> 0/0/0. 25 of 26 swept cells byte-exact; s422_384x240 unchanged at 0/1780/1871 on its own residual (luma-exact on both sides of the change, first bad frame 1) and must not be attributed to this arm. 4:2:0 and 4:4:4 controls unchanged. The landed shape is recorded in full because the lesson is the SHAPE, not the one line: one predicate own422 = ss_x==1 && ss_y==0 && horz drives FIVE edits -- the chroma plane block (bw>>ss_x, bh>>ss_y), pair_mi -> lmi, the chroma origin (px>>ss_x, py>>ss_y), BOTH chroma context gathers (around_mi_422_chroma at ss (1,0), around_mi_rect kept at 4:4:4 where a chroma column IS a luma mi column), and -- the half this lane never named -- the mi-map publication record_uv_mode_mi plus the two left/above skip loops at (lmi, bw, bh). has_chroma is NOT the missing piece; this lane's §4 candidate 1 is disproved (the caller's predicate already holds for every HORZ strip, 56 in frame 0). Why every half was needed: the gather's LEFT flag was read one mi row high (ours ctx 2, oracle ctx 8), all_zero decoded 1 instead of 0, the frame desynced -- one constant read from three places. That is why the write-side-only attempt regressed luma 0 -> 5958.
lane-av1422luma report: the luma-wrong 4:2:2 cell is a chroma-ORIGIN desync in the IntraBC 1:4 arm -- ladders, per-frame before/after, controlsAhmet Kaan Gümüş · 7105e65Browse files
lane-av1422luma: 4:2:2 IntraBC 1:4 strips code their OWN chroma -- six sweep cells byte-exact, luma desync goneAhmet Kaan Gümüş · 3ce52f6
lane-av1422luma: 4:2:2 IntraBC 1:4 strips code their OWN chroma -- six sweep cells byte-exact, luma desync gone
An intra-BC 16x4 (HORZ 1:4) strip's chroma plane block is its own at
4:2:2, not 4:2:0's pair: 4:2:2 subsamples x only, so the strip's chroma
is 8x4 (full height) at the strip's own origin, and libaom's own
is_chroma_reference (av1_common_int.h:1454) ends in "|| !subsampling_y",
which answers true for every block at ss_y 0. decode_rect4_16_intrabc
gated that whole pair geometry on ss (0,0) and left 4:2:2 on the 4:2:0
constants, so the chroma unit was read one mi row high. On
s422_416x250_10b (416x250 10-bit, sha256 d6aa7f45) that is the U/V
txb_skip read at mi (51,84): ctx 2 where the oracle reads 8, all_zero
decoded 1 instead of 0, and the frame desyncs from there -- which is why
this is the one 4:2:2 cell whose LUMA is wrong too.
Four sites move together, all gated on the new own422 = ss (1,0) && horz:
- cw,ch = (bw >> ss_x, bh >> ss_y) (was (pw/2, ph/2))
- pair_mi = lmi (was (lmi.0-1, lmi.1))
- cpx,cpy = (px >> ss_x, py >> ss_y) (was (pair_mi.1*MI/2, ...))
- the chroma coefficient-context gather and the uv-mode / left / above
publication read over the strip's OWN extent, and at ss (1,0) through
around_mi_422_chroma (one chroma 4-px column spans two luma mi
columns, so the per-mi gather double-counts each column's whole-unit
dc sign and ORs in cells the unit does not cover)
The first three are lane/av1422seed's hunk, unlanded at the time of
writing and reproduced here so the arm is measurable whole; the gather and
the publication are this lane's. VERT_4 stays on the pair:
ss_size_lookup[BLOCK_4X16][1][0] is BLOCK_INVALID at 4:2:2, so only HORZ
reaches it. 4:4:4 keeps the per-mi gather (at ss_x 0 a chroma column IS a
luma mi column, so sampling would halve its own above span) and 4:2:0 is
untouched by construction.
Measured (ffmpeg 8.1.3 oracle, 16 shown frames, per-plane wrong samples;
pre = main 1bc6f543 with a patch-run-restore 4:2:2 probe bypass, post =
this tree, same bypass, same comparator):
s422_320x246 0/7810/5531 -> 0/0/0 BYTE-EXACT
s422_322x240 0/22003/21625 -> 0/0/0 BYTE-EXACT
s422_322x246 0/3437/2222 -> 0/0/0 BYTE-EXACT
s422_352x242_10b 0/4653/3777 -> 0/0/0 BYTE-EXACT
s422_416x242_10b 0/5740/4348 -> 0/0/0 BYTE-EXACT
s422_416x250_10b 99011/61486/60106 -> 0/0/0 BYTE-EXACT (this lane's cell)
25 of the 26 swept cells are byte-exact after the change; s422_384x240 is
unchanged at 0/1780/1871 and is a different residual. 4:2:0 10-bit
(s420_416x250_10b, s420_416x242_10b, s420_352x242_10b, s420_320x242_10b,
s420_320x250_10b) and 4:4:4 10-bit (s444_416x250_10b, s444_352x242_10b,
s444_320x250_10b) are byte-exact before and after. In DECODE order (17
frames, hidden alt-refs included) s422_416x250_10b is 17/17 byte-exact
against the instrumented aomdec, and so are s422_416x242_10b and
s422_320x246.
Gate: a_444_intrbac_rect4_reads_its_own_chroma_plane_block passes with
the 4:4:4 numbers unchanged (23 own-chroma strips, first wrong sample
index 20532, entropy fork read 12465 at mi (90,108)) and the 4:2:0 twin
byte-exact; the 26 intrabc-named tests pass. 4:2:2 is refused at the
sequence header, so no committed test can assert the new route: a
INTRABC_RECT4_OWN_CHROMA422_HITS counter records reach (56 HORZ 1:4
strips in frame 0 of the reproducer alone) and lanes/av1422luma.report.md
carries the measurement. The 4:2:2 refusal is untouched in this tree.Merge lane-av1422late: s422_384x240 stops at the RESERVED arm -- refusal to fix, owner namedAhmet Kaan Gümüş · 09027b4
Merge lane-av1422late: s422_384x240 stops at the RESERVED arm -- refusal to fix, owner named Refusal-to-fix with the owner identified, and the reserved-class rule honoured: the failure mode is the project-reserved 4:2:0 group-tail chroma SKIP arm, so the lane stopped rather than editing it from neighbouring chroma work. The cell's chroma is written by exactly one site -- `decode.rs:43948`, `decode_inter_block`'s single-reference arm, `push_mc_rect(1, cpx, cpy, chroma_stride, write_chroma_w, write_chroma_h, su, ZERO_RESIDUAL)` -- over a luma 64x64 at (0,128) whose per-axis 4:2:2 chroma plane block is (0,128,32,64). `EC_MCPUSH` names it as the only writer of every chroma sample in the bad box, and `EC_AV1_PIXPROBE` at U(25,175) shows `mc_add block=(0,128)+32 prev=90 val=90`. The signature is the reserved one: our committed chroma over the whole 32x64 plane block is byte-identical to the reference plane (0 of 2048, both planes) while the oracle's block is a vertical profile 87,98,120,131,...,120,98,87 and ours is a flat 90 -- a DC where the oracle predicts, which is what that arm is known to do. Everything else is ruled out with measurements rather than argument: **not entropy** (the pre-filter stage dump already carries the whole divergence -- 0/180/180 at decode frame 1 -- and luma is byte-exact in all 17 frames); **not deblock/CDEF/LR** (pre-filter carries 180 of the final 202, the filters only spread it); **not OBMC** (`EC_KILL_OBMC=1` makes the cell strictly WORSE, frame 13 going 0/290/303 -> 225/573/577, so OBMC is load-bearing here); **not compound/warp/scaled-ref** (no parse-time trace for this block; its chroma MC has xfrac=yfrac=0, Regular). Also worth keeping: `EC_AV1_DEBUG_SKIP_*` disable the filter on OUR side only, so they red every plane and cannot attribute a stage -- the pre/post/post-CDEF dumps were used instead. Two measurement facts the campaign inherits. First, the **decode->display map is measured, not assumed**: 0->0, 1->HIDDEN, 2->7, 3->3, 4->1, 5->2, 6->5, 7->4, 8->6, 9->11, 10->9, 11->8, 12->10, 13->13, 14->12, 15->14, 16->15 -- read off a 17x16 total-diff matrix and cross-checked by aomdec's own decode-order dump being 0/0/0 on every shown frame, with index-to-index alignment producing a false whole-sheet red (frame 1 read as 18096 wrong purely from misalignment). Second, the liveness control is a one-sample flip on a currently-MATCHING sample in decode 8 / display 6 plane U: U 1780 -> 1781, V unchanged 1871, Y unchanged 0, every other frame unchanged. Family sweep on the aomdec decode-order comparator: `s422_384x242` and `s422_384x246` and `s422_320x240` exact, the frame-0 cells still diverging, this one first at decode frame 1.
lane-av1422late: s422_384x240 localised to the frame-1 altref inter chroma SKIP write, refusal-to-fixAhmet Kaan Gümüş · c48f343
lane-av1422late: s422_384x240 localised to the frame-1 altref inter chroma SKIP write, refusal-to-fix The one 4:2:2 cell that fails from decode frame 1 rather than frame 0. ffmpeg is the pixel oracle; the cell's 17 decode frames against ffmpeg's 16 display frames need the decode->display map measured from the full diff matrix (decode frame 1 is the hidden altref). Flip control: one flipped oracle sample moves U by exactly +1 (1780 -> 1781) with V and every other frame unchanged. First divergence: decode frame 1, chroma only, U/V rows 169..190 cols 23..35; pre-filter rows 170..189 cols 23..31, 180 samples per plane. Pre-filter already carries it (0/180/180), so this is reconstruction, not an entropy desync and not deblock/CDEF/LR. EC_MCPUSH names the single writer: decode.rs:43948, the inter block's chroma SKIP push_mc_rect for the 64x64 luma block at (0,128), whose chroma plane block is the per-axis 4:2:2 (0,128,32,64). Our chroma there is byte-identical to the reference (0 differing over 32x64) and frame 0's U is uniformly 90 across the whole neighbourhood, so the oracle's block is not a copy and our side wrote a flat DC -- the standing-reserved group-tail chroma SKIP signature. Refusal-to-fix, owner named; OBMC ruled out by measurement (killing it makes the cell worse). Family sweep reproduces the census's counts exactly and shows 384x242/384x246 byte-exact, so the defect is reachable only at 384x240. No source diff: the 4:2:2 sequence-header refusal and the probe bypass revert are both in place.
Merge lane-av1422seed: the 4:2:2 seed is LOCALISED (the intrabc 1:4 strip writes its chroma at a 4:2:0 pair origin) -- report only, no decoder changeAhmet Kaan Gümüş · 4ef5ae8
Merge lane-av1422seed: the 4:2:2 seed is LOCALISED (the intrabc 1:4 strip writes its chroma at a 4:2:0 pair origin) -- report only, no decoder change Localised and proved, not closed: the write-side fix is correct in shape but regresses luma (5958 wrong luma samples in frame 0), so nothing is landed and the refusal stands. Arm: `decode.rs:18162 decode_rect4_16_intrabc`, the intrabc 16x4/4x16 1:4 strip, which applies the 4:2:0 1:4 PAIR rule (`is_chroma_reference`) at every ss except its 4:4:4 `own444` arm -- 4:2:2 is the SECOND ss where that rule does not hold and was never given an arm. At ss (1,0) `is_chroma_reference` is true for EVERY block (`|| (subsampling_x == 1 && subsampling_y == 0) || ..`), so there is no pair: every strip codes its own chroma at its own origin with its own context extent. Three constants named with their required values: `pair_mi` `(lmi.0-1, lmi.1)` = (31,72) must be `lmi` = (32,72); `cpx,cpy` `(pair_mi.1*MI/2, pair_mi.0*MI/2)` = (144,62) must be `(px>>ss_x, py>>ss_y)` = (144,128) -- that is the wrong write; and the two `around_mi_rect(pair_mi, ..)` sites (:18574, :18635) must become the strip's own `(lmi, bw, bh)` through `around_mi_422_chroma`. `cw,ch` at :18244 are accidentally already right. Not claimed: VERT_4 4x16 strips, since `ss_size_lookup[BLOCK_4X16][1][0]` is BLOCK_INVALID at ss (1,0). The instrument is the interesting part and it is a method, not a one-off: **`EC_AV1_PLANE_SENTINEL=1` fills the uninitialised plane with 0xDEAD**, and a scan at the pre-deblock point is then an EXACT census of UNWRITTEN samples -- a diff mask cannot tell "wrong" from "never written". On `s422_320x246` frame 0 it reports luma clean and **U and V each 4 runs at rows 128..131, cols 144..151**, i.e. a block that was never written, while the only chroma writes in the frame are `reconstruct_mc_rect plane=1/2 x=144 y=62 w=8 h=4` -- **66 rows too high**. So the census's first divergence U(62,144) and this unwritten region are the same defect seen from both ends. All five cells are the same defect, not a depth property: every one first diverges in decode frame 0 plane U at row 62, with counts differing only because the 10-bit cells are wider (`0/7810/5531`, `0/22003/21625`, `0/3437/2222`, `0/4653/3777`, `0/5740/4348`). The attempted write-side fix moved the write but left the GATHER at the pair origin, which is why luma went 0 -> 5958: the next round must move both, and re-run the sentinel census (it now reports the correct target written and the wrong one empty).
Merge lane-av1422ffmpegbase: the 4:2:2 lift's measurement base (ffmpeg oracle) and its checklistAhmet Kaan Gümüş · 63a97a8
Merge lane-av1422ffmpegbase: the 4:2:2 lift's measurement base (ffmpeg oracle) and its checklist The base the lift will be judged on, measured with the oracle the user settled this turn. 95 cells from census422b, every sha256 verified against cells_full.json (0 drift), geometry from ffprobe with a hard error on any disagreement and on a frame count of zero: **88 exact, 7 diverging, 0 comparator errors** -- 4:2:2 **44/51 exact / 7 diverging**, 4:2:0 **22/22**, 4:4:4 **22/22**. The seven and their ffmpeg numbers are tabulated with the first bad sample per cell; six are chroma-only and one, `s422_416x250_10b`, is luma-wrong (99011/61486/60106, first bad Y (r128,c384)). **The two oracles agree, and the apparent disagreement is ancestry, not method**: against the aomdec census the verdicts match on 94 of 95 cells, including the same seven 4:2:2 cells; the single exception is `s444_352x242_10b`, which the aomdec comparator also calls BYTE-EXACT when re-run on main. Every count difference on the seven is EXACTLY the hidden alt-ref frame -- 17 decode frames, 16 shown -- and subtracting that frame's own per-plane counts reproduces the ffmpeg display-order totals to the sample on 7 cells x 3 planes. Corollary worth keeping: display order is a PERMUTATION of the shown decode frames (s422_320x246's display is f0,f4,f5,f3,f7,f6,f8,f2,... with f1 hidden), so an index-by-index decode/display pairing is wrong even when the frames are the same set. Instrument trap found the expensive way: **ffmpeg 8.1.3's y4m MUXER cannot carry a 10-bit cell** (`Conversion failed!`, -22) while the rawvideo path decodes the same stream fine, so the first full run recorded 18/18 10-bit cells as ORACLE-REFUSED -- a false red manufactured by the muxer's format list. Geometry now comes from ffprobe. The checklist pins the lift: the guard at `stream.rs:1803-1808` (`subsampling_x != subsampling_y`), whose residual after the lift is (0,1) 4:4:0 -- which the parser cannot produce at all (`ec-av1-syntax/src/sequence.rs:481` reads `subsampling_y` only when `subsampling_x == 1`), so per this repo's rule it closes with an ASSERTION rather than a comment; `refusal_inventory.rs:150` and `:529-533` must go in the SAME commit as the guard, since `the_decode_path_refuses_exactly_the_listed_cases` (:854) asserts listed-found AND found-listed are both empty; and the refusal-asserting tests to invert are enumerated by file:line.
Merge lane-av1422444b r2: the census annotations are folded in, additivelyAhmet Kaan Gümüş · 404616f
Merge lane-av1422444b r2: the census annotations are folded in, additively Four sites in `lanes/av1422census2.report.md` gain a bracketed correction naming the tree (`ed7c99bc` is 36 commits behind main), the fix (`f3afa5b7`, an ancestor of main) and the numbers (0/0/0 vs ffmpeg on the 16 shown frames and vs aomdec on all 17 decode-order frames): §3.2's still-diverging row for `s444_352x242_10b`, §3.4's "21 of 22 with the single exception", §7.1's class-D row (class D is EMPTY) and §7.2's "a lift would not fix class D" (the constraint is gone; the two 4:2:2 bullets beside it are explicitly untouched). The diff is the discipline: **+56 lines, 0 deletions** on the census report, and all four originals verified byte-identical between main and the lane's tip before and after (grep count 1 -> 1). The lane also caught its own first attempt at §7.1 landing BETWEEN rows D and E and cutting the failure-class table in half, moved it below the table, and flagged the spot for review -- which is why the merge was checked positionally as well as additively. Its own report picks up the three comparator bugs with a tell for each: a missing per-plane base on the OURS buffer (reported 1362686/1362769 wrong chroma samples on an EXACT cell; tell = implausible magnitude and a (0,0) first divergence on a non-luma plane), geometry parsed from the cell's FILE NAME (`s444_320x240` read as 320x320; tell = a frame count disagreeing with `-count_frames`), and a hardcoded bps (8-bit frame sizes doubled; tell = the not-a-multiple error firing only on 8-bit cells). The general lesson is recorded with them: all three report a NUMBER rather than refusing to, which is exactly why the controls precede the verdict and why a comparator should hard-error on a geometry it cannot account for.
lane-av1422seed: the frame-0 4:2:2 seed is decode_rect4_16_intrabc's 4:2:0 pair geometry at ss (1,0) -- LOCALISED, fix not landedAhmet Kaan Gümüş · 74d4dbb
lane-av1422seed: the frame-0 4:2:2 seed is decode_rect4_16_intrabc's 4:2:0 pair geometry at ss (1,0) -- LOCALISED, fix not landed ATTRIBUTION. A wrong-sample diff cannot say whether a block was written at all. The crate's own EC_AV1_PLANE_SENTINEL fill (0xDEAD into the uninitialised plane) can: on s422_320x246 decode frame 0 it reports luma 0 unwritten runs and, for U and V alike, exactly four -- rows 128..131, cols 144..151. The only three MC writes in that frame are plane=0 x=288 y=128 w=16 h=4 (the strip's luma, exact) and plane=1/plane=2 x=144 y=62 w=8 h=4 (its chroma, 66 rows too high). The strip's own 8x4 chroma at (144,128) is never written. Owner: decode.rs:18162 decode_rect4_16_intrabc, whose 4:2:0 1:4 PAIR rule (is_chroma_reference, av1_common_int.h:1454) is applied at every ss except the 4:4:4 own444 arm. 4:2:2 is the SECOND ss where the rule does not hold -- is_chroma_reference ends in `|| (subsampling_x == 1 && subsampling_y == 0)` -- and it was never given an arm. Three constants carry it: cw/ch (accidentally already right at 8x4), pair_mi (lmi, not lmi.0-1), and cpx/cpy ((px>>ss_x, py>>ss_y) = (144,128), not (pair_mi.1*MI/2, pair_mi.0*MI/2) = (144,62)). The two chroma coefficient gathers at 18574/18635 must move with them. MEASURED, and NOT LANDED. The write-side half regresses luma: 0 -> 5958 wrong luma samples in frame 0 of s422_320x246, and all five slice cells then fail luma identity. Control: git stash push the one file, rebuild, re-run -> main's numbers reproduce to the sample (0/7810/5531, 0/22003/21625, ...), and two runs of one binary are sha-identical, so it is the change, not a flake. Moving the gather as well does not restore luma, so the remaining half is not the gather's extent alone -- most likely has_chroma itself (at ss (1,0) EVERY strip codes chroma, so an even-row HORZ strip passed has_chroma=false must become true). Write the 4:2:2 arm whole: origin, extent, has_chroma, entropy set and context gather together. lane-av1422luma (Agent07-4) independently localised a LUMA desync in this same function; ownership split by message, this lane's write-side hunk is not landed and no decoder change is in this commit. INSTRUMENT (committed). scripts/cmp422-ffmpeg.py + run422-ffmpeg.py: ffmpeg 8.1.3 is the pixel oracle, geometry from the SEQUENCE HEADER via ffprobe, per- frame plane attribution, bps-wide wrong samples, a zero-frame count is a hard error, and the decode->display mapping is DERIVED: ffmpeg emits 16 shown frames against our 17 decode-order dumps and a real altref REORDERS display against decode (measured: decode f2..f8 -> display 7,3,1,2,5,4,6), so frame identity is carried by the luma plane under an enumerated assignment that must agree on the counts. Five controls (4:2:0 x3 incl. 10-bit, 4:4:4 x2) read BYTE-EXACT 0/0/0 before and after. All five slice cells reproduced: chroma only, luma exact, first divergence decode frame 0 U row 62, region 16 chroma columns from the right edge in all five -- one defect at five geometries, not a depth property. NOT MEASURED, stated: the sample-flip control was NOT run (the controls above are byte-exact cells, not flip arms); no permanent gate was added, because with the fix unlanded it could only assert a failure. s422_384x240 (first bad frame 1) is a different seed. The 4:2:2 sequence-header refusal is untouched: stream.rs:1803 reads `if seq.subsampling_x != seq.subsampling_y`.
lane-av1422444b: the census annotations are folded in (additive, nothing rewritten), and my own comparator's three bugs are written down with their fixesAhmet Kaan Gümüş · 4fe36ff
lane-av1422444b: the census annotations are folded in (additive, nothing rewritten), and my own comparator's three bugs are written down with their fixes
Report-only. No source change; nothing pushed; committed on lane/av1422444b in this lane's
own worktree with absolute paths, rebased onto 36c6f731 first so the census edit applies to
the merged copy.
CENSUS ANNOTATIONS (4 sites, additive). Every original sentence and table row is left
standing, so the record still shows what was believed on which tree; each correction is a
bracketed [CORRECTED 2026-09-30 by lane-av1422444b: ...] note naming the tree (ed7c99bc was
36 commits behind main), the fix (f3afa5b7, an ancestor of main) and the numbers (0/0/0 vs
ffmpeg on 16 shown frames, 0/0/0 vs instrumented aomdec on all 17 decode-order frames):
1. section 3.2's still-diverging table, after the s444_352x242_10b row -- superseded;
2. section 3.4's "4:4:4 controls: 21 of 22, single exception" -- true only of the census's
own two trees; at main 22/22, and the control it carried now holds twice over;
3. section 7.1's class D row -- class D is EMPTY; placed AFTER the table so the table is
not split (my first attempt cut it in half and was corrected);
4. section 7.2's "A lift would not fix class D" -- the constraint is GONE, so no 4:4:4
exception bounds a lift. The two 4:2:2 bullets there are explicitly untouched.
COMPARATOR BUGS, now section 3.2 of my own report, each with its fix and its tell:
1. missing plane offset on the OURS buffer (oracle indexed per frame, ours read at
per-plane-zero) -- reported 1362686/1362769 wrong chroma samples on an EXACT cell;
fix is one `base` per plane added to BOTH sides' indices. Tell: implausible magnitude
and a first divergence at (0,0) of a non-luma plane.
2. geometry parsed from the cell's FILE NAME -- s444_320x240 read as 320x320, and the
4:2:0 cells reported as "ours=16 ref=8", which reads like a decoder dropping frames;
fix is ffprobe width/height/pix_fmt on the cell itself, chroma extents as
ceil(w/2**ss_x) x ceil(h/2**ss_y). Tell: a frame count that disagrees with
-count_frames.
3. bps hardcoded to 2 -- every 8-bit cell's frame size doubled, so the oracle length
stopped being a multiple of it, an error that reads like a truncated oracle; fix is
bps derived from the cell's own pix_fmt. Tell: the not-a-multiple hard error firing
only on the 8-bit cells.
The general lesson recorded with them: all three report a NUMBER rather than refusing to,
which is why the liveness controls are ordered before the verdicts and why a comparator
should hard-error on a geometry it cannot account for.lane-av1422ffmpegbase: the 4:2:2 measurement BASE, re-taken against the ffmpeg oracle, plus the lift checklistAhmet Kaan Gümüş · dbcc953
lane-av1422ffmpegbase: the 4:2:2 measurement BASE, re-taken against the ffmpeg oracle, plus the lift checklist
Measurement only -- no decoder file is touched and the 4:2:2 sequence-header
refusal still stands at stream.rs:1803 on affe70dc.
Census of all 95 census422b cells against ffmpeg 8.1.3, per plane per frame,
display order / shown frames on both sides (dump_yuv vs ffmpeg -f rawvideo),
geometry taken from the oracle's own ffprobe statement:
4:2:2 44 byte-exact / 7 diverging of 51
4:2:0 22/22 byte-exact
4:4:4 22/22 byte-exact
whole set 88 exact, 7 diverging, 0 refuses, 0 comparator errors
That is the aomdec census's own 44/7 (lanes/av1422census2.report.md 3.2), same
seven cells. The two oracles agree on the EXACT per-plane counts on all seven:
removing the hidden alt-ref frame's own counts from the aomdec decode-order
total reproduces the ffmpeg display-order total to the sample, 7 cells x 3
planes. A divergence count published without its frame basis is ambiguous by
one frame's worth of samples.
One disagreement in the whole set: s444_352x242_10b (4:4:4), where the aomdec
row says DIVERGES 0/1166/1413 and ffmpeg says 0/0/0. Not an oracle
disagreement -- on affe70dc against aomdec itself the cell is BYTE-EXACT 17/17,
because lane-av1444d10 (f3afa5b7/eb73ef89, both ancestors of main) fixed it and
the census's post tree ed7c99bc is 36 commits behind.
Measured instrument trap worth the paragraph: ffmpeg's y4m MUXER cannot carry
any 10-bit cell in 8.1.3 ("Conversion failed!", -22) while the rawvideo path
decodes the same stream fine, so the first full run recorded 18 of 18 ten-bit
cells as ORACLE-REFUSED -- a false red made by the muxer's format list. The
comparator now takes geometry from ffprobe.
Comparator liveness re-proven before any verdict is read: 23 arms, 23 PASS, 0
FAIL. One flipped oracle sample per arm, exactly +1 wrong sample in that plane,
every other plane and frame unmoved; seven of the arms have a non-zero baseline
(they move a plane already wrong by thousands by exactly one more). The exact
cells are in the table deliberately -- they are the false-green case.
The lift checklist names the guard site, the two refusal_inventory rows to
retire, the seven tests that assert the refusal and must be inverted, the pin
convention (crates/ec-av1/fixtures + read_pin's size/fnv1a64, missing pin = FAIL,
have_ffmpeg probed-then-asserted), and what a 51/51 gate has to carry -- 42 of
the 51 cells are not committed yet, so gating is a capture task first.
Reproduce: lanes/av1422ffmpegbase.report.md 5.Merge lane-av1422444b: the 4:4:4 census cell was already exact -- class D is empty and the 4:2:2 lift no longer has a 4:4:4 constraintAhmet Kaan Gümüş · 18aa211
Merge lane-av1422444b: the 4:4:4 census cell was already exact -- class D is empty and the 4:2:2 lift no longer has a 4:4:4 constraint `s444_352x242_10b` needs no fix: it is byte-exact at main, and the reason is ancestry, not luck. `f3afa5b7` (the chroma-palette unit window) is an ancestor of main and postdates the census tree `ed7c99bc`, so the census table was describing a tree 36 commits behind. Cause named and confirmed as 4:4:4-SPECIFIC: `decode_block_rect64`'s chroma palette walk caps units at 32, so at ss=00 a 64-axis luma strip's chroma is TILED, and both tiled arms handed each unit the WHOLE block's palette buffer -- `PlaneBuf::reconstruct` reads the first `side*side` entries, so unit (0,1) rebuilt the block's row-0 palette where libaom writes row 32's. That is a different arm at a different depth from the 4:2:2 family's `b8eed69f` (sub8_leaf_chroma422's skipped-INTRABC DV copy), and 4:2:0 is structurally immune (nw*nh == 1 on every 4:2:0 block). The sensitive axis is the CHROMA UNIT COUNT, not the frame size -- which is why the sibling geometries at the same depth were already fine. Measured two ways at main: 0/0/0 vs ffmpeg 8.1.3 (`yuv444p10le`, 16 shown frames) AND 0/0/0 vs the instrumented aomdec on all 17 decode-order frames including the hidden altref, so the hidden frame is not a blind spot; ffmpeg's and aomdec's rawvideo agree byte-for-byte over all 8177664 B. The cell is already pinned by a pre-existing gate (`stream.rs:51024`), which was re-proven to bite on THIS tree by reverting the windowing in both tiled arms: red at decode frame 0 byte 328192 (ours 209 vs 216, 104 bytes differ), ffmpeg comparator 0/1112/1362, first divergence U row 224 col 64. No new gate: a second pin on the same bytes would be a duplicate. Family sweep with no skips: 18/18 fresh 4:4:4, 18/18 fresh 4:2:0, 36/36 committed 4:4:4 fixtures, 69/69 committed 4:2:0 fixtures. Report-only: no source change, tree byte-identical to main. Three corrections are owed to `lanes/av1422census2.report.md` (its §3.2 row, its §3.4 "21 of 22 with the single exception", and its §7 "a lift would not fix class D" -- class D is empty), and they land separately as annotations rather than as a rewrite of another lane's report. The lane also found and fixed three bugs in its OWN comparator (a missing plane offset that reported 1.36M wrong chroma samples on an exact cell, geometry parsed from the file name instead of the header, and a hardcoded bps) -- worth recording, because each of those would have produced a confident, wrong table.
lane-av1422444b: s444_352x242_10b is ALREADY byte-exact at main -- the census row is superseded by f3afa5b7, and here is the measurementAhmet Kaan Gümüş · 990a9b4
lane-av1422444b: s444_352x242_10b is ALREADY byte-exact at main -- the census row is superseded by f3afa5b7, and here is the measurement REPORT ONLY, no source change. The tree is byte-identical to main (affe70dc); git diff is clean after the mutation of section 4 was reverted. The 4:2:2 sequence-header refusal is untouched and EC_AV1_ALLOW_422_PROBE was never needed -- 4:4:4 is a supported format, so this cell decodes on the shipped tree with no bypass. OUTCOME: the cell is byte-exact against ffmpeg 8.1.3 on all 16 shown frames (0/0/0, no first divergence, empty wrong-sample bbox) AND against instrumented aomdec on all 17 decode-order frames including the hidden altref (0/0/0). The census's 0/1166/1413 was a true reading of ed7c99bc, a tree that predates f3afa5b7, which this lane confirms is an ancestor of main. The committed fixture is byte-identical to the census cell (sha256 84df2f37...), so the two measurements are of the same bitstream. CAUSE, and it is 4:4:4-SPECIFIC, not shared with the 4:2:2 family: decode_block_rect64 (decode.rs:20051) caps chroma units at 32, so at ss=00 a 64-axis luma strip's chroma is TILED, and both tiled arms handed each unit the WHOLE block's palette prediction buffer while PlaneBuf::reconstruct reads its first side*side entries. Unit (0,1) reconstructed the block's row-0 palette where libaom writes row 32's. f3afa5b7 routes both arms through palette_window (decode.rs:3009). The 4:2:2 family's b8eed69f is a different arm at a different depth (sub8_leaf_chroma422's skipped-INTRABC DV copy), and 4:2:0 is structurally immune here because nw*nh == 1 on every 4:2:0 block. The sensitive axis is CHROMA UNIT COUNT, not frame width or height -- which is why the sibling geometries at the same depth were already exact. GATE: pre-existing and pinning this exact cell, so no duplicate was added -- a_444_lossy_palette_chroma_unit_window_is_byte_exact_at_352x242_10bit (stream.rs:51024). Green at main (17 decode frames, 1 hidden, 4 windowed units). RED PROVEN BY MUTATION on this tree: with palette_window reverted in both tiled arms the gate fails at decode frame 0 byte 328192 (ours 209 vs 216), and the ffmpeg comparator measures 0/1112/1362 with the first divergence at frame 0 plane U row 224 col 64 -- a 32x32 unit plus the 19 columns a neighbouring PAETH block propagates, with luma 0 in every frame, so it is a per-frame chroma RECONSTRUCTION error and not an entropy-read desync. Restored to green. COMPARATOR LIVENESS, proven before any exact verdict was read: one-sample flip on the byte-exact cell moves each plane by exactly +1 and leaves the other two at 0, all three arms; ffmpeg and aomdec rawvideo are byte-identical over all 8177664 B; and the mutated tree reds on the same comparator. Two of my own instrument bugs were caught by these controls rather than by reading a verdict and are recorded in the report: an ours-buffer plane offset that reported 1.36M wrong samples on an exact cell, and a file-name-parsed geometry that miscounted the 4:2:0 cells. FAMILY SWEEP at main, no skips: 18/18 fresh 4:4:4 sweep cells, 18/18 fresh 4:2:0 sweep cells, 36/36 committed 4:4:4 fixtures, 69/69 committed 4:2:0 fixtures, all 0/0/0. The sibling gate for the horizontal arm of the same walk (a_444_palette_chroma_horizontal_unit_window_is_byte_exact_10bit_and_12bit) is also ok. Section 6 lists the three census edits this supersedes, left to that report's owner.
lane-cpu2formatprobe: the --cpu-used 2 luma divergence is FORMAT-SPECIFIC -- 16/16 supported cells byte-exact, the 4:2:2 cells refuse by nameAhmet Kaan Gümüş · 63036d2
lane-cpu2formatprobe: the --cpu-used 2 luma divergence is FORMAT-SPECIFIC -- 16/16 supported cells byte-exact, the 4:2:2 cells refuse by name The 4:2:2 census's finding that `rc2_s422_320x242` diverges on 890107 samples INCLUDING 436945 LUMA raised the question that mattered more than the 4:2:2 lift decision: does the same encoder setting break a SUPPORTED cell? Answer, measured: no. Sixteen cells (4:2:0 and 4:4:4 x 320x242 and 256x128 x 8-bit and 10-bit x --cpu-used 2 and --cpu-used 6) all decode byte-exact against aomdec -- 0 differing samples on EVERY plane of every decode frame, 17 frames each -- while four 4:2:2 cells from the same recipe refuse by name. So the cpu-used 2 divergence is specific to the refused format and is not a live defect in any supported cell. Comparator discipline, because this is exactly the class of claim two refutations already caught this wave: the census's own cmp422.py is IMPORTED rather than reimplemented; both sides dump decode-order frames through the depth-correct EC_AV1_FINAL_DUMP (never the u8-narrowing dump); geometry comes from the y4m header, never a file size, and a frame whose length disagrees with the geometry is a hard error; plane attribution is per frame from that frame's own plane lengths; and a wrong sample is one bps-wide unit so 10-bit samples cannot hide behind a byte compare. Two controls ran BEFORE any verdict: 54 per-cell per-plane oracle-sample flips, all 54 biting (and 8 cross-stream same-geometry pairs, all 8 diverging, which rules out comparing our stream with itself). Report-only: no decoder source edited, no fix proposed. The report also records an instrument trap worth keeping: importing the census's comparator while leaving its WORK root stale silently pointed the driver at a previous run's dumps, which is how a first pass of the cross-stream control "passed" on random pairs; the re-run fixed it by pairing at equal geometry.
av1txctxband2: correct the band-overwrite counter's doc to what the predicate actually measuresAhmet Kaan Gümüş · 0b7aabe
av1txctxband2: correct the band-overwrite counter's doc to what the predicate actually measures
A refutation pass (lane av1txctxband2, reviewer) reproduced every load-bearing claim of the band fix --
the libaom either/or, the RECT twin, the named missing write at mi=(78,110), per-plane per-frame exatness
on both 640x480 cells under a proven-live comparator, the 457907-read ladder with a comparator shown to
bite, and the mutation (removing only the set_txfm_ctxs call reds the gate and returns the cell to the
reported Golomb refusal) -- and falsified ONE documentation claim, which is corrected here.
The counter's predicate is `!intra_only && any covered above-band cell != pub_above`, which counts a
FIRST WRITE into a tile column still at TXFM_CTX_INIT as well as a genuine replacement of an earlier
block's size. Measured on committed fixtures: 420_lossless_tallinter_8x16.obu fires 48 with every covered
column still at init (the old doc predicted 0 on exactly such a stream), 420_lossless_arf_1to4_320x240_5f.obu
fires 320 with 53 first touches, and 183 of the pin's 944 are first touches. The count remains a decision
that a reader can act on, so the gate keeps its teeth and no behaviour changes; only the doc's narrower
causal reading ("overwrote a size some earlier block left") was wrong and is now replaced with the measured
one plus the refutation's numbers.lane-av1mixllres report: the residue arms and the >8-bit arm are MEASURED, and the class is not bit-depth-dependentAhmet Kaan Gümüş · ec0357f
lane-av1mixllres report: the residue arms and the >8-bit arm are MEASURED, and the class is not bit-depth-dependent The one missing publish is already in main (f2dd27b0) and the residue fixtures and gate with it (f8a66917 / 167548c6); this lane lands no code. What it adds is the measurement nobody had, on 167548c6 with no local change: - 6-frame 256x128 and both 320x240 arms: 7/7, 7/7, 6/6 decode-order byte-exact. Base 46a7e67b counts (mine, per plane per frame): red f1..f6 by 6051/4115/2962/26566/41876/14749, f1..f5 by 15031/16259/21932/65405/90077, and f6 by 19398. - The 10-bit 4:2:0 arm, built by hand for the first time (scripts/raw_to_y4m.py, header line plus FRAME\n before every frame). At base it REFUSED after 4 dumps with f1/f2/f4 red by 12766/5382/24764; on main 7/7 byte-exact. The 12-bit arm likewise: 7 dumps with 5 red at base, 7/7 exact on main. - So the class is NOT bit-depth-dependent: one missing TXFM_CONTEXT publish desyncs 8-, 10- and 12-bit cells of the same recipe, and one line closes all three. Band bookkeeping carries no depth term. - Comparator non-vacuity at 10-bit: a 1-LSB oracle flip on one sample of frame 4 reports exactly 1 differing byte at sample 1000, so the clean zero is measured, not vacuous. Both sides are the depth-correct EC_AV1_FINAL_DUMP; the u8-narrowing rung is not used. - Cause localised independently from base: first divergent read 64674 at mi=(40,52), a txfm_partition ctx read with above=16 where libaom reads 4 -- the band replay puts the last write to mi column 52 at a skipped 16-px inter block at mi=(16,52), and the per-site ctx lock (reverted) makes the whole cell exact. On main the operand pair av1mixllconj specified reads ctx=1 on its own. Scoped: cargo test -p ec-av1 --lib -- a_420_mixed_lossless = 3 passed / 0 failed; -- lossless mixll txctx vartx = 38 passed / 0 failed.
Merge lane-av1txctxband2 r2: the mixed-lossless RESIDUE arms are the SAME missing publish, not three more defectsAhmet Kaan Gümüş · af4d9c7
Merge lane-av1txctxband2 r2: the mixed-lossless RESIDUE arms are the SAME missing publish, not three more defects
The three arms lane-av1mixllconj handed over as unnamed separate-owner defects close with the one line already
merged: 420_mixll_256x128_6f.obu was red on f1..f6 (6051/4115/2962/26566/41876/14749) -> 7/7 byte-exact;
420_mixll_320x240_5f.obu was red on f1..f5 (15031/16259/21932/65405/90077) -> 6/6; 420_mixll_320x240_6f.obu
was red on f6 only (19398) -> 7/7. Three fixtures and a second gate
(a_420_mixed_lossless_residue_arms_are_byte_exact_in_decode_order) land with them, so the residue is pinned
rather than inferred.
Attribution note the lane kept rather than smoothing: m5_320x240's f2/f3 read 16259/21932 at 0bfee517 against
the 16006/21930 recorded in lane-av1mixllconj's table, because that table predates lane-av1offtile's
chroma-plane clip; f1/f4/f5 and both other cells match exactly. The recipes reproduce the earlier report's byte
counts and sha prefixes, so this is the same class re-measured on a later tree, not a different stream.
Also worth recording: the class sweep this lane ran over the publishing family found FIVE hand-rolled
`for i in 0..w_mi { band[..] = x }` sites with no trace rung at all (decode.rs:13762, 14201, 14245, 29472,
47592), which is why the inherited EC_TXUPD replay could report "nothing writes this column" -- true of the
trace, false of the decoder. The rule is now in skill oracle-rung-silence-is-not-absence
("the absence of a rung is not the absence of a write").lane-av1txctxband2 r2: the mixed-lossless RESIDUE arms are the SAME missing publish, not three more defectsAhmet Kaan Gümüş · a87fc0c
lane-av1txctxband2 r2: the mixed-lossless RESIDUE arms are the SAME missing publish, not three more defects
lane-av1mixllconj §7 named three residuals on this recipe and declined to claim
them ("separate defects this change shrinks but does not remove"). Measured, they
are this lane's defect at smaller frame sizes: a lossy block reading a band a
lossless block above it should have published into and did not.
Measured on f2dd27b0~1 (= 0bfee517) against aomdec EC_AV1_FINAL_DUMP, decode
order, per differing frame:
420_mixll_256x128_6f.obu 7 dumps red f1..f6: 6051/4115/2962/26566/41876/14749
420_mixll_320x240_5f.obu 6 dumps red f1..f5: 15031/16259/21932/65405/90077
420_mixll_320x240_6f.obu 7 dumps red f6 only: 19398
With the one publish: 7/7, 6/6 and 7/7 byte-exact, 0 differing bytes on every
plane of every decode-order frame. Recipes reproduce mixllconj §1's byte counts
and sha prefixes (37fbe7cb, 40d613fd); m5_320x240's f2/f3 read 16259/21932 here
against the 16006/21930 that report records, because its table predates
lane-av1offtile's chroma-plane clip — f1/f4/f5 and both other cells match exactly.
- three fixtures, pinned by fnv1a64, and a second gate
a_420_mixed_lossless_residue_arms_are_byte_exact_in_decode_order asserting all
three (decode-order dumps, hidden frames, and the route-counter delta > 0)
- mutation proof widened: removing the one set_txfm_ctxs call turns the residue
gate red on a PIXEL diff (6051 bytes on 420_mixll_256x128_6f frame 1 — the same
number the pre-fix tree produced) while the 640x480 gate turns red on the
REFUSAL, so neither gate is carried by the other
- lane-av1mixllconj's own 256x128 pin gate stays green under that mutation, which
is the control that the fix is not what already made the pin exact
Reported independently by lane-av1mixllres, whose one-line fix is this lane's
already-landed line; measured here on this tip rather than taken on report.av1offtile report: the band publish closed the cell, and the lane corrects two of its OWN §6b claims now that the fix landedAhmet Kaan Gümüş · 599c722
av1offtile report: the band publish closed the cell, and the lane corrects two of its OWN §6b claims now that the fix landed
Report-only; crates delta verified EMPTY against the lane's previous tip and the file was taken, not the branch.
The re-measure ran the operand pair FIRST, as agreed: above_txfm 16 -> 4 (oracle abv=4), left_txfm 8 unchanged,
above true -> false, ctx 2 -> 1 reached ON ITS OWN -- outcome 1 of the three-outcome protocol -- and then the
pixels: mix_640x480_5 decoded 5/5 (was REFUSED on the combined tip), byte-exact vs aomdec, paired EC_SYMR
457907/457907 full lockstep on the convention-free fields. So the BAND was the cause, the ctx=1 lock is retired
as a symptom mask, and the chain off-tile walk -> var-tx conjunct -> band publish is confirmed end to end.
Two claims of its OWN that §6b had to correct once the fix landed, kept rather than quietly swapped:
- 'nothing writes that column in between' was NOT PROVABLE from an EC_TXUPD-filtered replay, because several
publishers are hand-rolled band loops with no rung at all -- the negative was UNDER-DETERMINED, not measured;
- 'a band write in rows 37..79' named the wrong location: the missing publish was the abutting 8x8 intra
LOSSLESS block at mi=(78,110), rows 78-79.
Both are the same class as the corpus-bucket defect: a measurement bounded by its own instrumentation, read as a
statement about the decoder.av1mixllconj report: control NOW MET -- the band publish closed 640x480 and the operand pair retired the ctx lockAhmet Kaan Gümüş · cbefb85
av1mixllconj report: control NOW MET -- the band publish closed 640x480 and the operand pair retired the ctx lock
Report-only; crates delta verified EMPTY against the parent, file taken not branch.
The lane ran the §4.3 protocol itself on a scratch tree at main + the band fix, and it landed on outcome 1:
above_txfm 16 -> 4 and above true -> false ON ITS OWN, the operand pair now equal to libaom's term for term
(ours EC_TXCTX mi=80,110 abv=4 lft=8 above=false left=true | oracle EC_TXCTXB abv=4 lft=8 above=0 left=1
ctx=1). So the band write was the cause, the ctx=1 lock is RETIRED as a symptom mask, and the chain off-tile
chroma walk -> var-tx conjunct -> band gap is confirmed end to end, with section 4.3 now causally right and not
merely directionally right. Pixels on the same binary: m5_640x480 6/6 (was 4/6 then REFUSED), m_640x480 7/7
(was 5/7 then REFUSED), 176x144 7/7, 352x288 7/7, the 256x128 pin 6/6, the 4:4:4 arm 9/9, and the ladder on
the cell that refused is 457907/457907 bit-identical -- exactly the count the forced-ctx mask produced, which is
why the operand pair had to be the assertion rather than the pixel run.
KEPT IN THE REPORT RATHER THAN SMOOTHED, because it changes how the next lane replays a band: the lane's
"nothing writes mi column 110 between read 157577 and the read" was TRUE OF ITS TRACE AND FALSE OF THE DECODER.
Several publish sites are hand-rolled `for i in 0..w_mi { band[..] = x }` loops with no trace rung, so an
untraced publish is invisible to a rung-level replay; the writer was named by walking the mi-map column at the
reader's own site and tagging `read_block_tx_size`'s arm. ABSENCE OF A RUNG IS NOT ABSENCE OF A WRITE, and a
band diagnosis built on a rung replay is bounded by the sites that log.Merge lane/av1txctxband2: a LOSSLESS block still publishes its txfm band -- the 640x480 mixed-lossless cell goes REFUSED -> byte-exactAhmet Kaan Gümüş · 75af3c4
Merge lane/av1txctxband2: a LOSSLESS block still publishes its txfm band -- the 640x480 mixed-lossless cell goes REFUSED -> byte-exact
The third and last defect of the mixed-lossless recipe. The whole chain was ordered: the off-tile chroma
walk moved the first divergence, the var-tx conjunct made the offending block reachable in a state where its
context matters, and this publish closes it. Both 640x480 cells are now byte-exact at BOTH sizes -- 5f: 6/6
decode-order frames, 0 differing bytes on every plane of every frame including the hidden alt-ref; 6f: 7/7 --
with the paired EC_SYMR ladder bit-identical over ALL 457907 reads (0 unparsed). That 457907 is exactly the
count the earlier forced-ctx=1 mask produced, which is why the pixel compare could not have separated a repair
from a mask and why the operand pair had to be the assertion.
ROOT CAUSE: `read_block_tx_size`'s LOSSLESS early return returned a 4x4 leaf grid and published NOTHING into
the TXFM_CONTEXT bands. libaom's `parse_decode_block` (decodeframe.c:1251-1262) is an EITHER/OR -- a lossless
block cannot take the var-tx branch, so it ALWAYS takes the else branch, whose
`set_txfm_ctxs(TX_4X4, xd->width, xd->height, skip_txfm && is_inter_block(mbmi))` runs for it; `read_tx_size`
returns TX_4X4 on its FIRST line (:1214), so the early return skips the SYMBOL READ, not the PUBLISH. The RECT
twin `read_block_tx_size_rect` has published on that arm since lane-av1lm444loss -- only the square arm had the
hole, which is exactly why the class was never swept: the two read as twins in the source and only one is.
THE MISSING WRITE, NAMED: the 8x8 intra lossless block at mi=(78,110), rows 78-79 -- the abutting block libaom's
`xd->mi[-mi_stride]` points at from the reader at mi=(80,110). It left `above_txfm[110]` holding the 16 written
43 mi rows earlier by a skipped 16-px inter block at mi=(36,108) where libaom stamps 4, so the reader took
`above = (16 >= 8) = true` and read `tx_size_cat0[2]` where libaom reads row 1. `left` already agreed: the
entire gap was the above TERM off the band.
FIX: publish on the lossless arm -- `set_txfm_ctxs(n, at_mi, 4, side_mi, side_mi, skip && is_inter)`, the same
call the non-lossless tail of the same function already makes -- plus the decision counter
`LOSSLESS_SQ_TXFM_BAND_OVERWRITE_HITS`, sampled BEFORE the write so it fires only when this publish OVERWRITES
a size an earlier block of the same frame left in a covered column: zero on an intra-only frame and zero on a
wholly-lossless stream whose inter blocks are all non-skip, so it cannot be armed by merely decoding a lossless
fixture.
MEASUREMENTS: at the base the cell was `REFUSED: ... a Golomb tail longer than this decoder reads` with
frames_dispatched 0. Corpus sweep, 110 committed fixtures with the fix stashed/rebuilt/restored: base
100 EXACT / 10 REFUSED / 0 RED / 0 FRAMECOUNT and with the fix the same, ZERO rows changing, the 10 refusals
being the pre-existing by-name 4:2:2 refusal. Regression controls regenerated WITH the fix: 176x144 6/6,
352x288 6/6, 256x128 pin 6/6, all byte-exact.
METHOD NOTE WORTH KEEPING, because it changed how the block was found: the inherited EC_TXUPD replay filtered
to column 110 rows <80 reported "nothing writes column 110 in rows 37..79" -- TRUE OF THE TRACE AND FALSE OF THE
DECODER, because several publish sites are hand-rolled `for i in 0..w_mi { band[..] = x }` loops with no rung.
The writer was named instead by walking the mi-map COLUMN upward at the reader's own site (printing BlkCell
org/dim/skip plus the grids and the live band) and then one env-gated tag inside `read_block_tx_size` naming its
own arm. Also confirmed: `above_txfm` resets per TILE, not per mi row, so a row-36 write surviving to row 80 is
libaom-correct -- the bug is that rows 37..79 should have written.lane-av1txctxband2: a LOSSLESS block still publishes its txfm band; the 640x480 mixed-lossless cell goes REFUSED -> 6/6 and 7/7 byte-exactAhmet Kaan Gümüş · e226c3b
lane-av1txctxband2: a LOSSLESS block still publishes its txfm band; the 640x480 mixed-lossless cell goes REFUSED -> 6/6 and 7/7 byte-exact libaom's parse_decode_block is an EITHER/OR: the var-tx branch's condition carries !xd->lossless[segment_id] as a conjunct, and the else branch runs read_tx_size AND THEN set_txfm_ctxs. read_tx_size returns TX_4X4 on its first line, so a lossless block skips the SYMBOL READ, not the PUBLISH. read_block_tx_size's lossless early return skipped the publish too. On a mixed frame every lossless square block therefore left above_txfm holding whatever an earlier lossy block wrote. Measured on the 640x480 cell: the abutting 8x8 INTRA lossless block at mi(78,110) left above_txfm[110] at the 16 a skipped 16-px inter block at mi(36,108) had written 43 mi rows earlier, and the 8x4 intra leaf with use_filter_intra at mi(80,110) then read tx_size_cat0[2] where libaom reads row 1 (oracle EC_TXCTXB: abv=4 lft=8 above=0 left=1 ctx=1). The tile desynced and the frame refused. The RECT twin read_block_tx_size_rect has published on the same arm since lane-av1lm444loss; only the square arm had the hole, which is why the class was never swept. - the cell decodes, 6/6 decode-order frames byte-exact at --limit=5 and 7/7 at --limit=6; the whole-stream paired EC_SYMR ladder is bit-identical over ALL 457907 reads, the same count the inherited forced-ctx=1 mask reached - corpus sweep, 110 committed fixtures before and after: 100 EXACT / 10 REFUSED both sides, ZERO rows changing (all ten refusals are the pre-existing by-name 4:2:2 chroma refusal); 176x144, 352x288 and the 256x128 pin re-measured 6/6 byte-exact with the fix - route counter LOSSLESS_SQ_TXFM_BAND_OVERWRITE_HITS on the DECISION (the publish overwrote a size an earlier block of the same frame had left), so the gate cannot be armed by merely decoding a lossless fixture - gate a_420_mixed_lossless_alt_ref_640x480_txfm_band_publish_is_byte_exact_in_decode_order, fixture pinned by fnv1a64; mutation proof: removing the one set_txfm_ctxs call turns it red on the exact refusal - class sweep context-band-not-published over 5 sites with a measured verdict each; the one other real gap (read_block_tx_size_rect's lossless arm missing the skip && is_inter term) is REACHED 29/1/9/6/16 times yet correcting it is a no-op on every fixture that reaches it, so it is handed over, not shipped without a red-before
av1mixllconj report: the 10/12-bit bullet now says what was MEASURED instead of implying an impossibilityAhmet Kaan Gümüş · f7a8a05
av1mixllconj report: the 10/12-bit bullet now says what was MEASURED instead of implying an impossibility Report-only; crates delta against the parent verified EMPTY, file taken not branch. The lane's 10-bit bullet claimed 'no >8-bit y4m source was obtainable'. That is refuted by this repo's own practice -- two lanes this wave built 10/12-bit y4m by hand (recipe in lanes/av1444d10.report.md, 12-bit variant in lanes/av1444palw.report.md) -- so the bullet now states the narrower, measured fact: THIS ffmpeg (8.1.3) failed 'Conversion failed!' on yuv420p10le/12le, yuv444p10le and gray10le from both a lavfi source and a y4m input, and the one hand-built 16-bit-LE y4m tried was rejected by the shared aomenc with 'Loss of framing in Y4M input data' (0-byte output). Two attempts, not an impossibility; lane Esra2 owns the arm. Why it mattered enough to take: the refutation banner corrects the corpus buckets but touches nothing in the section that carried this sentence, so a reader would have kept 'unobtainable' next to a lane actively building it. A documented trap that is only commented is not neutralised -- that applies to a report's prose exactly as it applies to a comment in code.
annotate: the corpus-bucket divergence is DIAGNOSED -- our decode-order dump narrows to u8 while the oracle's is depth-correct, so every HBD cell was red by constructionAhmet Kaan Gümüş · 4d57b9f
annotate: the corpus-bucket divergence is DIAGNOSED -- our decode-order dump narrows to u8 while the oracle's is depth-correct, so every HBD cell was red by construction The conjunct lane supplied the root cause of its own wrong buckets, and it is verifiable in one line: our EC_AV1_DECODE_ORDER_DUMP narrows every plane (stream.rs:2189, and its own comment says it 'predates 10-bit support and is an 8-bit-oracle comparison only') while the oracle's EC_AV1_FINAL_DUMP is bit-depth correct. On an 8-bit stream that compare is fair; on 10/12-bit it mismatches on EVERY frame by construction. Nearly all 34 RED rows were HBD fixtures -- red because u16 samples were halved, not because a pixel differed -- which is why the correct buckets are 96 EXACT / 0 RED / 9 / 1 at base and 100 / 0 / 9 / 1 at the tip, and why the lane's zero-EXACT->RED substance stands untouched. The annotation now names the cause instead of leaving two incompatible sweeps of the same corpus for the next lane to choose between, and the class is recorded in oracle-raw-packing-depth-audit: an all-HBD red set is the signature of a narrowed-dump compare, and a documented trap is not a neutralised trap.
conjunct + off-tile refutation: PARTIAL -- every decoder claim reproduced; three figures corrected, one of them patch-introduced in codeAhmet Kaan Gümüş · d626fa6
conjunct + off-tile refutation: PARTIAL -- every decoder claim reproduced; three figures corrected, one of them patch-introduced in code The pass reproduced every decoder claim with its own instruments before refuting anything: the pin (6/6 decode-order dumps byte-exact, shown rawvideo 0 differing bytes), the whole-stream ladder (96997/96997 paired, first divergence NONE), the conjunct-out red (f1..f5 = 33724/34251/44500/36688/37462, gate FAILED at frame 1 byte 33, ladder fork at read 30889), the per-segment derivation, the 640x480 premise reversal on base (the report's exact bytes, 76/70/68/87/92 % of the frame wrong), and the off-tile arithmetic re-derived independently (mb_to_right_edge -88 / -120 -> max_block_wide 6, max_block_high 2 -> 12 units per plane against 32 walked; the oracle's own EC_ECDUMP_IN prints 2373 lines; pixel-invisibility CONFIRMED by removing the clip and showing frame 0 still byte-exact). Fixed here, in code, because the first finding was patch-introduced: SUB8_LOSSLESS_NO_VARTX was not the DECISION counter its doc claimed, and my merge message repeated the claim. The pass measured 33 hits on a build with the conjunct REMOVED: the `else if lossless(fctx) && !skip` arm also serves leaves whose `tx_select_inter` is OFF. The hit is now guarded on `tx_select_inter` -- the same term the conjunct uses -- so a hit means the suppression is the conjunct's doing. The pin's delta reads 10, not 40; the gate still asserts > 0 and stays green; both numbers are named in the counter doc and the gate doc. Same class as the palette counter correction earlier today: a hit that fires for a population the fix does not touch is not a non-vacuity arm. Corrected in the report as an annotation rather than a rewrite: - CORPUS BUCKETS: the pass measures base 106 = 96 EXACT / 0 RED / 9 FRAMECOUNT / 1 ORACLE_FAIL and tip 110 = 100 / 0 / 9 / 1. The substance is intact and stronger than the report's framing: conjunct-out -> tip is exactly ONE status change, zero EXACT->RED, zero new refusals; base -> tip is 0 changes across the 106 shared fixtures plus 4 added; tip -> clip-out is 0 changes. The report's 107-fixture/64-34-9-0 pair matches neither tree. - The cited rung EC_AV1_DECODE_ORDER_DUMP does not exist in the shared oracle build (only EC_AV1_FINAL_DUMP); the measurement stands, the name is wrong.
palette lane: refutation PARTIAL -- code, fixtures and gate survive; three report figures corrected in place, plus two small in-code defects the pass foundAhmet Kaan Gümüş · 44a4ba0
palette lane: refutation PARTIAL -- code, fixtures and gate survive; three report figures corrected in place, plus two small in-code defects the pass found The refutation of `0bfee517` reproduced the reach on the pinned bytes with its own rung (`mi=22,8 px=128 py=352 bw=64 bh=16 cw=64 ch=16 uw=32 uh=16 nw=2 nh=1 puv=1` for the RECT-unit arm; the same block with `cw=64 ch=32 uw=uh=32` for the SQUARE-unit arm), re-measured exactness at both depths with a comparator it proved live at each depth (one-byte oracle flip -> +1), and reproduced the mutation exactly (byte 738176, 54278 bytes). What did NOT survive is three figures, now corrected in the report as an annotation rather than a rewrite: 1. REACH CENSUS: "exactly three committed fixtures carry this walk" is wrong -- all 110 re-swept print the walk in 19 of them (17 pre-existing), and three PRE-EXISTING fixtures do carry an nw>=2 walk (r512, 444_rect_strip_leaf_tx_type, 444_sb128rect_lr_witness). The load-bearing sub-claim survives and is now measured: only three fixtures corpus-wide carry a CHROMA PALETTE on this walk at all -- the two new cells and r512_rect2x1_1x2_444 (nw=1 nh=2). 2. PER-PLANE MUTATION COUNTS do not reconcile with the report's own totals: the u16 surface gives 26832+27446 = 54278 (10-bit) and 6656+6656 = 13312 (12-bit), which equal the headline totals, while the printed per-plane rows sum to 51692 and 12800. Two surfaces under one claim; both marked unpinned until re-derived. 3. "NOT A CASCADE" is dropped: with BOTH sites reverted the 10-bit damage spans 372 rows and columns 128..639 and the first wrong sample lies outside every palette-bearing walked block, so luma 0 rules out luma-side context only. The ARM-ISOLATED result replaces it and is stronger: rect-unit arm alone reds the 10-bit cell (first wrong r352 c160, inside the horizontal block) and leaves 12b clean; square-unit arm alone reds 12b AND 10b. That isolation also corrects an in-code comment: windowing is load-bearing for EVERY tiled block, and `nw > 1` is merely the case the corpus could not reach -- the counter's doc now says so instead of inviting the "only the horizontal term matters" reading. The reviewer also read the counter floors directly: 8 and 4 on the new cells, 4 on the pinned cell, and 0 on 420_intrabc_rect4_witness (proof the guard discriminates). Two in-code defects fixed here, both found by that pass: - `EC_PALWALK` printed the label `py` for TWO different quantities (the block origin and `palette_y.is_some()`), so any census script could silently read the wrong one: the second is now `py_pal`. - the `CHROMA_PALETTE_WINDOW_HITS` doc block carried the claim the isolated-arm mutation refutes (see 3).
av1offtile report: the 640x480 re-measure protocol (§6c), word-for-word the same table as av1mixllconj §4.3Ahmet Kaan Gümüş · 532a30d
av1offtile report: the 640x480 re-measure protocol (§6c), word-for-word the same table as av1mixllconj §4.3 Report-only; taken as the file, not the branch (crates delta against the merged fix verified EMPTY both ways, and the branch sits on the old base so a branch merge would drag other lanes' work in). Verified additive: zero removed lines against main's copy. Two reports paraphrasing the same discriminator differently is how the dangerous outcome gets argued away, so the table is now identical in both and written as an ASSERT: the pixel run is the CONSEQUENCE, the operand pair is the CAUSE, and the pair is readable BEFORE the fix lands -- a forced ctx=1 alone already makes the cell exact (457907/457907 bit-identical, no band change), so a green pixel compare cannot tell a repair from a mask. The cheapest discriminator needs no decode at all: a band-write site touched with decode_leaf_rect8 untouched means the band was the cause, the reverse means it was a symptom. Comparison conventions recorded with it so future numbers stay comparable: convention-free EC_SYMR fields only, third field regex -?\d+ because the oracle's negative pre[2] is stream-dependent (211/457907 here, 52/96997 on the 256x128 pin), and name which override sweep produced a ctx table -- per-site and global disagree on the non-answer rows without either being wrong.
av1mixllconj report: the 640x480 re-measure asserts the OPERAND PAIR, not the pixel compareAhmet Kaan Gümüş · d5b102a
av1mixllconj report: the 640x480 re-measure asserts the OPERAND PAIR, not the pixel compare Report-only; taken as the file, not the branch (the branch is based on 6bb66a4a, so a branch diff against main carries other lanes' work -- main already has this lane's code). Verified additive: the diff against main's copy has zero removed lines. Why it matters, and why it is part of the standing obligation filed under Agent01-8's band write: a GREEN 640x480 pixel compare cannot say WHICH cause closed it, because the ctx=1 lock would produce the same green. The re-measure therefore asserts the operand pair (above_txfm and ctx) on the same two rungs after the fix, with three tabled outcomes: above_txfm 4 with ctx 1 arising on its own = the band write at mi=(36,108) was publishing 16 where libaom has 4, and the ctx=1 lock is RETIRED as a symptom mask; above_txfm 16 with ctx 1 anyway = the band is STILL wrong and a green cell is the mask doing the work, not a repair -- exactly the case a pixel compare hides; above_txfm 4 with ctx not 1 = something else remains and the cell should NOT go exact. An ASSERTION, not a log line. The report also records the ordering evidence rather than only the sequence: the off-tile walk moved the 176x144 first divergence 25792 -> 29411 and changed NOTHING on 640x480, while the var-tx conjunct is what made mi=(80,110) reachable in a state where its context matters (base + the clip alone reads 860431 with no ctx value moving it) -- so the chain is ORDERED, which is why the operand pair is readable at all.
av1mixllconj report: land the final 16 lines of the tip (report-only; crates verified identical)Ahmet Kaan Gümüş · 5d31057
av1mixllconj report: land the final 16 lines of the tip (report-only; crates verified identical) The lane's tip moved to 1562c7e5 and the only delta against what main carries is 16 report lines -- no source delta, verified with git diff --stat against crates/. Landing the report keeps main's copy canonical instead of leaving a reader to chase a branch tip for the last paragraph of a handoff.
av1mixllconj report update: the band-gap handoff is now a two-lane joint fact with its owner named, and three corrections folded inAhmet Kaan Gümüş · f75ebff
av1mixllconj report update: the band-gap handoff is now a two-lane joint fact with its owner named, and three corrections folded in
Report-only (crates/ verified identical to the merged fix). The 640x480 band gap is reproduced on two trees
(ctx=1 -> ours 457907 vs oracle 457907, bit-identical; the natural value gives 521856 with the first divergence
at 179378), and the last band write above mi column 110 is identified: the SKIPPED 16-px inter block at
mi=(36,108) publishing 16 where libaom has 4.
Three corrections folded in rather than left as drift:
- the site is the tx_size_cat0 arm of decode_leaf_rect8 (the FUNCTION survives line drift; the line number
does not, so a function name is the durable handle);
- the override only bites with the conjunct landed, so the dependency order is off-tile chroma walk ->
var-tx conjunct -> band gap; that is why a global-override sweep and a per-site sweep produced different
ctx rows without contradicting each other;
- the EC_SYMR comparator's third field must ACCEPT A NEGATIVE pre[2]; the under-count is stream-dependent
(52 of 96997 on the pin, 211 of 457907 on 640x480), not a fixed number.
Agent01-8 (lane/av1txctxband2) is named as the owner in the deferred section, so the chain no longer runs
through the two lanes that found it. No forced-ctx code is in any branch.av1offtile report update: the joint reproduction of the tx_size_cat0 ctx finding, and a self-correction kept verbatimAhmet Kaan Gümüş · 107f8fd
av1offtile report update: the joint reproduction of the tx_size_cat0 ctx finding, and a self-correction kept verbatim Report-only (crates/ delta against the merged fix verified EMPTY). 1. JOINT REPRODUCTION of the handed-over defect: on a scratch tree at the conjunct lane's tip plus this lane's patch, forcing ctx=1 at the 640x480 mi=(80,110) tx_size_cat0 site gives 457907 reads against the oracle's 457907, bit-identical over all of them. The third defect's identification is now a two-lane measurement rather than an attributed claim -- and it is still NOT shipped, because a forced context is a symptom mask. 2. SELF-CORRECTION kept in the report with the wrong claim verbatim and the correction under it: this lane had claimed mix_640x480_5/6 "still decode with both applied", having measured only its own tree and extrapolated about the COMBINED fixes. Rebuilt on the combined binary: both REFUSE. Its regression table now says "decodes" means NOT REFUSED and records 640x480 as RED at base with its own measurements (f0 EXACT, f1 352066, f2 414286, f3 313795, f4 399471 of 460800), reproducing the peer's numbers exactly. 3. Class sweep, measured rather than claimed: the two other coefficient-reading chroma walks (chroma_tiled, decode_block_rect64) instrumented with the same off-tile test and swept over the whole committed corpus, 18 generated edge-overhang cells and the 12 mix cells -- 0 hits; probes removed, grep -c EC_OFFTILE is 0. Mutation proof: width half disabled -> 2381 units vs the oracle's 2373; clip removed -> the non-vacuity assert fails.
Merge lane/av1444palw: the palette walk's HORIZONTAL arm (nw>1) and a 12-bit cell are MEASURED, not "correct by construction"Ahmet Kaan Gümüş · 51825f3
Merge lane/av1444palw: the palette walk's HORIZONTAL arm (nw>1) and a 12-bit cell are MEASURED, not "correct by construction"
The residue the 4:4:4 palette fix left behind is closed. Its horizontal windowing (ox = cu_col * uw at the
block's own chroma_w stride) was reached by NOTHING: a corpus-wide tracer over all 108 committed fixtures found
walks in 3 files, every one nw=1 -- and the one 64-WIDE luma palette rect block in the corpus
(420_intrabc_rect4_witness.obu) collapses to 32 chroma columns at 4:2:0, so the horizontal term stays dead
there too. The load-bearing knob turns out to be --min-partition-size=8 (at 4 the 64-wide strip never takes a
chroma palette), on 4:4:4 screen-tuned testsrc2 at 640x480.
Two pinned cells now reach the arm, one per unit arm:
444_palette_chroma_hstrip_640x480_10b.obu -- 3301 B, sha256 40cebc52..., walk bw=64 bh=16 cw=64 ch=16
uw=32 uh=16 nw=2 nh=1 => the RECT-unit arm of the tiled walk
444_palette_chroma_hstrip_640x480_12b.obu -- 2571 B, sha256 2fb5ba97..., walk bw=64 bh=32 cw=64 ch=32
uw=32 uh=32 nw=2 nh=1 => the SQUARE-unit arm, at 12-bit
Both measure Y/U/V = 0/0/0 against the oracle (u16 LE dumps vs aomdec --rawvideo at the matching output bit
depth), with the comparator's liveness proved at BOTH depths first (a one-byte oracle tamper moves the count
0 -> 1). Mutation proof, both windows reverted to the whole-buffer hand-off: 10-bit reds at byte 738176 with
54278 differing bytes (per-plane 0/25553/26139, first bad sample frame 0 plane U r96 c448, mutant 810 vs
oracle 763) and the 12-bit arm reds at byte 1065280 with 13312 (0/6400/6400). Luma stays 0 in both, so the
failure is the cu_col=1 unit and not a cascade. Gate
a_444_palette_chroma_horizontal_unit_window_is_byte_exact_10bit_and_12bit with per-arm pins, a
nw*nh>1-guarded reachability floor, and a full-resolution-chroma assertion so a 4:2:0 extent cannot pass.
The counter floor of 4 was a floor from ONE stream; re-measured per stream it is 8 (10-bit cell) and 4 (12-bit
cell), asserted at those values, and the old number is annotated so it is not read as a corpus figure
(16 windowed units in total on the two new cells, 8 of them on the horizontal arm). The previously-unreachable
horizontal arm is therefore measured on two depths and two unit arms; the coverage debt for this walk closes.Merge lane-av1offtile: the lossless rect strip's chroma walk is bounded by the CHROMA PLANEAhmet Kaan Gümüş · d51f53f
Merge lane-av1offtile: the lossless rect strip's chroma walk is bounded by the CHROMA PLANE The 40 phantom reads at the bottom-right partial superblock are owned and fixed. libaom bounds every transform walk PER PLANE and PER UNIT -- max_block_wide/high adds mb_to_right_edge >> (3 + subsampling_x) (av1_common_int.h:1565) and av1_foreach_transformed_block_in_plane drops any unit past it (decodeframe.c:1124). decode_rect_split's LUMA walk already carried that clip; its lossless CHROMA walk counted the block's own chroma_w/4 x chroma_h/4. Same function, same rule, one plane covered. Exact arithmetic, and it is why the bit position froze rather than advancing: on 176x144 the block at mi=(32,32) is bw=64 bh=32 on an 88x72 plane, so the chroma plane block is 32x16 = 8x4 units; the walk emitted 32 units/plane where only 12 are coded, so 20 phantom x 2 planes = the measured 40. They ran past the tile's coded byte range into an exhausted reader, where read_golomb's unary prefix returns 0 forever and each aom_read_symbol only renormalises rng (decaying ~509 per read) with bit == post_bit == 36288 on all 40. Fix: 2 lines at decode.rs ~12915, the chroma twin of the luma guard 380 lines above in the same function, using the chroma plane's own true_width/true_height (off-tile units are counted and skipped, so the counter is the non-vacuity arm). Measured effect: the 40 reads are gone, the paired ladder is bit-identical through read 29410 (was 25791), and frame 0's transform-unit count drops 2413 -> 2373, which IS the oracle's own EC_ECDUMP_IN census for the same bytes. First divergence moves to 29411, a different site. Pixels cannot see this defect at all (every phantom read is all_zero), which is why the gate asserts the UNIT COUNT rather than a pixel compare. The refusal is NOT removed by this commit alone, and that is measured rather than deferred: composed with the sibling conjunct clip (the commit merged immediately before this one) 176x144 and 352x288 both decode 6/6 byte-for-byte identical to aomdec --rawvideo. 640x480 refuses with both and is byte-for-byte unchanged by this clip, so its residual is the third, independent defect named in the previous merge message.
Merge lane-av1mixllconj: the var-tx tree is gated on per-segment lossless as a CONJUNCT, not an else-ifAhmet Kaan Gümüş · e3cfa33
Merge lane-av1mixllconj: the var-tx tree is gated on per-segment lossless as a CONJUNCT, not an else-if The mixed-lossless class (a supported 4:2:0 8-bit cell reachable from one aomenc line) is fixed. The charter's suspicion -- that our per-segment lossless answer disagreed with libaom's xd->lossless[segment_id] -- is REFUTED: the derivation is libaom's term for term (av1_get_qindex + the five deltas, evaluated after segmentation resolves), and behaviourally the parse is bit-identical to the oracle for 179378 reads on the 640x480 cell, where any wrong flag at any var-tx gate would have changed the READ COUNT and forked the ladder. The defect was the branch POSITION: libaom puts !xd->lossless[segment_id] IN the var-tx condition (decodeframe.c:1237), we had it one branch late in an `else if`. Two sites: decode.rs:27213 (intrabc 4x8/8x4 rect leaf) and :48332 (sub-8 4x8/8x4 inter leaf). Evidence: the pinned 256x128 witness is 6/6 decode-order byte-exact with the paired EC_SYMR ladder bit-identical over the WHOLE stream (96997/96997 reads, zero divergence -- not merely up to the old fork); the 4:4:4 arm goes red-on-f1..f8 -> 9/9 exact; 352x288 is REFUSED -> 7/7 exact; 176x144 REFUSED -> decodes (its residual fork at read 25792 is a different site, closed by the sibling clip merged next); the 107-fixture corpus moves exactly ONE fixture RED -> EXACT with zero EXACT->RED, no new refusal and no frame-count change; mutation proof reds the gate at the same 33724 bytes as the hand measurement; scoped suite 375 passed / 0 failed / 7 ignored. ONE REGRESSION CONTROL IS NOT MET AND ITS PREMISE WAS FALSE, reported rather than papered over: 640x480 still refuses after 4 of 6 decode-order frames. It is not "a working cell made to refuse" -- at base it decodes 6/6 dumps while EVERY inter frame is 70-92% wrong (f1..f5 differ by 352066/414286/313795/399471/422078 of 460800), independently reproduced by the sibling lane on its own tree. So the fix replaces silent ~80%-wrong pixels with a loud refusal, and the residual is a THIRD defect, handed over with its site named: mi=(80,110), an 8x4 intra leaf with use_filter_intra in an inter frame, we read tx_size_cat0[2] where libaom reads [1] (a missing TXFM_CONTEXT band write above mi column 110); forcing ctx=1 there makes the cell bit-identical over all 457907 reads, and that forcing is deliberately NOT shipped because a forced context is a symptom mask.
av1: gate the var-tx tree on per-segment lossless as a CONJUNCT, not an else-ifAhmet Kaan Gümüş · d827f72
av1: gate the var-tx tree on per-segment lossless as a CONJUNCT, not an else-if
A 4:2:0 8-bit cell built from a plain aomenc line diverged from the oracle on
every inter frame:
ffmpeg -f lavfi -i testsrc2=size=256x128:rate=25 -frames:v 5 -pix_fmt yuv420p src5b.y4m
aomenc --codec=av1 --obu -o c_mix5.obu --passes=1 --cpu-used=4 \
--limit=5 --end-usage=q --cq-level=0 --aq-mode=1 src5b.y4m
18525 bytes, sha256 3e06b5641e6a0f5a3f4ac8f114d4ee48c88638429e9eaafe6b4483e24f1dbc3a.
f0 (key) exact; f1..f5 differ by 33724/34251/44500/36688/37462 bytes of 49152.
The first fork is entropy read 30889 of f1: the oracle goes from `ref_mv`
(decodemv.c:191) straight to the luma `txb_skip` (decodetxb.c:158) and reads no
tx_size symbol at all, while we read one.
libaom's reason it reads nothing: parse_decode_block (decodeframe.c:1237) puts
!xd->lossless[mbmi->segment_id] in the tree condition itself, and read_tx_size
(:1203) answers TX_4X4 on the same flag. Ours tested tx_select && !skip and left
lossless(fctx) -- already per-segment, lossless_per_seg[cur_segment_id] -- in the
`else if`, one branch too late.
Two sites, both fixed by adding the conjunct:
decode.rs:27213 intrabc 4x8/8x4 rect leaf
decode.rs:48332 sub-8 4x8/8x4 inter leaf
After, measured on this base (6bb66a4a):
- the pin: 6/6 decode-order byte-exact and the paired EC_SYMR ladder
bit-identical over the WHOLE stream, 96997/96997 reads, zero divergence;
- the 4:4:4 arm (--profile=1, 8 frames): red on f1..f8 before, 9/9 exact after;
- 352x288 of the same recipe: REFUSED before, 7/7 exact after;
- 176x144: REFUSED before, decodes 7/7 after (its residual is a separate
mi=(32,32) extra-geometry fork, first divergence read 25792 with AND without
this change -- measured here, not cited);
- 640x480: see below, the one control NOT met;
- corpus, all 107 committed fixtures: exactly one status change,
420_mixll_altref_256x128_5f RED -> EXACT. 64/34/9/0 (exact/red/
framecount/refused) at base, 65/33/9/0 after. No fixture regresses.
The charter's live question -- make our per-segment lossless answer agree with
libaom's xd->lossless[segment_id] -- is answered NO CHANGE IS NEEDED: the
derivation is line-for-line libaom's (quant_common.c av1_get_qindex plus the
five deltas, evaluated after segmentation resolves), and on the 640x480 cell the
parse is bit-identical for 179378 reads, at every one of which a wrong flag would
have changed the NUMBER of reads. So no tree gate ever saw a wrong flag.
The 640x480 control is not met, and its premise is false: at base the cell
decodes 70-92% wrong on EVERY frame (f1..f5 differ by 313795..422078 of 460800
bytes), so it was never a correct decode. The fix moves that cell's first
divergence from read 138586 to 179378 and then exposes a SECOND, independent
defect: at mi=(80,110), a 4:2:0 8x4 intra leaf with use_filter_intra inside an
inter frame, we read tx_size_cat0[2] where libaom reads tx_size_cat0[1] (its own
EC_TXCTXB rung: abv=4 lft=8 above=0 left=1 ctx=1; ours: above_txfm=16 left_txfm=8
above=1 left=1). Forcing ctx=1 at that single site makes 640x480 bit-identical
to the oracle over all 457907 reads -- so the residual is a missing TXFM_CONTEXT
band write above mi column 110, class context-band-not-published, and not a
lossless-derivation problem. Loud refusal instead of silent near-garbage is the
direction the honesty invariant asks for; the missing band write is handed on.
Class sweep: all 74 lossless consults, all 10 `else if lossless` sites and all 9
read_var_tx_size gates re-derived against libaom's own condition. Exactly the 2
fixed sites were in the class (a per-segment flag consulted as a branch
alternative instead of a conjunct of the condition it gates); no third site.
Gate: a_420_mixed_lossless_alt_ref_sub8_vartx_witness_is_byte_exact_in_decode_order,
pinning the new fixture by fnv1a64, asserting 6 decode-order dumps with 1 hidden,
the SUB8_LOSSLESS_NO_VARTX route counter (incremented on the DECISION, so it is
non-zero only when the conjunct actually suppressed a tree; 40 on this pin), and
the shown-frame per-plane compare. With the fix surgically reverted the gate fails
at frame 1 byte 33 with 33724 differing bytes -- the hand-measured red.
Composition: cherry-picking 714fb55b (lane-av1offtile, the chroma-plane-bounded
lossless rect walk) on top of this commit was measured and then reverted -- the
branch carries no trace of it. With both clips the pin, 176x144, 352x288 and the
4:4:4 arm are ALL byte-exact, and the 640x480 residual is byte-for-byte unchanged
(64181 / 98673 / 63442), which is what makes the third defect of the report
independent of the chroma walk. lane-av1offtile reports 640x480 "still decodes
with both applied"; that does not reproduce on this commit + 714fb55b and was
corrected to them over IRC.
Scoped run: cargo test -p ec-av1 --lib -- 420 444 422 lossless stream
--skip bitrate_target_lands_within_5_percent_over_48_frames
-> 375 passed; 0 failed; 7 ignored; 0 measured; 422 filtered out (1770.01s).
That scope holds no 640x480-class cell, which is why the cell sweep is the
load-bearing evidence for the refusal above.
Not claimed: the 10/12-bit arm of the class sweep (this ffmpeg cannot emit a
>8-bit y4m), and the residual reds on the 6-frame 256x128 and 320x240 arms.
See lanes/av1mixllconj.report.md.av1: bound the lossless rect strip's chroma walk by the CHROMA PLANEAhmet Kaan Gümüş · ca7bfb4
av1: bound the lossless rect strip's chroma walk by the CHROMA PLANE The 40 extra `txb_skip` reads at the bottom-right partial superblock of a 176x144 mixed-lossless+altref stream were `decode_rect_split`'s LOSSLESS plane-major 4x4 chroma walk, which counted the block's own `chroma_w / 4` x `chroma_h / 4` units. libaom counts the PLANE's: `max_block_wide/high(xd, plane_bsize, plane)` adds `mb_to_right_edge >> (3 + pd->subsampling_x)` and `av1_foreach_transformed_block_in_plane` drops any unit past it (av1_common_int.h:1565, decodeframe.c:1124). The LUMA walk in the same function already carried that clip; the chroma walk did not. The bottom-right superblock of a 176x144 frame is a 48x16 sliver, but the block coded at mi=(32,32) is bw=64 bh=32, so its chroma plane block is 32x16 at origin (64,64) on an 88x72 plane: 8x4 units walked where 6x2 are coded, 20 phantom units per plane, 40 in total. Every one carries `all_zero` and consumes no data -- the bit position freezes at 36288 -- which is why frame 0's pixels are byte-exact either way and why the desync only surfaces 11 970 reads later as an unbounded Golomb tail. Frame 0's transform-unit count goes 2413 -> 2373, and 2373 is the oracle's own EC_ECDUMP_IN census for the same bytes. The paired EC_SYMR ladder is bit-identical through read 29410 (was 25791). Fixture: frame 0 of `mix_176x144_6.obu` (the 6-frame stream is 20 069 B, sha256 02b15d0d...; this fixture is its first 4581 B), so the gate decodes cleanly in isolation. The gate asserts the off-tile counter is nonzero, the unit count equals the oracle's census, and the pixels match aomdec; it goes red at 2381 with the width half of the clip disabled and red on gate-blind-to-feature with the clip removed. Regression control: mix_640x480_5/6, mix_320x240_6, mix_176x144_5 and c_mix5 are unchanged. Note 640x480 does not decode CORRECTLY at base -- every inter frame already differs from the oracle by 352066 / 414286 / 313795 / 399471 of 460 800 bytes -- and this patch is inert there. This cell's refusal is NOT gone by this commit alone: the first divergence moves to 29411, the var-tx/lossless conjunct lane Agent05-5 owns. Measured in a scratch tree at 658d37fa with this patch on top, both 176x144 and 352x288 decode and match the oracle byte for byte; 640x480 REFUSES with both, which is Agent05-5's regression and not this walk's. See lanes/av1offtile.report.md.