Commits
Commits on
0ec5cf8fcbc6e6d13d3f2830f58aa4bb866eaece2026-09-30
lane-av1422h242map: 4:2:2's height-242 rule is CONTENT, not height; mechanism is the sub-8x8 chroma leaf DC_PRED left edge (report only)Ahmet Kaan Gümüş · ba1a576
lane-av1422h242map: 4:2:2's height-242 rule is CONTENT, not height; mechanism is the sub-8x8 chroma leaf DC_PRED left edge (report only)
Swept width 320 x heights 226..260, both the av1422re4222 recipe and
--end-usage=q, 52 cells, per-cell oracle-flip control on every one.
13 of 18 heights diverge (226 228 230 232 234 238 242 244 246 248 252
256 258 260); 236 240 250 254 are byte-exact. The exact-height set MOVES
with the recipe, and height 242 is byte-exact with smptebars while
diverging with testsrc2 and mandelbrot -- so the trigger is content, not
geometry. 10 of 11 4:2:0 controls at the same geometries are exact.
Localised on R422_320x242: pre-loop-filter (PREFILT), chroma-only, luma
byte-exact on every frame; wrong chroma is a bounded 42-row band at the
right of centre, not the whole plane (the previous report's 'whole plane'
was a padded-vs-cropped plane-split artefact). The first wrong unit is a
flat 4x4 chroma leaf whose DC_PRED reads its left edge FOUR ROWS TOO HIGH:
ours (above + left@rows 156..159)/8 = 182, libaom's = above alone = 202.
ss_y == 0 makes that displacement non-zero; at 4:2:0 it is a no-op.
Not the same mechanism as the 4:2:0 320x236/322x248 pair: that one has
11198 wrong luma on frame 0 and forks entropy at read 6; this one is
luma-exact and is a prediction value.
Also names a separate finding: five 4:2:2 cells intermittently emit
out-of-range samples (65280..65535) on an 8-bit stream, nondeterministic
across repeated decodes, never on 4:2:0.
Report only. No source change; the EC_AV1_ALLOW_422_PROBE bypass and the
cell driver were patch-run-restore, stream.rs:1803 reads
'if seq.subsampling_x != seq.subsampling_y {' again and git status is
clean.Merge lane-av1screen12: LIFT the 12-bit screen-content refusal -- both halves of its claim were falseAhmet Kaan Gümüş · 236ebb2
Merge lane-av1screen12: LIFT the 12-bit screen-content refusal -- both halves of its claim were false The refusal said a 12-bit frame with allow_screen_content_tools=1 is unsupported because 'neither palette nor intrabc has a 12-bit witness'. Both halves were false, and both are now witnessed: - 12-bit PALETTE (screen=true, allow_intrabc=false): screen12_palette.obu 3616 B sha256 adfe26c6..., 2 frames, 76 palette / 43 palette-UV blocks, 0 wrong vs BOTH the instrumented aomdec and ffmpeg. - 12-bit INTRABC: the standing note '12-bit intrabc has no producer' was a RECIPE artefact, then refuted -- --tune-content=screen does not decide the frame-header bit in this oracle build (libaom's content detector does, av1/encoder/encoder.c:2404); the same 8-bit source tiled with -vf tile=2x2 gives allow_intrabc=true at 8, 10 AND 12 bits. screen12_intrabc.obu 482 B sha256 a3b6b94c..., 1 frame, 11 intrabc / 36 palette blocks, 0 wrong vs aomdec and ffmpeg. - 12-bit LOSSLESS + palette (CodedLossless and screen content in one frame): screen12_lossless_palette.obu 11698 B sha256 ec7942c9..., 2 frames, 80 palette / 59 palette-UV, 0 wrong. Three gates, each asserting the stream's OWN sequence header is 12-bit, that a frame header really carries allow_screen_content_tools (and allow_intrabc for that arm), that the palette/palette-UV/ intrabc hit DELTAS are non-zero, and that the live recipe reproduces the committed pin byte for byte (length + fnv1a64) -- so a stream that merely set the header bit fails instead of passing untested. Pin names are literals. Control: flipping bit 0 of the ORACLE's 12-bit high byte (index 1, a bit that can never carry) gives exactly (1,0,0,frames,frames-1) -- +1 wrong luma, one fewer exact frame. Refusal inventory updated in both copies; 56 refusal-census tests green.
lane-av1screen12: lift the 12-bit screen-content refusal; three 12-bit palette/intrabc witnessesAhmet Kaan Gümüş · eeb5937
lane-av1screen12: lift the 12-bit screen-content refusal; three 12-bit palette/intrabc witnesses The guard read `bit_depth == 12 && header.allow_screen_content_tools` and its string claimed "neither palette nor intrabc has a 12-bit witness". Both halves were wrong: the bit only opens the palette-mode and `use_intrabc` SYMBOLS, and both reconstructions are already depth-parameterised (`read_palette_colors_y` / `_uv` read at `bit_depth(fctx)`, the colour-index map writes u16 samples). Measured, guard lifted, each arm byte-exact against the instrumented aomdec --rawvideo AND ffmpeg, 0 wrong samples, with a +1 control on the oracle's own frame-0 luma high byte (exactly +1 wrong luma byte, one fewer exact frame): arm pin frames palette/uv/intrabc palette screen12_palette.obu 2 76 / 43 / 0 palette + intrabc screen12_intrabc.obu 1 36 / 34 / 11 lossless + palette screen12_lossless_palette.obu 2 80 / 59 / 0 The "12-bit intrabc has no producer" note was a RECIPE artefact: --tune-content=screen does not decide that frame-header bit in this oracle build (libaom's content detector does, encoder.c:2404). An untiled smptebars=size=128x96 source reads allow_intrabc=0 with and without the flag; the 256x192 -vf tile=2x2 source the repo's own intrabc census uses reads =1 at 8, 10 and 12 bits. Mutation proof: truncating read_palette_colors_y's first colour to 8 bits (bit-preserving) reds the palette gate with 119726 differing bytes, first at byte 1. Inventory: both copies of the string (REFUSALS row and its PROVEN pair) are gone -- 33 refusals + 33 proven -> 32 + 32. refus: 56 passed; gate_coverage: 20 passed, 282 gates, NEVER_EXERCISED_8BIT 0 of 26, NEVER_EXERCISED_10BIT 0 of 26.
Merge lane-av1422losslesspanic: the 4:2:2 lossless INTER panic is a FIVE-site family, not one line (report only)Ahmet Kaan Gümüş · 1766d69
Merge lane-av1422losslesspanic: the 4:2:2 lossless INTER panic is a FIVE-site family, not one line (report only)
Reproduced: decode.rs:37565 via
read_inter_chroma_lossless -> decode_inter_block -> decode_inter_frame_tile_with_cdfs, on three cells
(W/X/Y_intrabc at 4:2:2 --lossless=1, 320x240, the last two tiled and 10-bit). Instrumented geometry:
cpx=12 cpy=0 org=(0,0) reg=(4,16) blk=(4,16) stride=4 tw=160 th=240 need=64 alloc=16.
WHY 4:2:2-ONLY, from our own contract: decode_inter_block hands the caller the PER-AXIS pair
(chroma_stride, chroma_buf_h) at ss(1,0) but the SQUARE chroma_side at 4:2:0 and 4:4:4, while
read_inter_chroma_lossless's doc says stride is 'the block's SQUARE chroma side, even for a 2:1 strip'
-- a contract that holds exactly when the chroma plane block is square, i.e. 4:2:0 (side/2) and 4:4:4
(side), NOT at 4:2:2 where an 8x16 luma strip's chroma is 4x16.
Measured discriminator: 4:2:0 lossless exact 16/16 in three configurations, the committed 4:4:4
lossless gates all pass, and the committed 4:2:2 lossless/IBC pins are byte-exact -- so the lossless
INTRA/IBC 4:2:2 chroma path is fine and the gap is specifically lossless INTER 4:2:2.
NOT FIXED, deliberately: only a one-line extent was asked for; measured, sites 1-3 only walk the panic
forward to sites 4 and 5. Site 4 changes chroma_stride/chroma_buf_h for the whole of decode_inter_block
at 4:2:2 INCLUDING the lossy arms that currently measure byte-exact (the first real regression
surface), and site 5 is a different layer entirely (a 4x4 chroma unit read at luma-plane strides 128
and 64). No cell decodes byte-exact with 1-3 applied, and a partial fix on a path no gate covers turns
a LOUD panic into silent corruption. No gate committed for the same reason.
TWO NEW 4:2:0 FINDINGS, outside this lane's scope and both user-reachable: 4:2:0 lossless with
--lag-in-frames=25 --auto-alt-ref=1 --enable-global-motion=1 DIVERGES (1254308 wrong, 1/16 exact), and
4:2:0 lossless with ARF and no global motion is REFUSED by name ('a Golomb tail longer than this
decoder reads'). Being chartered separately.lane-av1422losslesspanic: the --lossless=1 4:2:2 panic is a family of five extent sites, not a one-liner; report only, nothing fixedAhmet Kaan Gümüş · 9204526
lane-av1422losslesspanic: the --lossless=1 4:2:2 panic is a family of five extent sites, not a one-liner; report only, nothing fixed
Main asked for a one-line extent fix in read_inter_chroma_lossless. Measured,
it is not one line, so the tree is back at ef9d7c97 and this commit carries
the site inventory instead.
Reproduced on all three --lossless=1 4:2:2 cells (W_intrabc 130320 B,
X_intrabc_tiled 131696 B, Y_intrabc_10b 202281 B) at decode.rs:37565,
'range end index 20 out of range for slice of length 16'. Instrumented
geometry at the failing call: reg=(4,16) blk=(4,16) stride=4, 64 elements
needed against the square's 16.
4:2:2-only because decode_inter_block hands the caller the per-axis
(chroma_stride, chroma_buf_h) pair at ss (1,0) and the square at 4:2:0 and
4:4:4. Discriminator measured: four 4:2:0 lossless recipes are byte-exact or
refuse by name and never reach the line, the six a_lossless_444_* gates
pass, and the committed 4:2:2 lossless IBC pins decode exact -- so the gap
is lossless INTER 4:2:2 specifically.
Applying sites 1-3 in turn walks the panic forward through the inventory:
1. decode.rs:37580 mu_units(stride*stride) -> stride*blk_h
2. decode.rs:45037 unit split indexed at chroma_side -> chroma_stride
3. decode.rs:45023 unit rows/cols from the luma-per-ss height -> chroma_buf_h
4. decode.rs:39995 4:2:2 strip chroma rect handed the 4:2:0 pair's (8,4)/(4,8)
5. decode.rs:4366 4x4 CHROMA unit read at prediction strides 128 and 64,
failing prediction buffer empty -- not reached, measured
Each is format-preserving at 4:2:0 and 4:4:4. Site 4 changes chroma_stride
and chroma_buf_h for the whole of decode_inter_block at 4:2:2 including the
lossy arms that currently measure byte-exact; site 5 is the chroma
prediction source never having been resolved per axis on this path.
Sites 1-3 are reverted. No cell decodes byte-exact with them, and a partial
fix here would convert a loud panic into a plausible wrong picture on a path
no gate covers. No gate committed either: a gate whose only red is 'still
panics' is a ratchet on a defect, not a fix.
The height-242 4:2:2 divergence is untouched and still open, not chased.Merge lane-av1cmpframe: count_rawvideo_diffs attributes planes PER FRAME (instrument fix)Ahmet Kaan Gümüş · 27c1687
Merge lane-av1cmpframe: count_rawvideo_diffs attributes planes PER FRAME (instrument fix) The plane table is now built per frame from each decoded picture's OWN plane lengths (the same source pack_rawvideo lays bytes out from -- not a formula, not width*height, not the first picture), with a monotone cursor walking the spans as the byte index advances and frames_exact comparing each frame's own span instead of a fixed stride, so a stream whose frames differ in size is attributable too (the old form could not express it). Signature unchanged, no caller changed. The gate counts the truth ITSELF -- it re-runs aomdec --rawvideo, packs our pictures, walks its own per-frame table -- and asserts the helper agrees on three axes: the per-plane split equals the independent per-frame count with each plane <= its own capacity; frames_exact equals the independently counted exact frames; and a byte inside FRAME 5's U plane moves U by exactly +1 leaving Y and V at baseline -- the arm the old code cannot pass, since that byte is past every frame-0 threshold and the old attribution put it in V. Mutation (fix reverted to the first-picture form) reds it with the old numbers digit for digit, including V 330673 > its own 302080 capacity. Caller sweep: count_rawvideo_diffs was the ONLY mis-attributing site (oracle_plane_diffs and the ffmpeg control's per-plane counters are frame-aware; count8 is frame-0 by declared subject and is named, not changed; the byte-equality helpers do no attribution). Re-measured with the fixed instrument, each with the flip control: 320x236 234349/56957/52981 (0/16 exact, new pin 420_oddheight_320x236_diverging.obu 16562 B sha256 84e4d1ab...), 322x248 36286/13359/13001 (0/16), 320x232 0/0/0 16/16, 320x248 0/0/0, 324x236 0/0/0 -- i.e. the debt's own figures, now emitted by the crate's own instrument rather than a lane-local script. Three earlier reports quoted a per-plane split from the broken helper (lanes/av1422anom.report.md:90 and :176, lanes/av1422h232.report.md:31-35, lanes/av1cmpaudit2.report.md:71): their TOTALS and frames_exact stand and every zero is a zero under any attribution, but the non-zero U/V splits are unattributed; the debt records that.
count_rawvideo_diffs: attribute planes PER FRAME, from each picture's own plane lengthsAhmet Kaan Gümüş · 163eefd
count_rawvideo_diffs: attribute planes PER FRAME, from each picture's own plane lengths The helper packed frames correctly (pack_rawvideo walks decoded) and then attributed every differing byte with FRAME 0's thresholds forever, so on a multi-frame stream everything after frame 0's luma landed in plane V: the pinned 320x236 stream reported wrongV=330673 inside a 302080-byte plane. Every gate asserted zeros, so nothing could see it. The plane table is now built per frame from each decoded picture's own y/u/v lengths -- the source pack_rawvideo itself uses, not a formula and not the first picture -- and frames_exact compares each frame's own span instead of a fixed stride, so a stream whose frames differ in size is attributable too. New control the_counting_oracle_diff_attributes_planes_per_frame on a new committed pin 420_oddheight_320x236_diverging.obu (16562 B, sha256 84e4d1ab...): it counts the truth itself, then asserts the helper agrees -- per-plane split, frames_exact, and a byte inside frame 5's U plane moving U and not V. Reverting the fix to the first-picture form reds it with left [11198, 2416, 330673] against right [234349, 56957, 52981]. Caller sweep: oracle_plane_diffs (per-frame dump files) and the 10-bit ffmpeg control arm (per-picture plane Vecs) were already frame-aware; count8 scores frame 0 by its own declared scope. This was the only site. Re-measured with the fixed comparator: 320x236 -> 234349/56957/52981 0/16 and 322x248 -> 36286/13359/13001 0/16, which are the debt's own recorded figures; 320x232 / 320x248 / 324x236 -> 0/0/0 16/16. Control: flip byte 0 moves each count by exactly +1. INSTRUMENT fix: no decoder behaviour touched. Report in lanes/av1cmpframe.report.md, including the three earlier reports whose per-plane split was mis-attributed.
Merge lane-av1422re4222: the 4:2:2 refusal is STILL earning its keep, for two concrete reasons (report only)Ahmet Kaan Gümüş · b920c1a
Merge lane-av1422re4222: the 4:2:2 refusal is STILL earning its keep, for two concrete reasons (report only) 23 of 30 reachable 4:2:2 cells are byte-exact on the LIVE comparator pair (the crate's audited count_rawvideo_diffs + decode_all_frames_vs_oracle, both batch controls green before any cell was measured), with a PER-CELL control on the same comparator: every cell measured four times, clean plus one bit flipped in the ORACLE's own bytes at frame 0's first Y, U and V byte (indices derived from the first decoded picture, so the three really land in three planes). A cell reading 0 clean and 0 flipped does not occur once in 30 -- the comparator reads both sides. The seven that are not exact are narrow and specific, not coverage: 4 of 4 reachable cells at frame HEIGHT 242 diverge (chroma-only, up to 22988 wrong presented samples, whole chroma plane of the keyframe, luma exact, present pre-loop-filter), and 3 of 3 --lossless=1 4:2:2 cells PANIC at one named line (decode.rs:37565, for an arithmetically 4:2:2-only reason). The 4:2:0 controls at the same geometries are exact, so the retraction's premise (that this was the shared odd-height 4:2:0 defect) no longer holds now that lane-av1422chrtx has fixed that one. RECOMMENDATION: keep the refusal -- lifting would expose users to chroma-only corruption across a family of ordinary heights AND to a decoder panic on lossless content -- then (1) fix read_inter_chroma_lossless's stride for a non-square 4:2:2 plane block, (2) sweep 4:2:2 frame heights 232..250 at one width to map the remainder trigger, (3) re-run the table and only then decide between a narrowed refusal and a lift. The refusal string and header behaviour are NOT changed here: that is a shipped-capability call. No source change; the probe bypass was patch-run-restored.
lane-av1422re4222: re-measure the 4:2:2 surface on a live comparator; 23/30 exact, 4 diverge at height 242, 3 lossless cells panicAhmet Kaan Gümüş · d5d0289
lane-av1422re4222: re-measure the 4:2:2 surface on a live comparator; 23/30 exact, 4 diverge at height 242, 3 lossless cells panic Report only, no source change. The EC_AV1_ALLOW_422_PROBE bypass and the temporary cell driver were patch-run-restore and are not in this commit. The six committed 4:2:2 pins re-verify byte-exact (0 wrong samples on every plane of every frame, presented and decode order) with a per-cell oracle-byte flip control on each. 4 of the 12 previously-'exact' fresh cells were only ever measured by the retracted tautological counter; on the crate's own count_rawvideo_diffs, O_odd322x242 carries 1612 wrong presented samples. New coverage this round: odd width/height, tile columns alone, tile rows alone, 2x2 tiles at an odd geometry, screen content via --lossless=1, 40-frame alt-ref inter with warped motion and compound, and 4:2:0 controls at the same geometries. Result: 23/30 exact. Four cells at frame height 242 diverge, chroma-only, luma byte-exact, already differing at EC_AV1_PREFILT_DUMP (deblock, CDEF and LR exonerated). Three --lossless=1 4:2:2 cells panic at decode.rs:37565, where read_inter_chroma_lossless sizes its scratch by a square chroma side that a 4:2:2 4x8 plane block does not have. The retraction's premise is overturned: the odd-height 4:2:0 defect was fixed by lane-av1422chrtx, and 4:2:0 at 232/240/242/248 is exact here, so the 4:2:2 height-242 divergence is its own defect, not that one resurfacing. Recommendation: keep the refusal, for the 4/4 height-242 divergence and the 3/3 lossless panic rather than for the old coverage argument. The refusal string and header behaviour are unchanged.
Merge lane-av1gapremeasure: the odd-height cells are OPEN and reachable via ONE flag; the per-plane attribution of the shared comparator is brokenAhmet Kaan Gümüş · 52e14b7
Merge lane-av1gapremeasure: the odd-height cells are OPEN and reachable via ONE flag; the per-plane attribution of the shared comparator is broken Resolution of the contradicting measurements, and both sides were right: the single variable is aomenc's --end-usage=q. Without it (the encoder's DEFAULT rate mode, which ignores --cq-level: 8281 b/f vs 3393 b/f) the streams diverge; with it, or with --threads=1, or with --row-mt=0, they are exact. NOT the content (his webm demuxed and re-encoded with these flags is 0/0/0 in six arms) and NOT the remux (re-running his exact aomenc line with --obu -o file.obu is cmp-identical, same sha256). The default-end-usage recipe reproduces f0 16023 on 320x236 -- the same number I measured -- and f0 Y 2170 on 322x248, matching av1oddluma's recorded frame-0 count, so the entropy-fork narrowing stands. Re-measured family: 320x236 (16562 B sha256 84e4d1ab..) OPEN/reachable; 322x248 (16131 B sha256 9e8c9c6c..) OPEN/reachable; 320x232 (15773 B sha256 6832c3cd.. = the committed pin, byte-identical) CLOSED; 320x248 CLOSED; 324x236 CLOSED -- every cell with the +1 control. INSTRUMENT DEFECT FOUND (stream.rs:10424-10436): count_rawvideo_diffs attributes planes with ABSOLUTE, non-frame-scaled thresholds computed from the FIRST picture, so on a multi-frame stream every sample after frame 0's luma is counted as plane 2 -- which is why the diverging stream reports wrongV=330673 when V holds only 302080 bytes over 16 frames. Per-frame byte counts and frames_exact are sound (they sum to the reported total); ONLY the per-plane split is meaningless on multi-frame streams. Fix chartered to the same lane. Rest of the sweep: 12-bit decode CLOSED (7 pins, 27 dumps, 0 wrong), rect residual tables CLOSED (r512.obu 3/3 exact, and its recipe is the default-end-usage one so that row is not recipe-blind), SEG_LVL UNREACHABLE and the record CORRECT (census reproduces 162 seg-enabled frames; census control reports features 5/6/7 when enabled), the 4:4:4 64x64 sibling-DC row STALE.
lanes/av1gapremeasure: WITHDRAW the odd-height 'closed' row -- it was my recipeAhmet Kaan Gümüş · 167e8c7
lanes/av1gapremeasure: WITHDRAW the odd-height 'closed' row -- it was my recipe Cross-checked against Agent06-5's 320x236 fixture on the same comparator: my f0 diff (16023 bytes) equals Main's digit for digit, and both streams were measured in one run with a +1 flip control each. The variable is --end-usage=q, not the source, not the container round-trip and not threading: - his content + my flags: 0/0/0 16/16 in six arms; - his exact aomenc line with --obu output: cmp-IDENTICAL to his file, so the webm remux is byte-preserving; - his command + --threads=1 or + --row-mt=0: 16459 B, 0/0/0 16/16; - his command + --end-usage=q: 6787 B, 0/0/0 16/16 -- the defect disappears. aomenc's DEFAULT end-usage is the only configuration measured to reach it. Re-measured the family on that recipe: 320x236 (16562 B, sha256 84e4d1ab) and 322x248 (16131 B, sha256 9e8c9c6c, f0 Y 2170) are 0/16 frames exact -- OPEN; 320x232 (sha256 6832c3cd = the committed pin), 320x248 and 324x236 are 0/0/0 16/16 -- closed. Also records a defect in count_rawvideo_diffs: its plane split uses absolute thresholds, so on a multi-frame stream everything past frame 0's luma is attributed to V (it reported 330673 wrong V in a 302080-byte plane). Report only; no source change.
lane-av1labelspace: label-space class sweep done, and the two cells are reachable from aomenc's DEFAULT threaded encodeAhmet Kaan Gümüş · 052d1d3
lane-av1labelspace: label-space class sweep done, and the two cells are reachable from aomenc's DEFAULT threaded encode Class sweep over every env-gated rung that prints an mi coordinate: - Family A, the main partition walk (34933-35107): the one broken family. 32-level printed at32.0 * MI, 16-level printed at16.0 raw. Fixed in lane-av1partadvance; pixels did not move. - Family B, the rect partition walk (52346/52692/52836): PROVEN CORRECT. SB prints sb_r*16, 32 prints r32*8, 16 prints sr*4 -- all three carry the same *4 relative to their own at index, so one space. I had this down as un-audited last lane; it is clean. - Family C, twelve mi-printing rungs (OUR_PART, EC_LEAF, EC_RECT64TU, EC_INTRA128, EC_SPLITSTRIP, TRACE_RECT_COEFF x3, TRACE_RECT32_END, EC_HALV, TRACE_RECT64_END): PROVEN CORRECT structurally -- every one prints its mi position raw with no multiplier, one convention applied uniformly, so there is no sibling level to disagree with. - Pixel-space rungs (OUR_PRED, EC_MCPUSH, EC_OBMCREC) print pixels, a different quantity from an mi coordinate; right not to be in either space. No second instance of the bug exists. The bigger result: Agent08-2's 320x236 is exact on main and mine is not. Single variable experiment -- same source y4m, same flags except --threads=1 --row-mt=0 instead of --threads=8: --threads=8 16562 B Y 234349 U 56957 V 52981 0/16 exact --threads=1 row-mt=0 16459 B Y 0 U 0 V 0 16/16 exact Not tiles: both report cols=1 rows=1 uniform_spacing=true. aomenc threading changes RD decisions, not tiling, so it produces different content and THAT content walks the bug. So the defect is reachable from aomenc's DEFAULT configuration -- no --threads, no --row-mt=0 -- not a fixture artifact. Sparse and content-specific is still true, but the content is an ordinary multi-threaded encode. No gate committed: no decoder change in this lane. The anti-drift unit test Main asked for is NOT added and the gap is declared in the report, not buried -- it would need two rungs on a live stream plus an oracle comparison to mean anything, and the rungs already agree after the fix.
Merge lane-av1partadvance: the 16-level partition rung's LABEL was in a different label space (instrument fix)Ahmet Kaan Gümüş · e1c57ec
Merge lane-av1partadvance: the 16-level partition rung's LABEL was in a different label space (instrument fix) NOT a stride defect: the walk was already right. The 32-level rungs print at_mi * MI (r32 * BLOCK_MI), while the 16-level rungs printed their at_mi RAW -- the same walk, the same quantity, two label spaces 4x apart. lane-av1oddgolomb compared our TRACE partition_w16 mi=(0,1) against aomdec's EC_PART mi_row=0 mi_col=4 and read a 4x child-advance bug; it was an artifact of comparing across label spaces (the class this crate has been bitten by before). Fixed: the three 16-level rungs now print at16.0 * MI, at16.1 * MI. No walk change: sr/sc, at16, the bounds check (already using sr * SUB_MI), has_half(sc * SUB_MI, ..) and every decode_block call are untouched. Proof the fix moves ONLY the label: our label now equals the oracle's including the msac rng (mi_row=0 mi_col=4 bsize=6 ctx=0 rng=39176 both), and the pixels did not move -- I re-measured the divergence myself on this branch, byte for byte the same as main (o320x236.obu: f0 16023, f1 22751, f2 19846, f3 20473 differing bytes per frame, with the +1 control). Sweep extended to 51 cells: 49 / 51 exact. Every geometric hypothesis is now DEAD -- height 236 is not the trigger (318x236, 322x236, 324x236, 326x236, 330x236 all exact; only 320x236 fails), width 322 is not the trigger (322x232/236/240 exact; only 322x248 fails), and non-multiples of 8 are mostly exact. The two failures are SPARSE and CONTENT-SPECIFIC: two (width, height, content) triples of 51, with no geometric predicate separating them -- so the two cells are unexplained again, and that is the finding rather than a regression.
lane-av1partadvance: the 16-level partition rung's LABEL was in a different label space; the walk was rightAhmet Kaan Gümüş · f838878
lane-av1partadvance: the 16-level partition rung's LABEL was in a different label space; the walk was right Main was right to make me check the label before the decoder. It is a label defect. The 32-level arm prints its mi position as at32.0 * MI (r32 * BLOCK_MI, with at32.0 == r32 * 2). The 16-level arm, 130 lines down in the SAME walk, printed at16.0 raw -- same quantity, no * MI, so 4x smaller. Comparing 'partition_w16 mi=(0,1)' against aomdec's 'EC_PART mi_col=4' read as a child advance bug; it is two label spaces. Fix: let (lbl_r, lbl_c) = (at16.0 * MI, at16.1 * MI) on the three 16-level rungs. The walk -- sr/sc, at16, the bounds check, every decode_block call -- is untouched. Proof, independent of the trace: - Label now reads EC_PART mi_row=0 mi_col=4 bsize=6 ... rng=39176, matching aomdec's exactly including the msac rng. - Pixels byte-identical before and after: 320x236 Y234349/U56957/V52981 and 322x248 Y36286/U13359/V13001, both unchanged. A label fix moves the label and nothing else. So the mechanism I reported last lane DOES NOT EXIST, and that is the finding. The two cells are unexplained again: entropic fork at coefficient read 6 of frame 0, inside a V-plane 8x8 unit's sign/Golomb tail, with the walk, the partition values, the scan, the placement, all_zero, eob and every base ctx/level all verified equal to aomdec. Sweep: 51 cells now, 49 exact (27-cell core re-run unchanged at 25/27, plus 24 new cells all exact). Rate 2/51. The geometric hypothesis is dead -- 318x236, 324x236, 326x236, 330x236, 322x236 are all EXACT, and 318/322/324/ 326/330/236 are all non-multiples of 8. Sparse and content-specific. No gate committed: there is no decoder change to pin, and pinning an unexplained defect is what the ratchet pattern has been.
Merge lane-av1oddgolomb: candidate 1 REFUTED -- the fork points at the 32x32 SPLIT child advance (report only)Ahmet Kaan Gümüş · f7f488f
Merge lane-av1oddgolomb: candidate 1 REFUTED -- the fork points at the 32x32 SPLIT child advance (report only) The sign/Golomb tail I sent this lane to chase is a CONSEQUENCE, not the cause. Partition VALUES are identical on both sides (3, 3, 3, 0, 8, 2, 2, 3) and contexts agree, so the entropy decisions are right. What differs is the CHILD COORDINATE after step 3, a PARTITION_SPLIT at BLOCK_32X32: libaom's four 16x16 children sit at mi(0,0), mi(0,4), mi(4,0), mi(4,4) (16-px offsets) while our trace reads them at mi(0,0), mi(0,1), mi(1,0), mi(1,1). Step 8 still agrees (mi(0,8), the 32x32 sibling 32 px away), so the 32x32-level advance is CORRECT and only the 16x16-level advance is in question. Mechanism for the 312 bits: after our V-plane unit's eob=50 our trace goes straight to a dequant, a partition_w16 and an EC_PAL palette block with NO dc_sign/golomb for that unit, while libaom reads a full sign/Golomb tail for the same eob -- the two sides read different symbol streams from there on. Ruled out unchanged: walk order within a block, all_zero, eob, the scan, coefficient placement, base ctx/levels, every partition value. NO code change and NO gate committed: the lane declined to ratchet a mechanism it had not located in code, which is the right call. The line-level decision is the next lane's first task.
lanes/av1gapremeasure: the debt's remaining ec-av1 gap list, re-measured on mainAhmet Kaan Gümüş · 1129c84
lanes/av1gapremeasure: the debt's remaining ec-av1 gap list, re-measured on main 12-bit decode support, rect residual tables and the odd-height cells are CLOSED (0 wrong samples vs the instrumented aomdec on 27 + 9 + 80 frame-dumps, each with a one-flipped-oracle-byte +1 control). SEG_LVL is UNREACHABLE and the record is correct (census reproduces 162 seg-enabled frames, per-feature [96,0,0,0,0,0,0,0]; census control reports features 5/6/7 when enabled). The 12-bit allow_screen_content_tools refusal is OPEN but broader than its own string: lifted locally, 6 real aomenc 12-bit arms decode 0/0/0 2/2. Report only; no source change.
lane-av1oddgolomb: the fork is the partition walk's child advance after a 32x32 SPLIT; the sign/Golomb tail is a consequenceAhmet Kaan Gümüş · 46f2dab
lane-av1oddgolomb: the fork is the partition walk's child advance after a 32x32 SPLIT; the sign/Golomb tail is a consequence Candidate 1 is REFUTED. Oracle EC_TRACE partition symbols against our EC_AV1_TRACE, frame 0 of 320x236: step oracle value ours value 3 mi(0,0) bsize=9 (SPLIT) 3 partition_w32 mi=(0,0) 3 4 mi(0,0) bsize=6 0 partition_w16 mi=(0,0) 0 5 mi(0,4) bsize=6 8 partition_w16 mi=(0,1) 8 6 mi(4,0) bsize=6 2 partition_w16 mi=(1,0) 2 7 mi(4,4) bsize=6 2 partition_w16 mi=(1,1) 2 8 mi(0,8) bsize=9 3 partition_w32 mi=(0,8) 3 Every VALUE matches. Only the child COORDINATES differ, and only for the 16x16 children of a 32x32 SPLIT: libaom steps 16 px (4 mi), we step 4 px (1 mi), so our walk re-enters the interior of the leaf it just decoded and reads a PARTITION_HORZ_4 + a palette block that libaom never reads there. That is the 312 bits. The 32x32-level advance agrees (step 8), so the bug is one stride in one arm, not the whole walk. No decoder change; the tree matches 0224d10c. The exact line is NOT located and I did not edit blind -- the report names the arm and the deciding measurement (compare the SPLIT arm's stride against its HORZ/VERT siblings, which step correctly at the 32x32 level).
Merge lane-av1oddluma: the remaining two 4:2:0 cells are an ENTROPIC fork at read 6 (report only)Ahmet Kaan Gümüş · 9f86b7c
Merge lane-av1oddluma: the remaining two 4:2:0 cells are an ENTROPIC fork at read 6 (report only) Red-before with the live comparator and the +1 control (flipping oracle byte 0 moves Y by exactly +1 on both cells): 320x236 Y 234349 / U 56957 / V 52981, 0/16 frames exact, frame 0 Y 11198; 322x248 Y 36286 / U 13359 / V 13001, frame 0 Y 2170. Framing corrected: that is 15% and 2.7% of a frame, not whole-frame divergence -- sparse. Entropic, and pinned to a read: pairing EC_ECDUMP_IN by (value, range), reads 0-5 are identical with our constant +15 bit convention, and the offset BREAKS at read 6 -- inside the first TX_8X4 luma unit of the 8x8 block at mi (0,4), the unit right after the 16x16 block at mi(0,0). Our side consumes 312 extra bits inside that one unit. Ruled out WITH evidence, not assumption: block walk order (the 16x16 at mi(0,0) -> its U -> its V -> the next block at mi(0,4) matches the oracle's EC_ECDUMP mi/bc/br sequence); all_zero (1,1,1,0,0,0 both); eob (3, 50, 50 both); the scan table; the coefficient PLACEMENT (the oracle's positions transposed by (p%8)*8 + p/8 are EXACTLY ours); and the CDF row/context (c=48 ctx=22, c=46 ctx=21, c=42 ctx=21, c=38 ctx=22, c=49/47 level=1 all identical). Two candidates named for the deciding measurement, in order: the SIGN/GOLOMB TAIL of the V-plane 8x8 unit (eob=50 with mostly-zero base levels is tail-shaped, and 312 bits is tail-sized), else a unit count difference. No decoder change; the tree is byte-identical to 5b27ed79.
lane-av1oddluma: 320x236 / 322x248 are an entropic fork at coefficient read 6; narrowed, not fixedAhmet Kaan Gümüş · 5fad710
lane-av1oddluma: 320x236 / 322x248 are an entropic fork at coefficient read 6; narrowed, not fixed Not the tx_type class: both carry LUMA errors, which a chroma tx_type change cannot produce. Frame 0 (the keyframe) is already wrong in both, so no propagation, no MC, no loop filter. Divergence is entropic. Pairing EC_ECDUMP_IN by (value, range) on both sides, reads 0-5 are identical and read 6 differs (ours side=4 ctx=2 bit=1010; oracle TX_8X4 at plane 0 mi=(0,4) ctx=1 bit=683) -- 312 extra bits consumed inside one unit. Measured and ruled out: block walk order, all_zero (1,1,1,0,0,0), eob (3,50,50), the coefficient scan, the coefficient placement (the oracle's positions transpose exactly to ours under (p%8)*8 + p/8, and default_scan_gen is the documented row-major transcription of libaom's column-major table), and every base ctx/level on the read-5 unit. The deciding measurement is named in the report: diff the sign / post_golomb tail of the V-plane 8x8 unit (EC_COEFF_STEP tag=sign|post_golomb vs our TRACE dc_sign|golomb). If the first differing c is a Golomb-bits read the bug is in the b-plane Golomb context, not in any scan or table. The 'dimension not a multiple of 8' trigger is FALSE: 324 is 4 mod 8 and 324x240 is exact; 236 is 4 mod 8 and 320x236 fails. No geometric split in the data, so no trigger rule is claimed. No decoder change; the tree matches 5b27ed79.
ec-av1: bind the 10-bit film gate's pin names as literals so the fixture census can prove themAhmet Kaan Gümüş · 9714b2b
ec-av1: bind the 10-bit film gate's pin names as literals so the fixture census can prove them
lane-film10fix's decode-order gate built its pin name from a loop variable, so
`crate_pin(pin)` handed the helper a runtime string: the fixture-library census cannot
resolve it and invariant 4 reported the gate as UNPROVEN ('name built at runtime -- this
census cannot resolve it'), which turns the suite preflight RED on a tree whose tests all
pass. Same class as the earlier flags-built-by-format! blind spots: the gate is correct,
the CENSUS cannot see it.
Fix: the pin paths are bound once from literals into an array and the loop iterates that,
so the argument to crate_pin is a literal at the call site. `the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame`
still passes (1 passed), and invariant 4 no longer names it.Merge lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTXAhmet Kaan Gümüş · 1d5fb9c
Merge lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTX libaom (av1/common/blockd.h, quoted in the report): the chroma unit's tx_type is the SAME xd->tx_type_map cell the luma unit stamped (scaled by subsampling_x/y), then reduced by the INTER transform set -- and at 32 points that set is EXT_TX_SET_DCT_IDTX, whose name says it: DCT_DCT plus IDTX, so av1_ext_tx_used[DCT_IDTX][IDTX] is true and the luma's coded IDTX survives. The clamp to DCT_DCT is txsize_sqr_up_map[tx_size] > TX_32X32 (64 and up), NOT >= 32. Ours was a HARDCODED '32-point chroma is DCT_DCT' rule in read_plane and read_rect_chroma_unit, ordered BEFORE the armed intrabc_chroma_tx slot, so an intrabc block's inherited IDTX was never even consulted. read_inter_plane was already correct (reduce_inherited_chroma_tx_type's sqr_up == 32 arm IS libaom's inter set verbatim); only the two intrabc readers that go through read_plane / read_rect_chroma_unit were wrong. Both now resolve intra / inter-armed / size separately, so the only behaviour change is: a 32-point chroma unit of an intrabc block moves from DCT_DCT to IDTX, and only when the luma coded IDTX (the slot is armed exclusively under intrabc_dv.is_some(), both set sites verified). 64-point chroma still reduces to DctDct, intra chroma at 32+ untouched, sub-32 units byte-identical, lossless clamp untouched. Proof: 420_oddheight_320x232.obu U 5772/V 12086 -> 0/0/0, 16/16 frames exact; a fresh 320x248 U 14343/V 16310 -> 0/0/0; the 27-cell sweep goes 19 -> 25 exact (newly exact 320x232, 322x232, 324x232, 320x248, 324x240). The non-vacuity control is re-run AFTER the fix (flipping a real oracle byte moves the count by exactly +1 in the right plane and spoils exactly one frame), and the tripwire gate is FLIPPED as required: the_pinned_420_oddheight_witness_is_pinned_and_decodes_byte_exact asserts (0,0,0) with exact == frames, with a mutation proof (restoring DctDct reds it by name with left (0,200,17658) vs right (0,0,0)). Two cells still diverge with LUMA errors (320x236 Y 234349, 322x248 Y 36286) -- a separate, unlocalised mechanism, disclosed in the report's not_done rather than folded into this claim. Conflict resolution in stream.rs: lanes film10fix and chrtx both appended to the control area. Kept film10fix's ffmpeg-comparator control whole (ours), took chrtx's new count_rawvideo_diffs 3-arg call and its flipped gate, and repaired the doc comment the splice left describing the superseded ratchet.
lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTX; fix the tx_type clamp and flip the tripwireAhmet Kaan Gümüş · a3e343b
lane-av1422chrtx: a 32-point INTER chroma unit inherits the luma's IDTX; fix the tx_type clamp and flip the tripwire libaom's av1_get_ext_tx_set_type (blockd.h) resolves a 32-point chroma unit to EXT_TX_SET_DCT_IDTX when the block is_inter, and av1_get_tx_type's chroma branch reads the SAME xd->tx_type_map cell the luma unit stamped. So an Intra-Block-Copy block whose luma coded IDTX runs the IDENTITY transform on its chroma. read_plane and read_rect_chroma_unit both hardcoded '32-point chroma is DCT_DCT', reading libaom's clamp as tx_size_sqr_up >= TX_32X32 when it is txsize_sqr_up_map[tx_size] > TX_32X32 (64 and up). That arm ran before the armed intrabc_chroma_tx slot could, so the inherited IDTX was swallowed and a 32-point IDCT ran where libaom ran a plain copy of the dequantized coefficients >>2. Confined to 32-point chroma of an intrabc block whose luma coded IDTX: 64-point chroma still reduces to DctDct, intra chroma at 32+ is untouched, sub-32 units are byte-identical. - 320x232 and 320x248: 0/0/0 wrong, 16/16 frames exact each. - Comparator control re-run: a flipped oracle byte reports exactly +1 in the right plane and one fewer exact frame. - 27-cell sweep 19 -> 25 exact. 320x236 and 322x248 still fail, both with LUMA errors -- a separate odd-dimension defect, not claimed here. - 4:4:4 chroma-tx gates pass; scoped intrabc/chroma run 68 passed, 0 failed. - Ratchet flipped to exactness and renamed the_pinned_420_oddheight_witness_is_pinned_and_decodes_byte_exact; mutation proof reds with exactly the pre-fix (0, 200, 17658). - The old non-vacuity test relied on the witness differing and was vacuous once it was exact; replaced by the_counting_oracle_diff_detects_one_flipped_oracle_byte.
Merge lane-film10fix: the two 'pre-existing 10-bit film' divergences are ALREADY EXACT (report + two controls)Ahmet Kaan Gümüş · 60a0116
Merge lane-film10fix: the two 'pre-existing 10-bit film' divergences are ALREADY EXACT (report + two controls) Both charter-named cases measure 0 wrong on every plane on main: reelc_sb128_inter_witness.obu (177773 B, sha256 09d99594...) with 15 shown frames and 13/13 counters firing (warp_plane_suppress=15, cdef_idx=852, interintra_rect=118, obmc_edge_span=33, tr_reach_longer_side=600 ...), and gm_small_side_witness.obu (1158066 B, sha256 f1cdbcbb...) with 33 shown frames and 3/3 counters (gm_nontrans_small_side=1, tr_reach_longer_side=2295, uv_mode_grid_override=138). Both are also byte-exact against the instrumented aomdec on ALL 50 decode-order frames, including the one hidden frame each. The debt line was STALE: no lane report defers these to a '10-bit film round' -- the nearest record (lanes/av1444.report.md:251-269) says they FAILED at 1ad7e0fc/b9530604, were attributed to that lane's own record_uv_mode_mi change and were fixed there. Lands two controls the previous audit left as read-only: every_ffmpeg_comparator_reds_on_a_one_sample_wrong_ffmpeg (7 arms -- a PATH shim running the REAL ffmpeg and rotating one sample per plane, so the helpers are red on Y, U and V separately and a chroma-dropping helper cannot pass a luma-only arm; the ffmpeg half is exactly what both film gates rest on) and the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame. Report hygiene: the lane's JSON quoted tip sha 9944fa1b9c1c0b2e6b7e5b1e8f3d2a4c6b8e0f12, which does not exist -- the real tip is 9944fa1bd6cbf0c5906ad3f7eeeae5e4b3a09ba7 (correct prefix, invented tail). The other full shas quoted by lanes this wave were each verified to exist.
gate: the two "pre-existing 10-bit film" divergences are exact; control the ffmpeg comparator and the hidden frameAhmet Kaan Gümüş · e2357b9
gate: the two "pre-existing 10-bit film" divergences are exact; control the ffmpeg comparator and the hidden frame
Measured both charter-named 10-bit film cells on main (3f08ae3f) before
believing the debt line. Both are already exact, so there is no divergence to
localize and no mechanism to name:
a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_...
15 shown frames pixel-exact on every plane, 13/13 path counters fire
a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_...
33 shown frames pixel-exact on every plane, 3/3 counters fire
The debt line is stale. lanes/av1444.report.md:251-269 records the opposite:
those two gates FAILED at 1ad7e0fc / b9530604, were attributed to that lane's
own 4:4:4 record_uv_mode_mi change (class override-slot-on-one-arm), and were
fixed there. No lanes/ report defers these two cases to a 10-bit-film round.
Both film gates declare "pixel-exact on every plane" using nothing but
ffmpeg_decode_sequence_10bit's output. Verified live with a PATH shim that runs
the REAL ffmpeg and rotates exactly one byte of its rawvideo stdout, per
plane: 6 of 6 arms red (Y/U/V on both streams), each naming the tampered
plane. The comparators read the oracle.
Two real gaps closed instead.
1. every_ffmpeg_comparator_reds_on_a_one_sample_wrong_ffmpeg (7 arms).
lane-av1cmpaudit2 controlled the five aomdec comparators; the ffmpeg half --
the half both film gates rest on -- was audited by READING only. Reading
proves it is live today; only a deliberately wrong reference proves it can
FAIL. Adds a thread-local ffmpeg override (same shape and reason as the
existing set_oracle_path: a process-global PATH edit leaks the tampered
reference into sibling threads, and the crate denies unsafe_code) and
routes all three ffmpeg_decode_sequence* helpers through it.
arm 1, real ffmpeg: 8-bit 4:2:0, monochrome and the 10-bit film pin all
count zero. arm 2, one sample wrong PER PLANE: red on Y, U and V
separately, per helper. Per-plane rather than one arm because a helper that
dropped chroma would pass a luma-only arm and leave both film gates green
with chroma unchecked for 15 and 33 frames.
Mutations, both reverted: (a) revert ffmpeg_decode_sequence to the bare
"ffmpeg" -> "3 of 7 arms stayed GREEN, counted [0,0,0], expected [1,0,0]";
(b) make ffmpeg_decode_sequence_10bit return zeros for V -> "left:
[0, 0, 5702400], right: [0, 0, 0]" -- the retracted av1422remeasure defect
reproduced inside the 10-bit helper.
2. the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame.
Both film gates compare SHOWN frames only (ffmpeg emits shown frames only),
so 1 of 16 and 1 of 34 decode-order frames per stream sat outside every
gate -- class gate-blind-to-hidden-frames. Their doc comments claim the
hidden frames were compared byte-exact against aomdec; that measurement
lived in a lane report, so nothing re-ran it. This gate runs
decode_all_frames_vs_oracle on both pins and asserts the frame COUNTS
(16 = 15+1, 34 = 33+1) before the byte compare, so a stream that lost its
hidden ARF cannot make the compare cover less than it claims. Measured
exact: 50 decode-order frames, all three planes.
Mutation, reverted: one byte wrong in our EC_AV1_FINAL_DUMP write ->
"decode-order frame 0 of 16 differs from the oracle at byte 7 (ours 128
vs 0), 1 bytes differ".
Sweep on this branch, 11 cells, 0 regressed: both charter cells above, plus
frame_edge_mv_clamping (52 frames), rect64_corner_tus (33),
hidden_arf_split_superblock (37), intra_1to4_strips (127 strips),
film_grain (grain_hits=1), the monochrome gate, and both comparator
controls. cargo check -p ec-av1 --all-targets: 0 errors, 0 warnings.
not_done is in the report: the 8-bit reference helper's frame-size formula
(w*h + 2*(w*h/4)) is wrong for ODD dimensions -- 4:2:0 chroma on 65x65 is
ceil(65/2)^2, not 4225/4 -- but it fails loudly through frame_count_diagnosis,
so nothing is mis-gated, and the control uses 320x240 for that reason. No full
suite run (Main's job).Merge lane-av1422h232: the odd-height 4:2:0 divergence is a CHROMA TX-TYPE error, not geometry (report only)Ahmet Kaan Gümüş · 7430eb4
Merge lane-av1422h232: the odd-height 4:2:0 divergence is a CHROMA TX-TYPE error, not geometry (report only) Narrowed to a named mechanism with the deciding measurement: for an inter/intrabc block whose LUMA transform codes IDTX, our decoder resolves the 32-point CHROMA transform type to DctDct while libaom inherits the luma's IDTX (TX_TYPE 9). Coeffs are byte-identical -- aomdec EC_DQCOEFF plane=1 txsize=3 txtype=9 eob=7 nz=0:-105,32:-80,64:-60,96:-40 vs ours the same quantized -6,-4,-3,-2 at side=32 -- so only the transform differs, and the residual identity closes it: IDTX makes the oracle's row-96 residual exactly the dequantized coefficients >>2 (-105>>2=-26, -80>>2=-20, -60>>2=-15, -40>>2=-10) against a flat 202 prediction. Entropy is identical (EC_ECDUMP_IN plane=1 mi=(48,64) tx=3 is (19742,34733,25032) oracle vs (19742,34733,25047) ours, same msac state in and out; our ctx=2 vs oracle ctx=9 is the table's baked-in +7 chroma offset). Red-before on the pinned 420_oddheight_320x232.obu: Y 0, U 5772, V 12086, 0/16 frames exact; keyframe block is a 64x64 intrabc at (256,192) with chroma 32x32 at (128,96) clipped to 32x20 at the bottom edge, luma correct and chroma PREDICTION correct (aomdec reads the identical block: EC_ISTEP name=intrabc val=1, EC_DV dv_col=0 dv_row=-1344), so neither the copy nor the entropy is implicated. Non-vacuity control: flipping byte 0 / 90000 / 1781000 of the REAL oracle dump moves the count by exactly +1 in the right plane and frame. Sweep: 27 cells (widths 320/322/324 x heights 224..256) -- 19 PASS. The trigger is CONTENT, not geometry: an inter/intrabc block whose luma codes IDTX and whose chroma plane block reaches 32 points with a nonzero coefficient (every failing cell carries txtype=9 with the 0,1,2,...,5,32,33 nonzero index signature of an identity transform). No fix shipped: one deciding read of libaom's chroma tx-type resolution was left undone rather than guessing a bit-exact decoder.
lane-av1422h232: the 4:2:0 odd-height defect is an IDTX/DCT_DCT chroma tx_type loss at 32 points; report only, no fixAhmet Kaan Gümüş · 8de1682
lane-av1422h232: the 4:2:0 odd-height defect is an IDTX/DCT_DCT chroma tx_type loss at 32 points; report only, no fix Measured with a comparator that reads the oracle's bytes (one flipped oracle byte moves the wrong count by exactly +1, in the right plane and frame) on a frame-0 block that is a 64x64 Intra-Block-Copy at (256,192) with luma tx_type IDTX. Coefficients match aomdec exactly (eob=7, levels 6/4/3/2, msac state equal in and out), but aomdec's EC_DQCOEFF says txtype=9 (IDTX) for the 32-point chroma unit while we resolve DctDct. IDTX residual = the dequantized coefficients >>2, which reproduces the oracle's row 96 exactly (-105>>2=-26, -80>>2=-20, -60>>2=-15, -40>>2=-10). 27-cell sweep: 8 fail, and the rule is content, not geometry -- every failing cell carries txtype=9 32-point chroma units. 320x236's luma failure (234349 wrong Y) is a separate, unlocalised defect. No code change; the tree matches main. The ratchet gate must still be flipped to (0,0,0) by whoever lands the fix.
Merge lane-av1cmpaudit2: every oracle comparator is live, and a control test now guards the tautology classAhmet Kaan Gümüş · 1c33714
Merge lane-av1cmpaudit2: every oracle comparator is live, and a control test now guards the tautology class The class a lane fell into tonight (a counter that packed our decoded samples and compared them against the SAME samples while loading aomdec's output and never reading it, reporting 0 wrong on 18/18 cells) is now swept. Every comparator in the crate was audited by reading where it reads the oracle bytes and where it compares: assert_rawvideo_matches (5568/5588/5595), decode_all_frames_vs_oracle (10301/10302/10310), count_rawvideo_diffs (10369/10386), key_frame_diffs (48384/48398), oracle_plane_diffs (49440/49452), 13 inline oracle compares (7 rawvideo, 6 final-dump), encode.rs's ffmpeg_decode family, and the ec-vp8/ec-h264/ec-h265/ec-hw rawvideo gates are all LIVE. assert_final_dump_matches does not exist under any name. Per report: only av1422remeasure is TAUTOLOGICAL (already retracted); av1chromarect-r3, av1dcunit, av1ibcfork, av1loss444, av1txctxband and av1422anom are LIVE; av1sb128fork's §1 pixel table is UNKNOWN (names no comparator and commits no gate -- superseded by av1txctxband's live re-measurement of the same witness); av1ibcfork's by-hand §5/§7 numbers came from examples/decode_probe.rs, which has no oracle call -- a caveat its committed gates do not share. Lands one committed control: every_oracle_comparator_reds_on_a_one_byte_wrong_oracle, so the class cannot return silently. Verified here by mutation: making assert_rawvideo_matches compare ours against ours reds it (0 passed; 1 failed).
report: lane-av1cmpaudit2 audit of comparator-that-never-reads-the-oracleAhmet Kaan Gümüş · 0053620
report: lane-av1cmpaudit2 audit of comparator-that-never-reads-the-oracle Per-helper table (5 helpers + 13 inline gates in ec-av1, all LIVE), per-report table over 7 recent lane reports, one UNKNOWN (a removed, unpathed probe) whose headline is re-derived at 0 wrong of 2359296 with an independently written two-dump comparator, and the not_done list.
gate: control the class comparator-that-never-reads-the-oracle with a one-byte-wrong oracleAhmet Kaan Gümüş · ec9aa3f
gate: control the class comparator-that-never-reads-the-oracle with a one-byte-wrong oracle The retracted av1422remeasure per-cell counter packed our decoded samples and compared that buffer against the same samples: aomdec's output was written, length-checked, never read, and it reported '0 wrong on 18/18'. Nothing about that mistake is visible from outside a helper, so it cannot be caught by reading one. every_oracle_comparator_reds_on_a_one_byte_wrong_oracle pins it from the other side. aomdec_path() grows a thread-local override (same shape as the existing FINAL_DUMP_PREFIX, and thread-local because the crate denies unsafe_code and a process-global env var would leak one test's tampered oracle into every sibling's comparison). The test points the override at a shim that runs the REAL aomdec and rotates byte 7 of the --rawvideo output and of EC_AV1_FINAL_DUMP frame 0, then asserts, on the byte-exact 420_odd65x65_key pin: arm 1, real oracle -> all five comparators green arm 2, one-byte-wrong -> all five comparators red Control proof: mutating all five comparators to compare our buffer against itself (the retracted defect) makes arm 1 pass and the control report '5 of 5 stayed GREEN'. Four gates that reached the oracle without lock_gate_counters() now take it.
Merge lane-av1422anom: the '18/18 byte-exact' was a tautology, and the defect is an ordinary 4:2:0 odd-HEIGHT reconstruction errorAhmet Kaan Gümüş · 86e6457
Merge lane-av1422anom: the '18/18 byte-exact' was a tautology, and the defect is an ordinary 4:2:0 odd-HEIGHT reconstruction error RETRACTION (committed as lanes/av1422remeasure.RETRACTION.md): the previous lane's per-cell counter packed our decoded samples and compared that buffer against the SAME samples -- aomdec's output was loaded, length-checked and never read -- so its '0 wrong on 18/18 cells' was a tautology and is withdrawn. What survives: the six committed 4:2:2 pins ARE genuinely byte-exact (re-verified with a correct comparator), the twelve fresh 320x240 cells are exact, and the dc-sign finding is unaffected (it rested on rung counts, not on the broken counter). THE REAL FINDING, reachable today with no bypass and no refusal: ordinary 4:2:0 diverges at frame heights 232 and 248 -- 320x232 gives 17858 wrong chroma samples of 593920 in ALL 16 frames including the keyframe; 320x248 gives 30653; 320x240/242 and 322x242 are exact, so the passing heights are not the multiples of 8 (232 and 248 are both multiples of 8 and both fail). Byte-identical numbers on 6d564cd6 and 11d366b1, so not a lane-av1odd440 regression. Localized: the wrong region is present at EC_AV1_PREFILT_DUMP and unchanged through deblock/CDEF/LR (all three filters exonerated; a --enable-restoration=0 encode still fails), and it is in the KEYFRAME, so motion compensation is exonerated too -- the defect is in block reconstruction/residual/transform, interior, not an edge. The rung-vs-returned-picture contradiction of the previous lane is also resolved: decode_frame takes the dump prefix as a parameter and the rung IS built from the returned picture (0 of 17 frames differ between a capture inside decode_frame and at the caller), so the rung was never mis-timed; the old contradiction came from the broken counter. Committed: the pin 420_oddheight_320x232.obu (15773 B), a RUNNING-count gate that asserts the current defect state as a tripwire (it must be flipped to assert exactness when the fix lands), and the report.
Merge lane-av1ichromatx: close the last block-level chroma tx_type handoff in decode_inter_blockAhmet Kaan Gümüş · 909de54
Merge lane-av1ichromatx: close the last block-level chroma tx_type handoff in decode_inter_block The recorded defect (777/640/554 wrong V samples on the pinned 444_quad_leaf_tx_type witness) does NOT reproduce on main: 0 wrong on all four frames, byte-identical to the instrumented aomdec. The recorded numbers are the MUTATION red from lanes/av1444chr.report.md, not a live measurement, and both fix commits are ancestors (6c33f204 four-unit 4:4:4 arms; 2142d2cf read_inter_rect_chroma sibling). The three sites were relocated: A and B already resolve per unit; C (the whole-plane square chroma arm's Some(luma_tx_type)) is an IDENTITY, not a defect -- its single chroma unit reads the block's own MI (0,0) cell and luma_tx_type is leaves[0]'s coded type (41 reads, 0 differ). What lands: read_inter_rect_chroma's block-level FALLBACK -- the one live block-level handoff -- is closed with debug_assert!(leaf_tx_types.is_empty()) naming the defect shape, two counters, and a gate asserting multi_fallback >= 2 so the assertion cannot go vacuous. Mutation (forcing the covering-leaf resolve to miss) reds both the assertion and the gate; 0 occurrences of the bad shape across 90 streams (87 committed pins + 3 fresh server encodes).
lane-av1422anom: RETRACT the 18/18 exactness table from lane-av1422remeasure -- the counter compared our packing against itselfAhmet Kaan Gümüş · 1954346Browse files
lane-av1422anom: the odd-width 4:2:2 anomaly is a 4:2:0 odd-HEIGHT reconstruction defect; add a counting oracle diff, its non-vacuity test, and a pinned ratchet witnessAhmet Kaan Gümüş · 45881e7Browse files
ec-av1: close the last block-level chroma tx_type site in decode_inter_blockAhmet Kaan Gümüş · 4ebd218
ec-av1: close the last block-level chroma tx_type site in decode_inter_block
The recorded 4:4:4 lossy divergence (777/640/554 wrong V samples on frames
1/2/3 of fixtures/444_quad_leaf_tx_type.obu, sha256 a06c9f7a...) does NOT
reproduce on main: that stream is byte-identical to instrumented aomdec on
all four frames, before and after this change. Those numbers are the PRE-fix
figure from lanes/av1444chr.report.md; the fixes 6c33f204 (both four-unit
4:4:4 arms) and 2142d2cf (the read_inter_rect_chroma sibling) are already
ancestors of main.
Re-located by grep, the three block-level handoff shapes are: the four-unit
arm (per-unit since 6c33f204), the rect sibling's per-unit resolve (since
2142d2cf), and the whole-plane square arm, which is an IDENTITY -- its one
chroma unit reads the block's own MI (0,0) cell, and luma_tx_type is
leaves[0]'s coded type, measured at MI (0,0) in 15/15 vartx blocks.
What remained is the rect sibling's FALLBACK: the branch taken when no luma
leaf covers a unit's own cell. It fires 4x on the pinned rect witness, all on
a multi-unit chroma plane -- the shape where a block-level value could
mistype a unit. Every observed firing has an empty leaf list, i.e. a block
that coded a SINGLE luma transform whose stamp covers the whole plane, so the
fallback is correct there; the wrong shape is a fallback while leaves is
NON-empty. Measured over the 87 committed fixtures plus 3 fresh 4:4:4 lossy
streams: 0 occurrences. Closed with an assertion rather than a comment, plus
CHROMA_RECT_BLOCK_TX_FALLBACK{,_MULTI} and a gate that asserts the guarded
shape is reached (measured 4/4) so the assertion cannot go vacuous.
Red-before by mutation: forcing the covering-leaf resolve to miss on a
multi-unit plane turns the assertion red on the same witness --
"a multi-unit rect chroma plane fell back to the block-level tx_type while 5
luma leaves were coded". Reverted; green.
Neighbours re-quoted unchanged, all compared against instrumented aomdec:
the two four-unit gates (96 quad-resolved units, 8 differing; 88/96
single-reference), the rect-sibling gate (4 resolved, 2 differing), both
4:4:4-lossless gates, and per-frame byte comparison on 8 streams (4:4:4
quadrant, rect strip, two lossless 4:4:4, a 4:2:0 control, three fresh server
encodes) -- all EXACT, 0 wrong samples per frame. cargo check --all-targets
clean.Merge lane-av1422remeasure: the 4:2:2 refusal is no longer a correctness guard (18/18 reachable cells byte-exact, report only)Ahmet Kaan Gümüş · 59edf7d
Merge lane-av1422remeasure: the 4:2:2 refusal is no longer a correctness guard (18/18 reachable cells byte-exact, report only) Re-measured on main after lane-av1422warp (ebeac9c7) landed: every reachable 4:2:2 cell -- 6 already-committed pins plus freshly encoded testsrc2/mandelbrot cells at cpu-used 0 and 6 -- decodes BYTE-EXACT against the instrumented aomdec, 0 wrong samples on any plane of any frame (up to 16/16 frames exact, 614400 samples). The recorded blocker (the dc-sign rect-path desync) is fixed and no longer load-bearing. Recommendation: the refusal is not earning its keep as a correctness guard; keep it only as a named-cell guard for 12-bit 4:2:2, which the local aomenc cannot produce. The sequence-header refusal itself is NOT changed here -- that is a shipped-capability call. No source change: git diff main..HEAD -- crates/ is empty, and the EC_AV1_ALLOW_422_PROBE bypass was patch-run-restored, in no commit.
Merge lane-av1dcunit: the 2x1/1x2 rect tiled chroma walk must give each unit its OWN above-right reachAhmet Kaan Gümüş · 73a4a77
Merge lane-av1dcunit: the 2x1/1x2 rect tiled chroma walk must give each unit its OWN above-right reach The assigned defect was already fixed on main (chromadc, e05a6ceb/2c0fd2b9, merged 15 minutes after the report that spawned the ticket measured on the older base 5324a685), and the ticket's stated mechanism is wrong for that witness: an intra-BC block never goes through av1_predict_intra_block, so there is no per-unit DC and no per-unit above/left -- the prediction is ONE whole-plane-block motion copy (decodeframe.c:686-688, reconinter_template.inc:228 makes the reference the destination itself), which is exactly what the crate's whole-plane PALETTE_PRED override is. The class sweep then found the sibling cell genuinely broken: decode_rect_split's chroma walk handed EVERY unit the block-level reach, so a 2x1/1x2 grid's units resolved has_top_right over the block's extent instead of their own (reconintra.c:196/1847). Both call sites now pass cu_reach. Verified here by mutation: restoring the block reach reds the gate at frame 0 plane U sample 49374 (x=222,y=192), 130 samples wrong -- the lane's own numbers. Declared limit: the 1x2 palette gate stays GREEN under that mutation, so it does not bite on this substitution.
lane-av1422remeasure: record main's advance to 0ea32904 and re-verify the 4:2:2 gates on the merged tipAhmet Kaan Gümüş · cc6c623Browse files
merge main (0ea32904) into lane-av1422remeasure: re-verify the gates on the current tipAhmet Kaan Gümüş · 3c54aaaBrowse files
lane-av1422remeasure: report -- the 4:2:2 gap re-measured on 6d564cd6, 18/18 cells byte-exact, the dc-sign blocker line retiredAhmet Kaan Gümüş · f33df0aBrowse files
Merge lane-av1odd440: the odd-luma 4:2:0 cell DECODES pixel-exact, and the 4:4:0 cell is not codable at allAhmet Kaan Gümüş · ef95bea
Merge lane-av1odd440: the odd-luma 4:2:0 cell DECODES pixel-exact, and the 4:4:0 cell is not codable at all
Cell 1 (4:2:0 at an ODD luma dimension) is now producible without any encoder dependence:
crates/ec-av1/examples/gen_coverage_cells.rs builds a 65x65 key frame deterministically (two runs,
same sha256), pinned as 420_odd65x65_key.obu (2305 B, sha256 66986019...) and gated by
an_odd_luma_420_key_frame_decodes_pixel_exact -- byte-identical to the instrumented aomdec (6403 raw
bytes both sides), with the gate also asserting the pin's OWN sequence header (max_frame 65x65,
subsampling (1,1)) and the decoded 65x65/33x33 extents so it cannot pass on the wrong stream.
Cell 2 (4:4:0, ss (0,1)) is proved NOT to be a codable chroma shape at all, three independent ways:
the writer sweep (180 profile/depth/mono/colour/shape combinations; the reachable set is exactly
{(1,1),(1,0),(0,0)} and an (0,0) and a (0,1) request write BYTE-IDENTICAL headers), the reader sweep
(the payload byte carrying subsampling_x is located by diffing an (0,0) against an (1,0) header and
all 256 of its values are read back -- not one parses as (0,1), with a nonzero parsed count asserted
so an empty sweep cannot pass), and the pin itself reading back (1,0). The 4:2:2 refusal string is
corrected to say 4:4:0 cannot arrive either, in both refusal-inventory copies.
Mutations: flooring round_ss to dim >> ss reds the odd-luma gate (left (1024,1024) vs right
(1089,1089), 6273 vs 6403 raw bytes); forcing the reader to read a subsampling_y bit and forcing the
writer to emit one each red the 4:4:0 gate. 155 scoped tests green.lane-av1dcunit: record that scripts/pin-gate-audit.py cannot see this gate familyAhmet Kaan Gümüş · d06d31f
lane-av1dcunit: record that scripts/pin-gate-audit.py cannot see this gate family
The audit recovers a pin name only from a literal "/fixtures/..." string, a
crate_pin("X")/pin_dir().join("X") call, or a 3+-item list. The whole r512
family (both pre-existing gates and this lane's two) builds its path as
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(format!("fixtures/{FILE}"))
off a const FILE, so the audit reports total=9/22 names, uncommitted=0 and
exits 0 -- a true pass for what it inspects and a silent gap for this family.
Recorded as not-done item 6 rather than fixed: widening the detector is its
own change with its own self-test (see scripts/pin-gate-audit.py's
raw-string/embedded-source self-test, lane-av1pinselftest) and belongs in a
lane that owns the audit. The fnv1a64 asserts in both new gates are the real
pin check and they do execute.ec-av1: the odd-luma cell DECODES and the 4:4:0 cell does not existAhmet Kaan Gümüş · 8ee7a88
ec-av1: the odd-luma cell DECODES and the 4:4:0 cell does not exist
Two coverage cells `lanes/av1formatsweep.report.md` left as declared debt,
because no encoder emits either. One is a decoder capability and is now
gated; the other is not a cell at all.
4:2:0 with an ODD luma dimension (`420_odd65x65_key.obu`, 2305 B, sha256
6698601...): aomenc rounds the coded size down to even, so the stream is
built offline by the new `examples/gen_coverage_cells.rs` through a new
`encode::encode_key_frame_at_size` -- a 96x96 card on the block grid with
a 65x65 frame header. It DECODES: 6403 raw bytes, byte-identical to the
instrumented aomdec (65*65 + 2*33*33, `ROUND_POWER_OF_TWO(65,1) = 33`).
Gate `an_odd_luma_420_key_frame_decodes_pixel_exact`; measured red-before
with `round_ss` floored: chroma 1024 vs 1089 samples, raw 6273 vs 6403.
The fixture also closed a defect the tree had documented and deferred:
`ref_chroma_shape`'s 4:2:0 arm was a `(w/2, h/2)` floor where the producer
stores `round_ss(w,1) x round_ss(h,1)`, under-declaring every
odd-dimension 4:2:0 reference. Now the producer's own crop; red-before
measured on the existing routing test (2x3: left (1,1) right (1,2)); even
sizes unchanged.
4:4:0 (ss 0,1): NOT CODABLE. Spec 5.5.2 codes `subsampling_y` only when
`subsampling_x` is 1, so the reachable set is exactly {(1,1),(1,0),(0,0)}
-- libaom's reader leaves `subsampling_y = 0` at sx=0
(av1/decoder/decodeframe.c:4171-4175) and its writer asserts
`"4:4:0 subsampling not allowed in AV1"` (av1/encoder/bitstream.c:2466).
Gate `the_440_cell_is_not_a_codable_chroma_shape` proves it in three arms
(reachable-shape sweep, all 256 values of the byte carrying
`subsampling_x`, and the pinned bytes), each with a measured mutation; the
pin `440_request_is_422.obu` is what the writer emits when HANDED (0,1)
-- it lands on (1,0) and still refuses by name. The 4:2:2 refusal string
and both inventory copies now say 4:4:0 cannot arrive either.4:4:4 2x1/1x2 chroma grids: each unit takes its OWN above-right reachAhmet Kaan Gümüş · e4e6f93
4:4:4 2x1/1x2 chroma grids: each unit takes its OWN above-right reach
The ticket's headline defect -- a 4:4:4 64x64 square block whose 64x64 chroma
plane block is a 2x2 Chroma32 grid, second unit reconstructing its sibling's
flat DC -- was ALREADY FIXED on main by e05a6ceb ("4:4:4 2x2 chroma walk: window
the intra-BC/palette override per unit", merged 2c0fd2b9 at 02:12), 15 minutes
AFTER lanes/av1chromarect-r2.report.md was merged with numbers measured on the
older base 5324a685. `git merge-base --is-ancestor e05a6ceb 5324a685` is false.
This commit does not redo that fix; it re-measures it (below) and fixes the one
cell of the class sweep that was still broken.
Also: the ticket's stated mechanism is wrong for this witness. The seed is
skip=1 on an INTRA-BC block, and libaom never sends an intra-BC block through
av1_predict_intra_block at all. decodeframe.c:1146 folds is_intrabc_block into
inter_block_tx; decodeframe.c:847 predict_inter_block -> :676
dec_build_inter_predictor calls dec_build_inter_predictors ONCE per plane with
bw = xd->plane[plane].width (decodeframe.c:686-688), i.e. the whole chroma
plane block, and reconinter_template.inc:228 makes the intra-BC reference the
destination buffer itself. So the prediction is one whole-plane-block motion
copy with no per-unit DC and no per-unit above/left; the units are then
reconstructed in place on top of it. The crate's whole-plane-block PALETTE_PRED
override IS that copy, and PlaneBuf::reconstruct (decode.rs:20939/21087) uses
the buffer it is handed as the UNIT's own chroma_tx x chroma_tx_h prediction --
which is what e05a6ceb's chroma_window fixes.
RE-MEASURED HERE (mutation M1: chroma_window back to the whole buffer, gate
a_444_skipped_64x64_square_block_windows_its_chroma_override_per_unit):
test result: FAILED. 0 passed; 1 failed
frame 0 plane U first divergence at sample 229728 of 262144 (x=352, y=448),
7488 samples wrong
f0 Y 0 | U 7488 | V 8128 f1 Y 0 | U 22571 | V 41782
f2 Y 0 | U 0 | V 0 total 79969 of 2359296
seed [320,384)x[448,512) U 864/2048 V 1024/2048 first (352,448)
victim [448,512)x[448,512) U 4096/4096 V 4096/4096 first (448,448)
f0 U y=448, x=320..512 step 16:
oracle 241 239 202 202 202 202 203 165 166 166 166 166
ours 241 239 241 239 202 202 202 202 175 175 171 171
AFTER the fix: 0 wrong on Y, U and V of all three frames, 0 of 2359296, and
0 in all three named regions. Pin unchanged, already committed:
fixtures/r512.obu, 6948 B, sha256 f587f0f980f149abce905e3ef66f2f1634f050c854
30626eafb9c30a1e25bc21.
(Correction to the ticket: [384,448)x[448,512) is NOT a clean control under
this defect -- 1664 U and 1984 V wrong, first (416,448). What r2 measured was
that its EDGE samples are all ~202, so any DC rule reproduces it; its pixels
still move because an intra-BC block's reference is the current frame's own
reconstruction.)
THE CLASS SWEEP, and the cell this commit fixes. Three sites walk a 4:4:4
chroma plane block as Chroma32 units:
1 decode_block skip arm (21897) 2x2 window: chroma_window (e05a6ceb) reach: tu_reach_rect OK
2 decode_block coded arm (22182) 2x2 window: palette_window reach: tu_reach_rect OK
3 decode_rect_split (12721) 2x1/1x2/2x2 window: palette_window reach: BLOCK reach <-- WRONG
Sites 1 and 2 can never be 2x1/1x2: a square luma block has
chroma_side == chroma_height at every supported subsampling and chroma_tx ==
chroma_tx_h, so cn_cols == cn_rows always. A 2x1/1x2 needs a rect luma block,
which only site 3 walks -- and it passed the BLOCK reach to every unit.
libaom resolves has_top_right PER TRANSFORM UNIT (defined reconintra.c:196,
called from av1_build_intra_predictors at reconintra.c:1847 with the chroma txb
walk's own blk_col/blk_row). The row_off == 0 arm is
`col_off + top_right_count_unit < plane_bw_unit`, so the FIRST unit of a 2-wide
grid reads its above-right out of the already-reconstructed block ABOVE even
when the block's own right edge is the frame's. PlaneBuf::edges (decode.rs:
20840) truncates the above row at own_across when above_right is false, so a
directional unit with angle < 90 (need_right, intra.rs:546) predicted from a
32-sample above row where libaom used 64.
NEW WITNESS fixtures/r512_rect2x1_1x2_444.obu, 2697 B, sha256 a009ec580a1ff
24250be53e11b8d09616da71e095cefd5eb621c941d40a8688b (recipe in the gate's doc
comment): 4:4:4 8-bit 256x256, one key frame, reaching BOTH shapes -- a 64x32
chroma plane block as nw=2 nh=1 of 32x32 and a 32x64 one as nw=1 nh=2.
RED-BEFORE, per plane, own compare script over EC_AV1_FINAL_DUMP:
f0 Y 0 wrong U 130 wrong V 30 wrong (of 65536 per plane)
All 160 sit in the right 6 columns of the cu=(0,0) unit at mi=(48,48)
px=(192,192). Oracle vs ours for that unit:
EC_PRED mi_row=48 mi_col=48 plane=1 row_off=0 col_off=0 txw=32 txh=32
mode=1 p_angle=84 n_top=32 n_left=32 n_tr=32 n_bl=-1 bsize=11
EC_PREDOUT8 sum=172662 row0=179,185,190,195,197,198,197,194
OUR_PRED sum=171512 row0=[179,185,190,195,197,198,197,194]
row0 and col0 match exactly and only the SUM differs, so the residual read is
bit-identical and the divergence is prediction-side, not entropy. Same 130/30
wrong in the oracle's EC_AV1_PREFILT_DUMP as in EC_AV1_FINAL_DUMP, so it is
pre-loop-filter. The U per-column delta -1,-5,-9,-14,-18,-19 grows rightward,
which is a directional prediction reaching further right as it goes.
THE FIX: one expression, both unit readers in that walk (the square read_plane
and the rect push_intra_rect) get the unit's own reach, from the crate's
EXISTING per-unit port -- the same call sites 1 and 2 already use:
let cu_reach = tu_reach_rect(bw, bh,
(cu_col * uw) << ss_x(fctx), (cu_row * uh) << ss_y(fctx),
uw << ss_x(fctx), uh << ss_y(fctx),
reach, px, py, y.width, y.height, fctx);
AFTER: 0 wrong on all three planes.
GATES, both aomdec-oracle with no silent skip, counters asserted before a
single sample is compared:
a_444_rect_strip_chroma_tiled_2x1_and_1x2_units_take_their_own_above_right_reach
asserts >= 4 units in a 2x1 grid AND >= 4 in a 1x2 grid, >= 1 unit whose
per-unit reach differs from the block's, then full byte-exactness of all
three planes. Pin fnv1a64 0x2751ccaa079cc422.
a_444_rect_strip_chroma_tiled_1x2_palette_grid_decodes_byte_exact
the UV-PALETTE cell lanes/av1chromadc.report.md section 5 left explicitly
UNMEASURED ("its arm of the sweep is argued from the shared code path, not
witnessed"). Pin fixtures/r512_rect1x2_444_palette.obu, 2250 B, sha256
fad03c69087f316c1a117e8d8a70769d161b332bce7b2998e646312bb78fb067, which
puts a UV-palette block on a 1x2 16x64 chroma grid at mi=(32,12).
MUTATION: M1, both readers back to the block reach -- RED at sample 49374
(x=222, y=192), 130 samples wrong. M2, cu_col/cu_row transposed -- GREEN, and
that is a real limit of the gate, not a pass: this witness's second/bottom
units sit flush against the frame edge, so the Reach clamp truncates the extra
reach back to nothing. The gates pin the reach VALUE, not the offset spelling;
no claim is made about the spelling.
CLASS SWEEP, all 19 set_palette_pred sites: every one is already windowed per
unit (12633, 12784, 16685, 16955, 21953/21975) or is a genuine single-unit read
where the whole buffer IS the window (decode_block_rect 15378/15396/15559/15607,
decode_leaf_rect 15996/16014/16175/16220, decode_block_rect4 16825/16859 which
loops PLANES of a 4x4 block). The one unwindowed site inside a unit loop,
decode.rs:12525's 4:2:2 (4,8) units, is unreachable -- both
chroma_422_pair_wide and chroma_422_oob require ss_x == 1 && ss_y == 0, the
4:2:2 that stream.rs:1783 refuses by name.
RE-QUOTES. cargo check -p ec-av1 --all-targets: 0 errors, 0 warnings.
a_444 lossless_444 intrabc_rect 444_lossless 420_intrabc_rect4
ok. 39 passed; 0 failed; 0 ignored (4:4:4-lossless, intrabc_rect, 4:2:0 twin)
rect intrabc ibc chroma 444 420 subsampl, once per tree, private target dir:
base 70ed5601 (detached) ok. 145 passed; 0 failed; 5 ignored; 623 filtered out
this tip ok. 147 passed; 0 failed; 5 ignored; 623 filtered out
The delta is exactly these two gates (775 tests on both trees by --list). No
test renamed, dropped or newly ignored; no floor lowered anywhere.
Report: lanes/av1dcunit.report.md. NOT DONE is listed there in six items, the
first being that the 2x1/1x2 offset spelling is unproven (M2).Merge lane-av1chromarect-r3: the 4:4:4 intra-BC rect-strip chroma residual is ALREADY ZERO on main (report only)Ahmet Kaan Gümüş · a305a21
Merge lane-av1chromarect-r3: the 4:4:4 intra-BC rect-strip chroma residual is ALREADY ZERO on main (report only) Measured before any change on 70ed5601: 0 wrong of 2,359,296 samples (Y/U/V x 3 frames), with the engagement counters proving the decode reached the arms it measures - IBC_OWNED_RECT 5 strip hits and 24 windowed chroma override units. The ticket's residual (f0 U 7488 / V 8128, f1 U 22571 / V 41782, total 79969, first divergence at x=352,y=448 and x=168,y=128) is REPRODUCED DIGIT FOR DIGIT by a one-line mutation (chroma_window's single-unit early return forced to take the whole override buffer, the pre-chromadc shape), which is what makes the zero a measurement and not a vacuous pass. Floors were already at full byte-exactness ([[262144;3];3]) and this branch changed no floor.
lanes/av1chromarect-r3: the r512.obu chroma residual is 0 on main, proven by mutationAhmet Kaan Gümüş · a4c0560
lanes/av1chromarect-r3: the r512.obu chroma residual is 0 on main, proven by mutation The ticket asked for a re-measurement before any change. On main 70ed5601, a temporary per-(frame, plane) wrong-sample counter over fixtures/r512.obu (512x512 8-bit 4:4:4, three frames, instrumented aomdec EC_AV1_FINAL_DUMP vs set_final_dump_prefix) reads 0 wrong of 2359296, with IBC_OWNED_RECT_CHROMA_FOOTPRINT_444_HITS = 5 and SKIP_CHROMA_OVERRIDE_WINDOW_HITS = 24 on the same decode. The 0 is not a blind compare: putting decode_block's pre-lane-av1chromadc chroma_window shape back (one line, the single-unit early return made unconditional, so every chroma unit takes the whole override buffer) reproduces the ticket's numbers digit for digit -- f0 U 7488 / V 8128 first at 229728 (x=352, y=448), f1 U 22571 / V 41782 first at 65704 (x=168, y=128), 79969 total -- and reds both committed gates. The residual was closed by 2c0fd2b9 (windowed per-unit chroma override), not by lane-av1ibcfork's footprint correction; the mutation places all 79969 in chroma_window. No decode-path change. Gate floors untouched: the strip gate's EXACT_PREFIX is already [[262144; 3]; 3], full byte-exactness, and the mutation message quoting "the exact prefix this gate pins is 262144" is the proof.
2026-09-29
Merge lane-av1txctxband: get_tx_size_context must read the block covering the ABUTTING CELL, not the last block written in the columnAhmet Kaan Gümüş · 91004d1
Merge lane-av1txctxband: get_tx_size_context must read the block covering the ABUTTING CELL, not the last block written in the column The sb128 4:4:4 fork was a stale per-COLUMN band: above_inter/left_inter and above_side_mi/ left_side_mi are indexed by a bare mi column, so they hold the LAST block written in that column - the covering block only for the block directly below/right of that writer. libaom reads xd->mi[-stride] / xd->mi[-1], i.e. the block COVERING the abutting cell (setup_mbs writes the block's own bmi pointer into every mi cell it covers), which is what EC_TXCTXB showed: the is_inter BOOLEANS agreed, the stale term was the SIZE (band 4 vs the covering 8x4 leaf's own 8), resolving above = (4>=8) = 0 where libaom keeps (8>=8) = 1 and putting the read on tx_size_cat0[1] instead of row 2 - so the fork read's cdf0 was 6424 where the oracle's was 19938. Fix: Neighbours::inter_grid, a per-4x4-mi-cell is_inter of the COVERING block (same padded shape as blk_grid), written by exactly the three call sites that already published the bands, with the covering block's size taken from blk_grid's existing per-mi BlkCell::dim (no new size array). Witness committed as a pin (444_lossy_sb128_txctx_witness.obu, 6186 B, sha256 14acb74e...) with red-before recorded (Y 841 / U 1295 / V 1372 of 65536 at frame 0) and the counter naming the one differing read (the 8x4 intra leaf at mi(57,52), ladder read 32813).
ec-av1: lane-av1txctxband -- get_tx_size_context must read the block covering the ABUTTING CELL, not the last block written in the columnAhmet Kaan Gümüş · 366e4bc
ec-av1: lane-av1txctxband -- get_tx_size_context must read the block covering the ABUTTING CELL, not the last block written in the column
libaom's get_tx_size_context (pred_common.h:361-370) gates its inter-neighbour
override on xd->above_mbmi / xd->left_mbmi, which set_mi_offsets takes as
xd->mi[-mi_stride] / xd->mi[-1] (av1_common_int.h:1381-1389); setup_mbs
(decodeframe.c:355-361) writes the covering block's own MB_MODE_INFO pointer
into EVERY mi cell the block covers, so the granularity is the covering block
PER CELL. This decoder read the per-COLUMN above_inter/left_inter bands and
the per-column above_side_mi/left_side_mi bands -- the last block written in
that column, which names the abutting block only for the block directly below
it.
On a 4:4:4 lossy --sb-size=128 cq-62 256x256 stream the 8x4 intra leaf at
mi(57,52) read a stale above_inter=true with above_side=4 while the covering
block of cell (56,52) is 8 px wide, so the override fired with 4, above came
out 0 where libaom keeps 1, ctx came out 1 instead of 2, and tx_size_cat0[1]
was read where libaom reads row 2 -- the EC_SYMR fork at read 32813
(identical pre-state (7550,45492), identical n=2 s=1, only cdf0 differing:
ours 6424 -> 26384 vs oracle 19938, so not even the ICDF mirror convention).
New Neighbours::inter_grid (per 4x4 mi cell) carries is_inter_block of the
covering block, written by exactly the three places that already wrote the
bands: record_inter_rect_mi, record_intrabc_mi_rect, and fill_lf_grid_rect's
intra-only clear. The covering block's own size comes from blk_grid's existing
per-mi BlkCell::dim, so no new size array. Both readers
(tx_size_context_txfm_rect and tx_size_context_txfm) gate and size the
override from inter_at(mi_r-1, mi_c) / inter_at(mi_r, mi_c-1) and
blk_side_at(..); the TXFM_CONTEXT bands and the tile-border guards are
untouched.
red-before (unpatched a1f818a9): frame 0 Y 841 / U 1295 / V 1372 of 65536,
frame 1 Y 56986 / U 55974 / V 56442; EC_SYMR 41245 vs 37229 reads, fork
at 32813
green: 0/0/0 on both frames; EC_SYMR 37229/37229 with ZERO divergence over
the whole stream
class sweep: 99 cells of 4:4:4 lossy --sb-size=128 (10 sources x cq
30..62) all EXACT-ENTROPY; 12 of them forked before and 4 of those also
exited non-zero
new pin 444_lossy_sb128_txctx_witness.obu (6186 B, sha256 14acb74e...) and
gate a_444_lossy_sb128_txctx_reads_the_covering_block_per_cell, whose
non-vacuity arm is TXCTX_INTER_CELL_BAND_DIVERGENCE_HITS (reads whose
RESOLVED term differs between the two models): green 1, and RED on the
band-revert mutation. The counter counts resolved terms, not booleans --
on this stream the two is_inter booleans agree and the SIZE term is what
is stale.
neighbours re-quoted: 44 passed (444_lossy/444_rect/444_intrabc_rect4/
ll444/lossless/intrabc_rect), 43 passed 2 pre-existing ignored
(420/sb128/tile_rows/tilerows/intrabc/av1real_aomenc)
Named, not swept: av1_get_intra_inter_context and the ref_ctx family read the
same per-column is_inter bands and share the granularity hazard; nothing
observed them here. txfm_partition_context reads only the TXFM bands and is
correct as it stands.
scripts/fixture-library.tsv NOT regenerated: it records a file:line for every
fixture reference in the crate, so regenerating it in a feature lane produces a
501-line diff that collides with every sibling touching decode.rs/stream.rs. It
belongs to the post-wave merge (the row it yields is in the report).Merge lane-av1sb128fork: the sb128 inter fork is a CDF-ROW error, not var-tx enumeration (report only)Ahmet Kaan Gümüş · 70029b6
Merge lane-av1sb128fork: the sb128 inter fork is a CDF-ROW error, not var-tx enumeration (report only) The ticket's hypothesis is refuted with the actual entries: the var-tx leaf lists in the forking frame are IDENTICAL - no missing leaf, no differently-sized leaf - and the 89-vs-12 whole-stream count is entirely post-fork damage in frame 1. The fork read (index 32813, frame 0, the KEY frame) has an identical pre-state (7550,45492), identical width n=2 and identical symbol s=1, with ONLY cdf0 differing (ours 6424, oracle 19938) - a pure CONTEXT error, and the mirrored-row check (32768-6424 = 26344 != 19938) rules out the ICDF convention as the explanation. The oracle's site is decodeframe.c:1106 read_selected_tx_size; ours reads a different CDF row, i.e. a stale mi-granular above_inter band in get_tx_size_context. The first PARTITION divergence is at mi(56,54) and sits AFTER the fork, so it too is damage.
lanes/av1sb128fork: the 4:4:4 lossy --sb-size=128 fork is a get_tx_size_context leak, not a var-tx leaf-list differenceAhmet Kaan Gümüş · 622a82a
lanes/av1sb128fork: the 4:4:4 lossy --sb-size=128 fork is a get_tx_size_context leak, not a var-tx leaf-list difference Reproduced on a 256x256 4:4:4 cq62 --sb-size=128 stream: EC_SYMR agrees for 32813 reads, then forks at read 32813 with the IDENTICAL pre-state (7550,45492) and the IDENTICAL width/value (n=2 s=1) -- only the CDF row differs (ours cdf0=6424 -> 26384, oracle 19938). The oracle's site is decodeframe.c:1106 (read_selected_tx_size), so the class is a get_tx_size_context row error. Measurement (1) kills the var-tx hypothesis: in the frame that forks (the KEY frame) each side reads exactly ONE txfm_partition symbol and they are the same read (mi=(56,52) ctx=19 s=0). The 89-vs-12 whole-stream split-read gap is 88 post-fork reads in frame 1. Measurement (2): the EC_PART trees for SB(1,1) agree on every paired read; the first value divergence is after the fork. The one differing entry: at the 8x4 intra leaf mi(57,52) the oracle's ctx is 2 and ours is 1, because our mi-granular above_inter band is true there with above_side=4 while libaom's is_inter_block(above_mbmi) is false. Confirmed the read is tx_size_cat0[1] by table address, not inference. Report only: no decode change, no fixture, no gate. The remaining deciding measurement (which write leaves above_inter[52] true at mi row 56) is named, and the ticket's n=7-vs-n=6 observation is explicitly not reproduced.
Merge lane-av1ibcfork (rebased): the per-unit bit-interval ladder and a second 4:4:4 intra-BC witnessAhmet Kaan Gümüş · cddb302
Merge lane-av1ibcfork (rebased): the per-unit bit-interval ladder and a second 4:4:4 intra-BC witness Resolution, stated: main's chromarect version of the fix SUBSUMES this lane's scoped one and main's is kept - scoping the ss correction to the skip arm alone would have left a known-wrong shape in the arm that actually reads coefficients. What lands here is the INSTRUMENT: EC_UNITIV_IN/_SKIP/_END (the field-for-field twin of the oracle's EC_ECDUMP rungs, both coefficient readers and both exits), EC_MCWR/EC_MCPUSH (the MC write origin and push site - the intra side had EC_PRED but the MC write path had no rung at all, which is why a region with a byte-identical prediction and different committed samples was unattributable), SymbolDecoder::symr_mi(), and a SECOND witness gate. Two corrections against the ticket: the '~1069 fewer all_zero reads' does not exist (real reads, both sides filtered: ours 512 vs oracle 513; the rungs fire 2395/side but 1883 of ours consume zero bits, and the earlier round filtered one side only), and the claimed independent residual tail at (416,192) was a consequence of the same wrong-place write - the witness is now 0/307200 on all three planes. The new gate asserts FULL exactness (no prefix floor) with the 4:2:0 twin byte-exact as its own control, and a mutation to the halving reds it at (160,80) - the same coordinate measured by hand before the gate existed.