Commits
Commits on
052d1d3f81ff6b9e7c09b93b58c5e772d825fcb3Filtered to crates/ec-av1/src/stream.rsClear filter2026-09-30
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.
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).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: 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-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.
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).2026-09-29
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).av1: the per-unit bit-interval ladder, and the second 4:4:4 intra-BC witness at full exactnessAhmet Kaan Gümüş · a4597ea
av1: the per-unit bit-interval ladder, and the second 4:4:4 intra-BC witness at full exactness The 4:4:4 intra-BC chroma fork at mi (20,40) is NOT an entropy fork, and the count asymmetry that named it does not exist. Re-measured on 444_intrabc_rect4_witness.obu with a per-unit BIT-INTERVAL ladder against the oracle's EC_ECDUMP_IN/_OUT/_END: 512 real txb_skip reads against the oracle's 513, not the ~1069 fewer an earlier round reported (that figure counted the 1883 zero-bit reads the rung fires for, and filtered one side only). Every one of the 2365 in-stream units agrees on entry, post-txb_skip AND end-of-unit position at a MEASURED constant offset of +14 bits; all_zero agrees on all 2395. The 30 tail mismatches are end-of-buffer padding, not a fork. There is no first divergent symbol, because there is no divergence in the coefficient ladder. What the ladder ruled out is the finding. With entropy excluded and the filters exonerated (oracle PREFILT == oracle FINAL on all three planes), the fork was a wrong-PLACE write: our PREDICTION at the first divergent sample was byte-identical to the oracle's (sum 26258 both, same first row), so the defect had to be a later different write -- and the MC/inter write path had no rung to say so. Hence EC_MCWR (the write's origin and shape) and EC_MCPUSH (the push site, #[track_caller]), which named decode_intrabc_owned_rect's skip arm committing a 32x16 chroma window at (px/2, py/2) = (160,80) and leaving its own 64x32 footprint at (320,160) unwritten. Two difference components, 8 cells sharp and 1182 over the whole quadrant: one wrong-place write, not two defects. That fix is ALREADY ON MAIN, in a more general form than this lane first wrote it: 5324a685 (lane-av1chromarect) made the extent and origins ss-derived for this whole function, skip arm included, after solving the missing-TxbSet blocker that had forced this lane to scope its fix to the skip arm; 2c0fd2b9 (lane-av1chromadc) windowed the skipped-block chroma override per unit. Main's version is kept, for a substantive reason: scoping to the skip arm would have left a known-wrong shape in the arm that actually reads coefficients. This branch is rebuilt from 79b2a73f and carries only the instrument, the gate and the report; the pre-rebase commit e0a7b744 is on backup-av1ibcfork for the record. With both landed the witness is byte-exact on all three planes, including the "(416,192) residual tail" this lane had called a separate open defect -- it was a consequence of the same wrong-place write, not an independent one. Gate a_444_intrabc_rect4_witness_is_byte_exact_after_the_skip_arm_footprint: a SECOND witness, not a repeat of chromarect's r512.obu gate, because the two shapes fail differently -- r512's 128-root strips fail as a sizing error inside the coefficient walk, while this witness's 64x32 skip block read no coefficient at all, so its only symptom was pixels. Four arms: 4:4:4 header asserted, the 4:2:0 twin byte-exact (where >> ss_x IS / 2, so it is the measurement), IBC_OWNED_RECT_CHROMA_FOOTPRINT_444_HITS >= 1, and FULL byte-exactness on all three planes. Mutating the function back to the halving reds it at (x=160, y=80) -- the same sample this lane measured by hand before the gate existed. Also: SymbolDecoder::symr_mi(), because a per-unit rung needs a mi and set_symr_mi only wrote it.
Merge lane-av1sb128chroma: the SB128 chroma arm is already correct (premise refuted, fixture gap closed)Ahmet Kaan Gümüş · 28bc592
Merge lane-av1sb128chroma: the SB128 chroma arm is already correct (premise refuted, fixture gap closed) The ticket's central premise is FALSE: av1_get_max_uv_txsize(BLOCK_128X128, 0, 0) is TX_32X32, not TX_64X64 - av1_get_adjusted_tx_size maps TX_64X64|TX_64X32|TX_32X64 -> TX_32X32 with NO subsampling argument, so the 64->32 step fires at ss (0,0) too. Corroborated three ways: a C-probe linked against the oracle's libaom.a (adjusted=3 = 32x32), an oracle EC_TRACE_COEFF histogram showing ZERO chroma reads of any 64-axis shape, and the ticket's own suggested repair panicking on a 64-point scan table libaom does not have. The site was already repaired by c0727d64 (cu_tx stays 32; luma_span and the origin are already ss-aware and per-chunk+per-unit). The ticket's evidence stream never reaches the arm: on clean testsrc2 the RD never picks INTRA for a whole 128 root - measured 0 fires, not 20, with per-plane 0 wrong. Landed instead: the missing witness (fixtures/444_intra_in_inter_128root_mu_chroma.obu, sha256 f5999bd9..., 3570 B) plus its pixel-exact gate, closing a real fixture gap for another lane's arm.
Merge lane-av1chromadc: the skipped-block chroma override is windowed per unit (79969 -> 0)Ahmet Kaan Gümüş · 8c19a27
Merge lane-av1chromadc: the skipped-block chroma override is windowed per unit (79969 -> 0) decode_block's SKIP arm handed the whole chroma_side x chroma_height override buffer to EVERY unit, and PlaneBuf::reconstruct uses the buffer it is given as that unit's own chroma_tx x chroma_tx_h prediction - so the right and bottom units of a 2x2 chroma plane block predicted from the top-left one. Invisible at 4:2:0 (a 64x64 block's chroma plane block is a SINGLE 32x32 unit, so the whole buffer is that unit's window - which is why every 4:2:0 gate stayed green). Measured on the pinned r512.obu: frame 1's skipped 64x64 intra-BC block at mi=(112,80) reconstructed cu=(1,0) as a flat 241 where the oracle has 202, byte-identical to cu=(0,0). EC_PRED showed identical sums and identical row0/col0 for the two units and EC_DEBUG_EDGES printed nothing (the prediction came from the override, not the edges). Fix: one windowing closure used for both planes, whole buffer when single unit so every 4:2:0 and sub-64 4:4:4 path is byte-for-byte unchanged. Result: 79969 wrong samples -> 0 (2359296/2359296 byte-exact), red-before run on the unpatched tree.
4:4:4 2x2 chroma walk: window the intra-BC/palette override per unitAhmet Kaan Gümüş · 69d5cc5
4:4:4 2x2 chroma walk: window the intra-BC/palette override per unit
A skipped 64x64 square block at 4:4:4 has a 64x64 chroma plane block, which
libaom walks as a 2x2 grid of TX_32X32 units (get_vartx_max_txsize ->
av1_get_adjusted_tx_size(TX_64X64) = TX_32X32). Its chroma prediction is not
edge-derived: it is the intra-BC / UV-palette override, a whole
`chroma_side x chroma_height` buffer on the PALETTE_PRED slot, and
`PlaneBuf::reconstruct` uses the buffer it takes as the UNIT's own
`chroma_tx x chroma_tx_h` prediction (`let prediction = if let Some(buf) = pred
{ buf } else { ... }`). A multi-unit plane block must therefore hand each unit
its own WINDOW of it.
The pre-fix call was `set_palette_pred(ub.clone(), fctx)`: the whole buffer, for
every unit. At 4:2:0 the chroma plane block of a 64x64 block is a single 32x32
unit, so the whole buffer IS that unit's window and the bug is INVISIBLE --
which is why every 4:2:0 gate stayed green -- and at 4:4:4 every unit took the
buffer's first 32x32. The site already said so for LUMA ("its per-TU windowing
is the non-skip loop's own `palette_y_buf` slice, untested for skip and
unreachable in these streams"); the chroma half never got the same treatment and
r512.obu is the stream that makes it reachable.
MEASURED PROOF, before the fix (EC_PRED, per-unit prediction trace; identical
sums and identical row0/col0 are the signature of a copied window):
OUR_PRED x=320 y=448 plane=1 side=32 sum=882176 row0=[241 x8] col0=[241,202,...]
OUR_PRED x=352 y=448 plane=1 side=32 sum=882176 row0=[241 x8] col0=[241,202,...]
OUR_PRED x=320 y=448 plane=2 side=32 sum=751936 row0=[110 x8] col0=[110,222,...]
OUR_PRED x=352 y=448 plane=2 side=32 sum=751936 row0=[110 x8] col0=[110,222,...]
and EC_DEBUG_EDGES printed nothing for x=320/352 at y=448, i.e. edges() was
never called -- the prediction came from the override. The coded sibling at
x=448 DOES print its edges, and its units were already right.
RED-BEFORE, on the UNPATCHED tree, new gate
`a_444_skipped_64x64_square_block_windows_its_chroma_override_per_unit`:
decode-order frame 0 plane U is byte-exact nowhere -- first divergence at
sample 229728 of 262144 (x=352, y=448), 7488 samples wrong. The seed is frame
0, mi=(112,80) px=(320,448) side=64 skip=1, whose chroma unit cu=(1,0) at
px=(352,448) must be the SECOND 32x32 window of the block's chroma override
and not a copy of cu=(0,0)'s.
AFTER, same oracle (aomdec EC_AV1_FINAL_DUMP vs set_final_dump_prefix, 512x512
8-bit 4:4:4, decode order), wrong samples per plane:
f0 Y 0 | U 7488 -> 0 | V 8128 -> 0
f1 Y 0 | U 22571 -> 0 | V 41782 -> 0
f2 Y 0 | U 0 | V 0
79969 -> 0: every plane of every frame byte-exact, 2359296/2359296 samples. The
floors in `a_444_intrabc_owned_rect_strip_sizes_its_chroma_plane_block_and_decodes`
were RAISED from [[262144, 229728, 229728], [262144, 65704, 65704], [262144,
262144, 262144]] to [[262144; 3]; 3]; both floors' history is in that test's doc.
No floor was lowered. decode_intrabc_owned_rect is NOT touched.
CLASS SWEEP, all four unit positions of every multi-unit chroma-override walk on
the witness (temporary EC_ZZSRC probe, removed before this commit; win_head is
the unit window's first eight samples):
f0 px=(320,448) skip=1 intrabc (0,0)=241 (1,0)=202 (0,1)=241 (1,1)=202
f0 px=(384,448) skip=1 intrabc (0,0)=202 (1,0)=203 (0,1)=202 (1,1)=203
f1 px=(128,128) skip=1 intrabc (0,0)=54 (1,0)=54 (0,1)=54 (1,1)=54
f1 px=(320,448) skip=1 intrabc (0,0)=240 (1,0)=202 (0,1)=240 (1,1)=202
f1 px=(448,384) skip=1 intrabc (0,0)=166 (1,0)=166 (0,1)=166 (1,1)=166
The rule: invisible when the buffer is constant across the plane block, wrong at
exactly (1,0) and (1,1) when it varies, and (0,0)/(0,1) never wrong -- they
read offset 0, which is their own window. That is why the r2 dirty map starts at
x=352 = 320+32 and not at x=320. Every multi-unit walk on this witness is
src=intrabc; the UV-palette source shares the fixed line but has no multi-unit
witness here, and that cell of the class is argued, not measured.
f1 HYPOTHESIS CONFIRMED: r2 predicted f1's dirty column x=128..192 (first dirty
cell (168,128), 56/64 wrong) was the skipped 64x64 at px=(128,128). It is -- the
only multi-unit override walk in that column -- and frame 1 goes 22571 U + 41782
V wrong to 0 with this fix and no other change.
New counter SKIP_CHROMA_OVERRIDE_WINDOW_HITS counts chroma units whose override
had to be windowed (cn_cols * cn_rows > 1), exclusive to this walk; the gate
asserts >= 8 before it compares a single sample, so the exactness cannot be
vacuous.
Gates: 34/34 on the 4:4:4-lossless + intrabc_rect + 4:2:0-twin set (33 of r5
plus this lane's new gate). The wider `rect intrabc ibc chroma 444 420
subsampl` family is 141 passed / 0 failed / 5 ignored on this tip against
140 / 0 / 5 on the base 57834ee2, the set difference being exactly this lane's
new gate. Mutations, each reverted: M1 the pre-fix whole-buffer shape -> RED at
229728 (x=352,y=448); M2 window row stride chroma_side -> chroma_tx -> RED at
229824 (x=448,y=448); M3 cu_row/cu_col transposed -> RED at 229728.lanes/av1sb128chroma: the SB128 chroma arm is already correct -- cu_tx=64 is a panic, and its witness never reaches the armAhmet Kaan Gümüş · 00bda1c
lanes/av1sb128chroma: the SB128 chroma arm is already correct -- cu_tx=64 is a panic, and its witness never reaches the arm
The ticket named the `side > 64` mu-chunk chroma arm of the intra-in-inter
128 root (decode.rs:43568, the `EC_TMP_SB128CHROMA` site) and asked for
`cu_tx = 64` at ss (0,0) with a per-chunk chroma origin. None of that is
a defect, and the central premise is false.
`av1_get_max_uv_txsize` (blockd.h:1372) is
`av1_get_adjusted_tx_size(max_txsize_rect_lookup[get_plane_block_size(...)])`,
and `av1_get_adjusted_tx_size` (blockd.h:1361) maps TX_64X64 -> TX_32X32
UNCONDITIONALLY -- it takes no subsampling argument, so the 64 -> 32 step
fires at ss (0,0) too. `av1_get_max_uv_txsize(BLOCK_128X128, 0, 0)` is
TX_32X32, not TX_64X64. The site already reads `cu_tx = 32`,
`cu_tx << ss` for the luma span, and a per-chunk AND per-unit origin; that
form landed on main in c0727d64 (lane-av1txsizeaudit r5).
The ticket's evidence stream also cannot witness the arm. Its recipe
(testsrc2 128x96 yuv444p, --sb-size=128 --cq-level=20, 24 frames, sha256
84de4280...) reads intra_128_in_inter=0, mu_chroma=0, chroma_split_tx=0:
on clean testsrc2 the encoder's RD never picks INTRA over inter for a whole
128 root. The "20 fires" was the other `side > 64` chroma walk (the INTER
twin) or a count inflated under the removed masking fork -- re-measured, it
is 0.
Mutation proof on a pinned 4:4:4 witness that DOES reach the arm
(sha256 f5999bd9..., 3570 B, 3 frames, intra_128_in_inter=1,
intra_128_in_inter_mu_chroma_hits=4):
A. the ticket's full change -> HARD PANIC at decode.rs:7197,
"no default scan for a 64-point transform" -- libaom has no 64-point
chroma scan table.
B. its luma-span + per-chunk-origin halves alone -> RED, Y 12537,
U 16696, V 16667 wrong of 98304 per plane, first at Y(90,120) ours
142 vs oracle 141, all on decode-order frame 2, counters still 1/4.
So: no source change (`git diff crates/ec-av1/src/decode.rs` is empty).
What the ticket was right about is the fixture gap -- the arm had no
committed 4:4:4 bytes, only a live-encode gate that silently skips without
ffmpeg/aomenc. This commit closes it.
Gate `a_444_intra_in_inter_128root_muchroma_pinned_stream_decodes_pixel_exact`
pins the witness (len + fnv1a64), asserts the ss (0,0) 128-superblock
header, asserts the full-resolution chroma shape, the byte-exact compare
through the oracle aomdec, and non-vacuity via the two arm counters
(>= 1 root, >= 4 mu-chunk chroma reads). Its COUNTER-PROOF arm pins the
ticket's own stream as a control and asserts it decodes 24/24 byte-exact
while reading (0, 0) -- so the refutation stays reproducible in-crate with
no encoder on the host.
Identity: all 44 4:4:4/4:2:0 gates and the 128-root/lossless families
(55 passed, 0 failed, 11 pre-existing ignored) green against this
decode.rs; cargo check --all-targets clean.Merge lane-av1f9singleland: the 'unlanded' single-ref fix was already on main; the real gap was attributionAhmet Kaan Gümüş · abe7034
Merge lane-av1f9singleland: the 'unlanded' single-ref fix was already on main; the real gap was attribution 6c33f204 was a TWIN-FLOW SWEEP - it collected leaf_tx_types at every size and pointed BOTH copies of the four-unit arm at the shared covering_leaf_tx_type (decode.rs:38785). The branch census read that commit's SUBJECT (which names only the compound arm) instead of its diff, so it ranked an already-landed fix as the top unlanded one; the cited 'if side > 64 around 42271' is a different, correct guard (the 128x128 mu-chunk walk) and the leaf push at 42304 is unconditional. Landing the real gap instead: per-arm single-reference counters plus a gate asserting the single-reference arm is what the existing witness measures - 96 covering-leaf units resolve, 88 single-ref / 8 compound, and ALL 8 DIFFERS units (the existing non-vacuity bar) are single-ref. The 4:2:0 control fires neither counter. Three mutations red it, including one that shows the shared total staying non-zero while the witnessed arm resolves nothing.
ec-av1: the four-unit 4:4:4 quadrant witness is the SINGLE-REFERENCE arm's, and no gate said soAhmet Kaan Gümüş · 18d91c0
ec-av1: the four-unit 4:4:4 quadrant witness is the SINGLE-REFERENCE arm's, and no gate said so The census called lane-av1-f9single tip c7fd5afa an unlanded fix and pointed at "main still reads `if side > 64` around decode.rs:42271". Both are false. The cherry-pick conflicts, and git blame attributes BOTH single-reference sites -- the leaf push and the covering-leaf resolve -- to 6c33f204, the commit the census itself lists as the already-landed compound twin. 6c33f204 collected leaf_tx_types at every size and pointed BOTH copies of the four-unit arm at the covering lookup; its own subject line calls the single-reference side "the single-reference twin", so it was a twin-flow sweep, not a compound-only change. The `if side > 64` the census cited is the 128x128 mu-chunk walk from lane-sb128c r1, which is correctly `side > 64`. Main's form is also the better one: the shared covering_leaf_tx_type helper, where the branch inlines a fourth copy of a convention main had already deduplicated. What was genuinely missing is the attribution. CHROMA_QUAD_LEAF_TX_HITS and ..._DIFF_HITS are bumped from both arms, and the existing gate asserts only that pair, so it cannot say which arm its witness came from and either arm can be reverted while the other keeps the total non-zero. Measured on the pinned 444_quad_leaf_tx_type.obu: 96 covering-leaf units, 88 of them the single-reference arm's; of the 8 DIFFERS units -- the existing gate's entire non-vacuity bar -- ALL 8 are the single-reference arm's. The other 26 pinned 4:4:4 fixtures reach the arm zero times, so that one witness is all that pins this arm. Adds a single-reference counter pair and a gate that pins it. Proved non-vacuous three ways, each mutating ONLY the single-reference arm: reverting its resolve to luma_tx_type, gating its leaf push back behind `side > 64`, and disabling its route outright all turn a gate red -- the first two with 777 bytes differing in decode-order frame 1, the same number 6c33f204 reports for its own pre-fix state. The third fails while the shared total still reads 8, which is exactly the blind spot. +149/-0, additive; the compound arm is untouched and the two stay textually comparable. cargo check -p ec-av1 --all-targets clean, 0 warnings. Gates: 444 family 39 passed, intrabc_rect 7, rect_strip 10, 4:2:0 controls 3+2+2, both quadrant gates 1 each -- 0 failed, oracle required throughout.
Merge lane-av1pinspec2: the count-vacuity scan is comment-aware and the SVT site is wire-derivedAhmet Kaan Gümüş · 20621b0
Merge lane-av1pinspec2: the count-vacuity scan is comment-aware and the SVT site is wire-derived Sweep: 58 site(s); 58 spec-pinned by a prior assert, 0 not (ceiling 2 -> 1 -> 0, each step tied to its commit's measured population, each with its own red-before). The SVT split-transform gate now runs on a COMMITTED pin (svt1-split-tx-pin.obu, 1838 B, sha256 c9d9c0ae... - a replay of two independent SVT-AV1 v3.1.2 encodes) instead of an env-named stream, and derives its frame count off the wire with Av1Parser, asserting the show_existing_frame case impossible on this pin rather than arguing it. Non-vacuity: runs unset on a stock box with no SKIP, and mutating the arm counter reds.
Merge lane-av1cflac: the cfl_ac_q3_at 4:4:4 premise is REFUTED, and it is now guardedAhmet Kaan Gümüş · f82a113
Merge lane-av1cflac: the cfl_ac_q3_at 4:4:4 premise is REFUTED, and it is now guarded The inherited '188 rung hits at 4:4:4' does not reproduce: 0 hits on all 26 *444* pins, while cfl_ac_ss's own 4:4:4 arm fires 1834 times and is byte-exact vs aomdec. cfl_ac_ss dispatches 4:4:4 and 4:2:2 to their own libaom bodies BEFORE the 4:2:0 fallthrough that owns cfl_ac_q3_at, so the halving and the 2x2 average are correct at every reachable call site (the 4:2:0 total on the same counter is 33752 - where the 188 almost certainly came from). No decode behaviour change: two gates (the 4:4:4 arm>0 AND cfl_ac_q3_at==0 on one counter with per-plane 0/0/0 vs aomdec; a static closure proving cfl_ac_q3_at is reached only through the 4:2:0 fallthrough), an oracle_plane_diffs helper and per-arm counters. Mutation reds the gate, and in its naive half-extent form it PANICS (len 16, index 16) rather than mis-colouring - correcting the inherited 'silent wrongness' framing.
stream: run the SVT split-transform gate on a committed pin, count off the wireAhmet Kaan Gümüş · 1e73b1b
stream: run the SVT split-transform gate on a committed pin, count off the wire
`an_svt_screen_palette_block_with_a_split_transform_decodes_exactly` read its
stream from whatever `EC_AV1_SVT1_STREAM` named and SKIPped when that was
unset, so on a stock box it never ran -- and an oracle count that cannot be
pinned is the same defect as one that is not: the gate was handing ffmpeg the
length of our own decode as the expected frame count, with nothing on the box
able to prove the number wrong.
The crop is now committed: `crates/ec-av1/fixtures/svt1-split-tx-pin.obu`,
1838 bytes, sha256
c9d9c0ae934fba72fc9a9374bc36853f290796a8a4d6442140e239669e0b341f. It is a
REPLAY, not a fresh capture -- two independent encodes of
ffmpeg -v error -f lavfi \
-i "smptehdbars=s=192x152:r=12,drawgrid=w=8:h=8:t=1:c=black" \
-frames:v 1 -c:v libsvtav1 -preset 8 -crf 50 \
-svtav1-params "lp=1:screen-content-mode=1" -g 12 -f obu out.obu
produce those exact bytes (SVT-AV1 v3.1.2). `-frames:v 1` is the part lane-
svt1's own 6x5x6 search lacked: it ran FOUR frames per stream and the
~200k-sample misses that killed every candidate were on the INTER frames
(lanes/svt1.report.md). One key frame has no inter frames, and this one
reaches the fixed arm and is pixel-exact.
The count is derived from the WIRE, not from a literal: the gate parses the
pin's own OBUs with `Av1Parser` and asserts `decoded.len() == frame_headers`
BEFORE handing that number to the oracle. A header count would OVER-count a
stream carrying `show_existing_frame` (spec 5.9.5 codes no pixels, so the
header count exceeds the shown-frame count), so that case is asserted
impossible on this pin rather than assumed -- which is what makes "one header
== one shown frame" a checked fact here instead of an argument.
`EC_AV1_SVT1_STREAM` still overrides the pin for a re-capture, and
`crate_pin` is called with a string LITERAL on purpose: the pin inventory
scans for that spelling, and a const argument would leave this pin outside the
"every pin a gate reads is a committed crate-local copy" invariant.
Non-vacuity, measured: the gate runs on a stock box with the env var unset
(0.18s, no SKIP), and `skip_split_tx_override_hits() > 0` mutated to `> 1`
reds -- so the premise arm fires exactly once on this pin and the gate cannot
pass blind. The count assert mutated to `frame_headers + 1` reds with
"the stream codes 1 frame(s), the decode showed 1", which is also the proof
the wire count and the decode agree.
count-vacuity sweep: 59 site(s); 58 spec-pinned, 1 not -- the SVT gate no
longer spends a decode-derived `.len()` at all, so it leaves the population.lane-av1cflac: cfl_ac_q3_at's 4:4:4 defect is UNREACHABLE; closed with two gates, no behaviour changeAhmet Kaan Gümüş · d6bb506
lane-av1cflac: cfl_ac_q3_at's 4:4:4 defect is UNREACHABLE; closed with two gates, no behaviour change
The inherited premise ("188 rung hits on the 4:4:4 set") does not reproduce.
The env-gated EC_HALVSWEEP rung, swept over all 26 *444* pins, prints 0 hits
on every one, while the 4:4:4 arm of cfl_ac_ss fires 1834 times across the
same fixtures and stays byte-exact against the oracle. cfl_ac_ss gives 4:4:4
(and 4:2:2) its own libaom-anchored body before the 4:2:0 fallthrough, so
bw/2, bh/2 and the 2x2 luma average are correct at every reachable call site.
The defect is real and latent, not live.
Landed instead of a fix:
- four per-arm CfL counters + a cfl_ac_q3_at entry counter, one per cfl_ac_ss
arm, so the routing is measurable from outside the crate;
- gate cfl_ac_444_routes_to_its_own_1x1_luma_body_and_420_to_the_2x2_average:
two pinned fixtures, two-sided (4:4:4 arm > 0 AND cfl_ac_q3_at == 0; 4:2:0
cfl_ac_q3_at > 0), plus per-plane Y/U/V counts vs the instrumented aomdec via
the new oracle_plane_diffs helper -- 0/0/0 on both;
- gate cfl_ac_q3_at_is_reached_only_through_the_420_fallthrough_of_cfl_ac_ss:
the static closure, enumerating the call-site set (3 sites), the single
caller of each decode-side wrapper, cfl_ac_ss's arm ORDER, and the absence
of any 4:4:4 ColorConfig in the encoder.
No decode behaviour changes: 4:2:0 is bit-identical (>> ss == / 2 there), no
stream newly refuses, nothing stopped decoding. Mutation proof: routing the
4:4:4 arm into cfl_ac_q3_at reds the gate (and in its naive half-extent form
panics in the reconstruct path, not a silent colour shift); a fourth call site
reds the enumeration. Green restored byte-identical.
Sweep: 0/26 on the 4:4:4 set; 33752 cfl_ac_q3_at entries across 17 4:2:0
fixtures; 4:2:2 arm 0 on all 85. Report: lanes/av1cflac.report.mdMerge lane-av1chromarect: 4:4:4 intra-BC rect-strip chroma is sized and walked per unitAhmet Kaan Gümüş · 972e329
Merge lane-av1chromarect: 4:4:4 intra-BC rect-strip chroma is sized and walked per unit The premise that this needed a new chroma TxbSet was WRONG: libaom never forms a 64-point chroma transform (av1_get_adjusted_tx_size maps TX_32X64/TX_64X32 -> TX_32X32 for plane != 0), so a 4:4:4 32x64 chroma plane block is TWO TX_32X32 units and TX_32X32 is already TxbSet::Chroma32. The missing piece was the multi-unit WALK. Lands: ss-derived chroma extent and the eight MV origin pairs, a per-unit chroma walk with neighbour stamping and covering-leaf tx_type inheritance, an ss(0,0)-only hit counter, and the refusal gate replaced by a pixel-exactness gate with committed oracle floors. Measured on r512.obu: 640727 wrong samples -> 79969 (-87.5%), luma byte-exact on all three frames, frame 2 fully exact. Residual 79969 is named in the report, not hidden.
4:4:4 chroma plane block at the 128-root intra-BC strip: walk it in get_vartx_max_txsize units, and do not overwrite the per-unit contextsAhmet Kaan Gümüş · b88c866
4:4:4 chroma plane block at the 128-root intra-BC strip: walk it in
get_vartx_max_txsize units, and do not overwrite the per-unit contexts
Commit 1 landed the ss-derived extent and then REFUSED the witness with "a
rectangular inter chroma transform unit whose shape has no coefficient table set
here". That refusal named the shape this crate HANDED
`rect_inter_chroma_set`, not the shape libaom codes, and acting on it literally
-- a new `ChromaRect32x64` / `ChromaRect64x32` -- would have shipped a
coefficient table no bitstream can ever exercise.
libaom never forms a 64-point CHROMA transform:
* `get_vartx_max_txsize` (blockd.h:1447) returns
`av1_get_adjusted_tx_size(max_txsize_rect_lookup[bsize])` for `plane != 0`;
* `av1_get_adjusted_tx_size` maps `TX_32X64 -> TX_32X32` and
`TX_64X32 -> TX_32X32`;
* `max_txsize_rect_lookup[BLOCK_SIZES_ALL]` (common_data.h:126) has
`BLOCK_32X64 -> TX_32X64`;
* `decode_token_recon_block` (decodeframe.c:994-1004) steps the plane block
by that size's mi units, and `decode_reconstruct_tx`'s
`tx_size == plane_tx_size || plane` arm never recurses for chroma.
So a 4:4:4 32x64 chroma plane block is TWO stacked `TX_32X32` units, each with
its own eob, scan and coefficient context -- `rect_inter_chroma_set(32, 32)` is
already `TxbSet::Chroma32` (decode.rs:28919, arm lane-av1-444 added). What was
missing was the WALK, not a set, and no `rect_scan` / rect
`base_ctx_rect` / `br_ctx_rect` change is needed either: a `TX_32X32` unit is
square, so `read_inter_plane_rect` takes its `(cw, ch) == (32, 32)` branch and
reads `default_scan(TX32)`.
New `read_intrabc_rect_chroma_split`: the same
`(cw.min(32), ch.min(32))` / `nx * ny` tiling `read_inter_rect_chroma` already
does for the other rect paths, entered ONLY when the plane block needs more
than one unit, so 4:2:0 and every 4:4:4 shape below 64 keep the caller's own
one-unit read byte-for-byte. Per unit: its own `around_mi_rect` gather, origin,
prediction slice, `covering_leaf_tx_type` inheritance (`av1_get_tx_type`,
blockd.h:1287), the `get_txb_ctx` plus-10 offset, and `record_mi_chroma`
immediately.
New `record_split_luma_rect_mi_modes` / `record_rect_mi_luma_only`, extracted
from the existing pair: when the chroma plane block was walked as several
units, the whole-block coefficient stamp would overwrite the per-unit spans
with one state (the `override-slot-on-one-arm` class -- the same reason the
lossless arm sets `mu_chroma = true`). Gated on `!skip`: a skipped strip reads
no chroma unit at all, so the whole-block stamp is still its only one.
MEASURED, same oracle (aomdec `EC_AV1_FINAL_DUMP` vs `set_final_dump_prefix`,
512x512 8-bit 4:4:4, decode order), wrong samples per frame:
before after
f0 Y 166229 -> 0 | U 155383 -> 7488 | V 153498 -> 8128
f1 Y 0 -> 0 | U 74708 -> 22571 | V 73501 -> 41782
f2 Y 0 -> 0 | U 9216 -> 0 | V 8192 -> 0
640727 wrong samples -> 79969. Luma is byte-exact on all three frames and frame
2 is byte-exact on all three planes. The refusal string is gone from this
witness because nothing reaches it, not because it was deleted: the string is
still at decode.rs:28938 and in refusal_inventory.rs:55, and
`every_rect_transform_shape_the_census_lists_has_a_coefficient_table_and_scan`
still passes.
Gate `a_444_intrabc_owned_rect_strip_refuses_the_missing_rect_chroma_
coefficient_set` (commit 1) is replaced by
`a_444_intrabc_owned_rect_strip_sizes_its_chroma_plane_block_and_decodes`: a
per-(frame, plane) exact prefix against the oracle, plus
`IBC_OWNED_RECT_CHROMA_FOOTPRINT_444_HITS == 5` as the non-vacuity proof. The
prefixes are floors, not an exactness claim -- the frames 0/1 chroma tail is an
OPEN fork at a site this lane did not identify, measured and named in
lanes/av1chromarect.report.md.
Mutation proofs, each reverted:
M1 extent back to `/ 2` -> RED, counter 6 != 5
M3 `(nx, ny)` transposed -> RED, f0 Y diverges at 65728
M5 per-unit chroma row origin dropped -> RED, f0 U diverges at 65696
M4 prediction slice column term dropped -> GREEN (nx == 1 here, term dead)
Gates: 33/33 on the 4:4:4-lossless + intrabc_rect + 4:2:0-twin set. The wider
`rect intrabc ibc chroma 444 420 subsampl` family is 138 passed / 0 failed / 5
ignored on this tip against 137 / 0 / 5 on the base `edffad9e`, the set
difference being exactly this lane's new gate.stream: pin eight single-key-frame oracle counts, three of them by hoistingAhmet Kaan Gümüş · 222f4c5
stream: pin eight single-key-frame oracle counts, three of them by hoisting Five of these gates already carried 'assert_eq!(frames.len(), 1)' but BELOW the ffmpeg call, which is exactly why the sweep still read them as unpinned: by the time the assert ran, the oracle had already been handed frames.len(). Hoisted above the call they are what they were meant to be -- a check on the encode, taken before the budget is spent. The chroma-edge-filter gate's assert is hoisted past both the 8-bit and the 10-bit arm, so one assert covers both of its sites. count-vacuity sweep: 25 unpinned -> 17.
stream: pin four more oracle counts, one of them off the wire itselfAhmet Kaan Gümüş · 31ca760
stream: pin four more oracle counts, one of them off the wire itself a_real_aomenc_stream_with_cdf_update_disabled is the one site whose spec is NOT a literal: the arm overrides screen_intrabc_stream_at_depth's '--limit=1' with '--limit=3', and aomenc keeps the LAST occurrence of a repeated flag, so '3' would be a claim about flag precedence rather than a fact about a stream. The gate already parses this stream's own OBU frame headers with Av1Parser in the loop sitting above the call, so the assert compares frames.len() against that header count -- derived from the bitstream, not from a rule and not from our decode. The mutation run in the lane report prints both sides (3 vs 4), so the pin is shown to bite. Also pins the rect-strip-palette gate, whose 'no frame-count assert here' comment is deleted: frames.len() == 1 is a fact about the encode, taken before frames.len() is spent as ffmpeg's budget, so it was never the tautology that comment described -- and ten_bit_tool_gate, whose count is its own 'frames' PARAMETER, the same value handed to encode_10bit_gradients_seed: 1 for the key-frame callers, 24 for the --lag-in-frames=16 inter ones. count-vacuity sweep: 29 unpinned -> 25.
stream: hoist the narrow-kernel gate's FRAMES assert above its oracle callAhmet Kaan Gümüş · 6e9d8a0
stream: hoist the narrow-kernel gate's FRAMES assert above its oracle call
a_real_aomenc_rect_inter_block_predicts_chroma_with_the_narrow_kernel already
had the right assert -- frames.len() == FRAMES, with 'const FRAMES: usize = 6'
driving both '-vframes {FRAMES}' and '--limit={FRAMES}' -- but BELOW the call,
so the oracle had already been handed frames.len(). Hoisted, not duplicated.
The 'rect_narrow_kern_hits()' read stays where it was, above the call, so a
mismatch report still says whether the arm fired; a first attempt at this edit
moved the assert above that read and dropped the binding, which would have left
the failure message unable to name the arm's hit count.
count-vacuity sweep: 5 unpinned -> 4.stream: pin the band and chroma-rect sweep family to one frame eachAhmet Kaan Gümüş · a2f865b
stream: pin the band and chroma-rect sweep family to one frame each Four gates, eight sites: the 4:1/sub8 rect-chroma gate, the excluded-seed-46 chroma-rect gate, the seed-46 band stream gate, and the frame-edge-partition-bit gate. The first three encode through rectchroma_stream or its byte-identical inline twin -- 'duration=0.04:rate=25' rendered with '-t 0.04', one frame, no '--limit' -- and the fourth renders with '-t 1' AND '-vframes 1'. One assert per gate sits above the depth branch, so it covers both the 8-bit and the 10-bit site. count-vacuity sweep: 13 unpinned -> 5.
stream: pin the restoration sweep and edge32_gate, whose spec is a parameterAhmet Kaan Gümüş · ae84402
stream: pin the restoration sweep and edge32_gate, whose spec is a parameter a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly: every EC_FISTRIP_SRC branch and the gradients_source default render at rate 25 with a 1-frame duration=0.04, and aomenc runs with no '--limit', so each attempt's stream codes 1 frame. This gate had NO frame-count assert at all -- not even the tautological one -- so its zip over pics and reference would have truncated silently on a short decode. edge32_gate's count is PER ARM: the arm tuple's frame_count field is what the y4m is built from (duration = frame_count / 25.0) and aomenc runs with neither '--limit' nor '--lag-in-frames', so 1 for the intra arms and 5 for the inter/straddling ones. Asserting against that field is a spec rather than a literal and is already in scope at the call, which is why this is a pin and not a hand-forward. count-vacuity sweep: 15 unpinned -> 13.
stream: pin the ignored rect-tx recipe sweep and the 32-level AB gateAhmet Kaan Gümüş · f9d88f7
stream: pin the ignored rect-tx recipe sweep and the 32-level AB gate sweep_rectx_recipes asserts no verdict -- it counts mismatching frames and prints an 8x8 map -- but that COUNT is the number it reports, so a decode that showed fewer frames than the wire would silently under-report it. Pinned against '-vframes 1' like every other arm in that sweep, and the gate still runs only under --ignored. a_real_aomenc_stream_with_a_32_level_ab_partition renders 'gradients_source(..., duration=0.04:rate=25)' with '-frames:v 1' and runs aomenc with '--limit=1 --kf-max-dist=0', so all 16 seeds code 1 frame. count-vacuity sweep: 17 unpinned -> 15.
stream: pin the encode's frame count in the intrabc rect/census familyAhmet Kaan Gümüş · 8644bc7
stream: pin the encode's frame count in the intrabc rect/census family Seven sites across the coded-rect-intrabc gate (both the arms and skip_arms loops), the sb128 screen intrabc gate, the two intrabc censuses, the mixed vart-tx tree gate and the tx-mode-select gate. All encode through screen_intrabc_stream_at_depth, which renders '-t 0.2' at rate 25 with '-vf tile=2x2' (5 frames in, 1 tiled frame out) and runs aomenc with '--limit=1', so every arm codes exactly 1 frame. The two censuses are report-only about their COUNTS, but their Ok arms assert pixel-exactness, so the budget handed to ffmpeg there is pinned for the same reason as everywhere else. The skip_arms loop re-decodes the same bytes at each recon-thread count, so one assert covers both of that loop's sites. count-vacuity sweep: 36 unpinned -> 29.
stream: pin the encode's frame count above 7 oracle calls (palette, rect-tx tool, screen intrabc, 16x4 pair)Ahmet Kaan Gümüş · 6867062
stream: pin the encode's frame count above 7 oracle calls (palette, rect-tx tool, screen intrabc, 16x4 pair)
These seven count sites handed ffmpeg_decode_sequence{,_10bit} the length of
OUR OWN decode as the oracle's expected frame count. A decode that showed
fewer frames therefore asked ffmpeg for the same short count, and the helper's
byte-length assert fired naming ffmpeg for a number our decoder chose. The
count is now asserted against the ENCODE -- '-frames:v 1', '-vframes 1',
'--limit=1', or 'rate=25 x -t 0.60' = 15 for rect_tx_tool_gate -- and that
assert sits ABOVE the call, so a dropped frame reds naming the encode.
Three of the seven already carried the literal but BELOW the call, where the
oracle had already been handed frames.len(); those are hoisted, not
duplicated. rect_tx_tool_gate is the one multi-frame site and the count is
named, since 15 comes from an arithmetic fact about the fixture
(rate 25 x -t 0.60) rather than from a flag someone typed.
count-vacuity sweep: 43 unpinned -> 36. The call still spends frames.len();
the assert above makes that value a spec, which is the shape the 17
already-pinned sites use, so the site population stays 60 and the class stays
enumerable.4:4:4 witness pin + ss-derived chroma extent at the 128-root intra-BC stripAhmet Kaan Gümüş · 287d79c
4:4:4 witness pin + ss-derived chroma extent at the 128-root intra-BC strip Pins crates/ec-av1/fixtures/r512.obu (6948 B, blob bff992e9, taken from lane-chromahalvings-r3 -- the only one of the three chromahalvings refs that carries it) and replaces `decode_intrabc_owned_rect`'s hardcoded `(bw / 2, bh / 2)` chroma extent and its eight `px / 2, py / 2` chroma MV origin pairs with the ss-derived `>> ss_x` / `>> ss_y` forms. libaom: `av1_get_max_uv_txsize` (blockd.h:1372) is `max_txsize_rect_lookup[get_plane_block_size(bsize, ss_x, ss_y)]` through `av1_get_adjusted_tx_size`, and `get_plane_block_size` is `ss_size_lookup[bsize]` -- at ss (0,0) the chroma plane block IS the luma footprint. At 4:2:0 the two forms are the same arithmetic. RED-BEFORE, measured on the UNPATCHED line in this worktree, per-plane sample counts against the instrumented aomdec (`EC_AV1_FINAL_DUMP`): f0 Y 166229 wrong from 65728 | U 155383 from 32848 | V 153498 from 32848 f1 Y 0 (byte-exact) | U 74708 from 49282 | V 73501 from 49280 f2 Y 0 (byte-exact) | U 9216 from 114880 | V 8192 from 229760 Luma byte-exact on f1 and f2 while chroma is wrong is the signature that makes this a chroma-plane sizing defect and not a block-geometry one. New counter IBC_OWNED_RECT_CHROMA_FOOTPRINT_444_HITS: the 128-root intra-BC strips whose chroma plane block was sized at ss (0,0). At 4:2:0 the corrected and halving forms are identical, so >= 1 cannot be satisfied by a 4:2:0 stream; the arm is exclusive to this function. Gate `a_444_intrabc_owned_rect_strip_refuses_the_missing_rect_chroma_ coefficient_set` asserts -- deliberately -- that the witness is now REFUSED with the exact string "a rectangular inter chroma transform unit whose shape has no coefficient table set here". That is the state this commit lands in: the extent is libaom-correct, and a 4:4:4 32x64 luma block's chroma plane block is 32x64, which this crate has no `TxbSet` for. The gate exists so the day that arm lands the gate goes RED and the assertion has to become the pixel-exactness check. Reach proof for the site, on the whole witness with EC_HALVSWEEP=1: 5 strips (mi 32x64 skip=false at mi(32,40); 32x64 skip=true at mi(48,64); 16x64 skip=true at mi(64,108); 32x64 skip=true at mi(112,96) and mi(112,104)).
lanes/av1txsizeaudit r5: re-rebase onto ec4e9528, declare provenance of the foreign workAhmet Kaan Gümüş · 4e9b008
lanes/av1txsizeaudit r5: re-rebase onto ec4e9528, declare provenance of the foreign work
PROVENANCE, declared before wave 3e rather than at merge time. This branch
carries TWO lanes' work, not one.
lane-av1txsizeaudit (this lane): the tx-size audit, the C1 fix + source-scan
gate, the av1tilerows retraction.
lane-av1ibc128arm, commit 4bfe8d8e "av1: 4:4:4 intra-in-inter 128-root
mu-chunk chroma as a per-unit walk": 279 lines of decode.rs, 192 of
stream.rs, 5 of examples/decode_probe.rs, 196 of lanes/av1ibc128arm.report.md
-- and it has NEVER been merged to main.
Three checks against main:
git merge-base --is-ancestor 4bfe8d8e main -> NO
git grep -c 'a_real_aomenc_444_intra_in_inter_128_root_codes_chroma_per_mu_chunk'
main -- crates/ec-av1/src/stream.rs -> 0
git grep -n 'luma_span = cu_tx * 2' main -- crates/ec-av1/src/decode.rs
-> main:...:43185
That last line is the proof of non-merge rather than a re-implementation: main
still carries the collapsed 4:2:0 arm verbatim -- `let luma_span = cu_tx * 2;`
-- which is exactly the line 4bfe8d8e deletes, and the string appears 0 times
on this branch. `git log --all -S"luma_span = cu_tx * 2"` finds only the two
lanes that CREATED the class (2050a065 lane-av1-ibc128chunk, 29550383
lane-av1-422bigblock) and the commit that removed it. `git grep -ln
"intra_in_inter_128_root" main -- lanes/` returns nothing, and
`git cat-file -e main:lanes/av1ibc128arm.report.md` fails -- so no other lane's
report claims it. Branch lane-av1ibc128arm still exists at 4bfe8d8e, so this is
not an orphan.
THE TWO FOREIGN REPORT FILES, individually:
- lanes/av1ibc128arm.report.md (+196): deliberately KEPT, and it belongs to
lane-av1ibc128arm, not to this lane. It is the only provenance record for
the 279-line decode.rs change and the 4:4:4 gate. Not cherry-pick residue:
it arrived with 4bfe8d8e whole. MERGE OWNER: if lane-av1ibc128arm is also
merged, take code+report from whichever lands first and drop the duplicate;
if it is not merged separately, this branch must carry it, because there is
no other copy.
- lanes/av1tilerows.report.md (38 changed): MINE and deliberate. The retraction
of the `cu_tx = 32 << ss_x` rule at that report's own origin (lines 265-281,
the section 8 "Recommendation") -- the one committed instance of the refuted
rule in the repo. Zero code, zero gate. It must land whenever this branch
lands or the rule stays re-derivable.
CONTENTION HANDED OVER, NOT PRE-RESOLVED: decode_intrabc_owned_rect's `let
(cw, ch) = (bw / 2, bh / 2);` -- the open cell this report lists at 2.3 and
5.0, line 16832 on this base -- is being fixed by another lane now. This branch
does not touch that line; it appears here only as a finding. Resolve at merge
there, where the witness lives.
RE-REBASE, and a second patch-base trap in the same family as r4's:
r4 nearly dropped the unmerged fix commit by patching from "my base"; r5 nearly
swept in all of main's wave-3 changes by patching from "the old main" 9b2f6c9d,
which produced an 18041-line patch touching crates/ec-aac and binary fixtures.
THE RULE, both times: the patch's left-hand side must be the commit this
branch's base actually is (git merge-base HEAD main) -- never a remembered
ancestor, never a self-describing "my base". Verify with `git apply --stat`
BEFORE applying; the wrong base names files you have never touched and is
invisible in --3way's exit status.
Correct patch: git diff 08f8ffb3 99f25b1f, 1894 lines, 7 files. Applied onto
ec4e9528:
git diff ec4e9528 --shortstat -> 7 files, 1671 insertions(+), 103 deletions(-)
identical in shape to the pre-rebase measurement, with per-file removed-line
counts unchanged (decode.rs 97, av1tilerows 6, rest 0). Main's move touched
NOTHING under crates/ec-av1/, so decode.rs is 56316 lines with
suppress_internal_lf_edges at 9277 and C2 at 43315 -- report section 5.0's
line-shift table is valid verbatim on this base, no adjustment. Silent-restore
check against this move: 0/0/0.
Re-run after touch: cargo check --all-targets clean; the new source-scan gate
1/1; gate_coverage 13/13; refusal_inventory 20/20; the 13-gate identity set
13/13. 47 tests, 0 failures, 4:4:4 gate present and green.test(av1): classify the count-vacuity sites by reading, and fix the first oneAhmet Kaan Gümüş · 862cfda
test(av1): classify the count-vacuity sites by reading, and fix the first one Main's r7 item 1, done by READING rather than by regex, and printed per site so the classification is auditable: `ROW <line> | <gate> | <count expr> | bucket | candidate | spec_in_scope | <reason> | pixel_comparing`, on every run. Buckets, computed from each gate's own body (string-aware extent): b 38 live aomenc encode -> the count belongs to the ENCODER a 1 stream read from disk -> the count belongs to the pin c 4 census/probe -> report only, never fix ? 1 unclassified, with the reason printed rather than a guess A third offset bug, same family as the two r6 caught: the sweep handed its body-walk a LINE index where a BYTE offset was required, so every body-dependent classification read "unclassified" -- 40 of 44. It is the third time in this lane that a line/byte or slice-boundary confusion has silently produced a plausible-looking clean result. FIXED: stream.rs:3895, `a_real_aomenc_segmentation_stream_with_map_inheritance_ decodes_pixel_exact`. `ffmpeg_decode_sequence(..., pictures.len())` now passes `ENCODED_FRAMES` (40), the count its own `encode_aomenc_stream(...)` call encodes. Our decode's length was the thing UNDER TEST, so using it as the oracle's expected count was circular. Gate green, 2.05 s, now comparing 40 frames against ffmpeg's 40 rather than a self-fulfilling number. The sweep's "known site" anchor MOVED with the fix: it used to assert `pictures.len()` was still present, which went red the moment the fix landed. It now asserts the opposite -- no site may pass `pictures.len()` again -- plus that the dominant `frames.len()` shape is still found, so the sweep cannot go quiet by either route. NOT DONE, and this is the honest part: 38 of the 39 fixable sites. The sweep prints a `candidate` (the numeric frame count in the gate's own encode call) and it resolves for exactly ONE gate; the rest encode inside loops or through per-gate helpers whose frame-count argument must be read per gate. I am handing those back with the method rather than editing 38 call sites on a guess, for the same reason r6 refused the 44-row table on an untrustworthy column. gate_coverage 15, refusal_inventory 15, count_vacuity 2, pin_inventory 3, and the fixed gate all green. 0 warnings. Lane-scoped CARGO_TARGET_DIR with touch-first.
test(av1): make the frame-count failure name the real cause, and classify the defectAhmet Kaan Gümüş · e107603
test(av1): make the frame-count failure name the real cause, and classify the defect
Main's r6 item 1, and it is the change that matters: a caller passing our own
decode's length as the oracle's expected count used to get
expected N 4:2:0 frames, ffmpeg said: <empty>
with an EMPTY tail, because ffmpeg runs at `-v error` and succeeds. The message
named ffmpeg, said nothing about where N came from, and sent the next reader
hunting ffmpeg for a count ffmpeg never chose. All three helpers
(`ffmpeg_decode_sequence`, `_10bit`, `_444`) now share `frame_count_diagnosis`,
which reports the caller's count, ffmpeg's ACTUAL count, the byte arithmetic, and
states that `frames` is the caller's assertion rather than a measurement -- and
that if it came from our own decode_stream(), the disagreement is OURS.
Measured, same probe as r5:
FRAME COUNT MISMATCH (4:2:0 192x128): the caller passed `frames=0`, ffmpeg
produced 1 frame(s) (36864 bytes, 0 byte(s) not a whole frame, at 36864 B/frame).
`frames` is the EXPECTED count the CALLER asserted -- it is NOT measured from
ffmpeg... the fix is on OUR side, not ffmpeg's. ffmpeg itself exited cleanly.
This converts most of the 44 from confusing to diagnosable WITHOUT touching a
single caller, which is the whole point: 44 edits of unclear value was the risk.
`count_vacuity` keeps the floor and gains the note r6 item 3 asked for, naming
the TWO defect classes so the next reader does not repeat r4's mistake:
MISATTRIBUTED RED (what these sites are) vs SILENT PASS (a different defect with
a different fix, which these are NOT).
Sweep result, after fixing two detection bugs of mine: 61 sites, 17 spec-pinned,
44 not, across 30 distinct gates. The line/gate/count columns are exact (a
line-based scan with no body slicing). The `pixel_comparing` column is
APPROXIMATE and under-reports -- I sampled three gates it marks `false` and all
three plainly compare planes (4-5 plane-compare lines each). Its body slice is a
hand-rolled brace walk, and this crate's compare idioms vary enough that the
heuristic is not trustworthy. I am reporting that rather than shipping a 44-row
table derived from it: the classification needs a reader, not a regex.
Sites FIXED at the source: none beyond r4's. The 44 are reported with gate and
count expression, and fixing them means deriving each count from the fixture or
from the encoder's own frame count -- per-gate work across 30 gates, which is the
next lane, not this commit.
gate_coverage 15 passed, refusal_inventory 15, count_vacuity 2, pin_inventory 3,
pinned_golden3 green. 0 warnings. `#[ignore]` unchanged at 34.4:4:4 intrabc rect chroma: size the plane block from ss_size_lookup, not a halvingAhmet Kaan Gümüş · e7a1a68
4:4:4 intrabc rect chroma: size the plane block from ss_size_lookup, not a halving
Rebuilt on f33b9d41 (wave3c-b). decode_intrabc_rect sized a rect intra-BC
block's chroma plane block with a hardcoded 4:2:0 halving. libaom decides that
shape twice and neither site halves: av1_get_max_uv_txsize (blockd.h) is
ss_size_lookup[bsize] -- bw >> ss_x by bh >> ss_y at (px >> ss_x, py >> ss_y)
-- and get_vartx_max_txsize (blockd.h:1447) reads that plane block as
max_txsize_rect_lookup[plane_bsize], with decode_token_recon_block
(decodeframe.c:972-1005) walking the units from it. At 4:4:4 an 8x16 luma
block's chroma plane block is 8x16 and libaom codes it as ONE TX_8X16; the
halving read that same footprint as ONE 4x8 rect unit. This also UNSCOPES
lane-whtshape's `if lossless` conditional, which named the lossy 4:4:4 cell as
another lane's open cell. Identical arithmetic at 4:2:0.
MEASURED by trace, not by reading. This commit adds EC_IBCTX to
read_coeffs_rect (w, h, skip_ctx, sign_ctx, entry/post STREAM BIT, call site
via #[track_caller], deliberately NO plane label), EC_IBCTX2 to read_coeffs,
and EC_IBCBLOCK to decode_intrabc_rect; pairs against the oracle's EC_ECDUMP_IN
by stream bit position. Caller and plane, previously unestablished:
oracle bit 6870 plane=0 mi=(92,104) tx=7 (TX_8X16) all_zero=0
ours bit 6885 8x16 skip_ctx=0 read_inter_plane_rect
oracle bit 6878 plane=1 mi=(92,104) tx=7 (TX_8X16) all_zero=1
ours bit 6893 4x8 skip_ctx=0 read_inter_plane_rect all_zero=0 <-- FORK
oracle bit 6879 plane=2 mi=(92,104) tx=7 (TX_8X16) all_zero=1
The txb_skip VALUE first disagrees one unit before the bit position does.
Reverting only the two arithmetic lines makes the gate's luma floor bite at
sample 205264 -- the exact ceiling lanes/av1444rect.report.md rounds 3-4
documented.
The gate doc states the CORRECTED finding, not the retracted one: the
coefficient ladder is NOT exact. Measured here with the 0-bit filter on BOTH
sides -- oracle 2395 all_zero reads (2359 with a real position), ours 3999
lines of which 1326 consumed bits, 71 interval matches. The chroma tail is a
second ENTROPY fork (~1069 reads missing), first at U/V (160, 80) = mi
(20, 40); the gate pins a measured per-plane exact prefix [307200, 51360,
51360] and says so. The doc also states that pairing must be by BIT INTERVAL,
not by index, and names the one-line oracle instrumentation that unblocks it
(aom_reader_tell after the aom_read_symbol at decodetxb.c:158).
Gate guard calls main's shared aomdec_available(NAME): ONE presence-check
shape in the crate, and with EC_AV1_REQUIRE_AOMDEC / EC_AV1_REQUIRE_AOMENC set a
missing aomdec FAILS instead of reporting green with the compare skipped.
A/B on a real tree -- `git diff main --stat` is exactly 2 files, +271/-20,
zero mu_chunk_order / read_intra_chroma_lossless churn, zero scripts/ touched;
both halves rebuilt in a lane-private target dir with touch before each run:
MAIN ONLY (f33b9d41) MAIN + THIS LANE
-- list 753 tests 754 tests (+1 = my gate)
444 ok. 36 passed; 0 failed ok. 37 passed; 0 failed
lossless ok. 25 passed; 0 failed ok. 25 passed; 0 failed
intrabc_rect ok. 6 passed; 0 failed ok. 7 passed; 0 failed
gate_coverage ok. 13 passed; 0 failed ok. 13 passed; 0 failed
refusal_inventory ok. 19 passed; 0 failed ok. 19 passed; 0 failed
Zero failures on either half; no test green on main is red here. Full batch:
a_444_intrabc_rect_chroma_plane_block ok 1 (4:2:0 twin byte-exact; luma
byte-exact 307200/307200; U and V byte-exact to sample 51360),
a_444_intrabc_rect4 ok 1, lossless_tx_tests ok 5, cargo check --all-targets 0
errors 0 warnings.
Straggler twins of the same halving are NAMED in the report, not merged:
decode.rs:16758 in decode_intrabc_owned_rect and decode.rs:19846 in
cfl_ac_q3_at. Neither is reached on this lane's witness, so fixing them would
be an unmeasured change to another path; lane-av1oraclepost's class sweep should
take them. The 3-way apply reported no conflict in either region.ec-av1: the clip gates stop skipping green on an absent fixture rootAhmet Kaan Gümüş · 1f91edd
ec-av1: the clip gates stop skipping green on an absent fixture root The 1080p multi-tile gate printed 'SKIP the 1080p tile round trip: no fixture' and libtest reported ok on any tree without the gitignored root fixtures/ -- which is every linked worktree. Eleven clip gates had that shape, and none of them had an env that made the absence RED, so EC_AV1_REQUIRE_FFMPEG=1 (a batch saying 'this gate must run') did not help. New crates/ec-av1/src/library_fixture.rs owns the real-library fixture root and the one presence probe. It resolves EC_FIXTURES FIRST, which is the root scripts/verify-fixture-library.sh validates: the preflight and the gates used to read two different directories, so pointing EC_FIXTURES at a library elsewhere printed 'resolve 0 missing' and GREEN while every clip gate skipped. It fails under EC_REQUIRE_FIXTURES / EC_AV1_REQUIRE_FFMPEG / EC_AV1_REQUIRE_AOMENC and otherwise prints exactly one SKIP line naming the resolved path and the three ways out. Every clip gate now routes through it, the per-clip 'missing' drops in the BD-rate and TPL probes included, and the preflight's last word is GREEN-WITH-FINDINGS rather than a bare GREEN over a reported mode-(i) finding. gen-fixture-library.sh learns the resolver's library-relative literal so RESOLVE keeps checking the clip rows instead of losing them the moment a gate stops spelling ../../fixtures.
lane-av1refusalspan: bound a proving gate's body by its own closing braceAhmet Kaan Gümüş · cc885c2
lane-av1refusalspan: bound a proving gate's body by its own closing brace
The refusal inventory's anchor check needed a gate's own text, and the
window rule it used ("the body ends at the next `fn` at the same
indentation, or at end of file") is not a function boundary on this tree:
a top-level `#[test] fn` in decode.rs has its next same-indent `fn` tens
of thousands of lines away, so the window reached end of file constantly
and one row's 27,427-line "body" was satisfied by the CHROMA sibling's
string seven lines down.
`gate_body` now ends the slice at the brace that closes the gate's body,
found by a scan that walks Rust rather than lines: string, raw-string,
byte-string, char and lifetime forms, line comments and nestable block
comments are skipped, so a brace inside one cannot move the boundary.
Every failure mode is a FAILURE -- no definition, a definition that is
never closed, an ambiguous name, or a body that still carries another
same-indent `fn` -- and none of them widens the window.
Re-measured over real bodies: 26 rows quote the whole refusal string, 7
quote its leading clause, 0 match neither. Nine rows the previous
measurement counted as anchored were not (their anchor was neighbour
text), so the nine gates now name the refusal they prove and pin its
guard site through `pins_refusal`.
New tests: the boundary's own non-vacuity (neighbour isolation, a brace in
a literal, the last function in a file, an unclosed body), and the same
boundary exercised over all three real sources.lanes: classify the ignored ec-av1 probes, un-ignore the 1080p tile gateAhmet Kaan Gümüş · 408e7cf
lanes: classify the ignored ec-av1 probes, un-ignore the 1080p tile gate
lane-av1probes. The release triage dispositioned the 15 process-global gates
and skipped the probe/benchmark set; that set was a black box. This lands the
classification and the three fixes it found.
Measured (release, one cargo invocation per test name, EC_AV1_REQUIRE_FFMPEG=1
EC_AV1_REQUIRE_AOMENC=1 EC_REQUIRE_FIXTURES=1, TMPDIR off the tmpfs) on server
host-a and on the workstation for the real-library rows: 38 ignored
non-gate items at base 745c60e7 -- 32 REAL DIAGNOSTIC VALUE, 5 STAGING, 1
ROBUST-RED, 0 DEAD WEIGHT, 0 decoder defects. Nothing in the set is dead; what
was broken is the REASON TEXT, which is what this commit fixes.
1. UN-IGNORE a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders.
It was ignored only for its wall ("1080p encode: minutes") and is the only
1080p arm in the ignored set that ASSERTS. Plain release run on this tree:
1080p 2x1/2x2/4x2 tiles, 84488/84208/84685 bytes, all sample-exact, ok in
27.39 s. The check is a per-frame first-differing-luma-sample comparison
against ffmpeg, not a length or non-empty smoke. Both skippable halves route
through the crate's EXISTING probes (h264_clip_frames -> have_ffmpeg() +
clip.exists(), and have_ffmpeg() for the ffmpeg arm); no new presence-check
shape. Ignore count 51 -> 50.
2. REASON REWRITES, 11 items whose reason misdescribed them. The wall
benchmarks now carry their measured wall and their host floor
(tile_search_wall_1080p TIMED OUT at 2400 s on a 4-core server and takes
1243 s on 12 cores); filter_stage_wall_film says it measures the BARS
fixture without EC_AV1_WALL_CLIP; the four bare #[ignore] scratch probes
name their env vars, including the three geometry vars of
scratch_isolate_pinned_mismatch whose 64/64/1 default is wrong for every
real pin; sweep_rectx_recipes stops carrying a lane label;
tpl_intra_denominator_histogram stops claiming film fixtures it never
opens; the two prune_k sweeps say they are local-run because their clip
paths are hard-coded /home/user absolutes; probe_split says it panics on
its own lossless synthetic rows.
3. stage_timing_breakdown_inter printed "motion search (NEWMV) 17.82ms (of
which interpolation 148.63ms)" -- a sub-number larger than its parent. Both
timers were always real; the print's attribution was wrong. Bucket 0 times
only the NEWMV/GLOBAL sub-search (stage_since(0) fires after
find_best_new_mv and the global-MV search), and bucket 1 is EVERY
mc::predict call including a committed block's final prediction, which runs
outside any bucket-0 region. Bucket 1 is now its own top-level row with the
overlap quantified and explicitly not added to the total; the residual is
labelled for what it contains. The accounting closes: 107.27 + 157.56 =
264.83 ms against a 264.82 ms wall.
No decoder logic changed: every source edit is a #[ignore] reason, a doc
comment, or the one eprintln block above.lane-av1loss444kf: a sub-8x8 RECT leaf's chroma unit gets the LEAF's reachAhmet Kaan Gümüş · cecc096
lane-av1loss444kf: a sub-8x8 RECT leaf's chroma unit gets the LEAF's reach The 4:4:4 lossless 256x256 key frame (109215 B, sha256 4563a01f17786000...) decoded with 21 U + 28 V samples wrong over x 196..207 / y 200..203, luma exact, entropy bit-locked over all 81933 symbol reads and its 12288 transform units at identical absolute (plane, x, y). The whole filter chain is inert on both sides of that frame (the oracle's pre-deblock, post-deblock, post-CDEF and final dumps are byte-identical to each other, and so are ours), and on a lossless frame the pixel delta IS the prediction delta -- so the residual, the dequant scale and the 4x4 WHT placement are exonerated by arithmetic, not by search. libaom asks has_bottom_left with the LEAF's bsize, the unit's (row_off, col_off) and tx_size, and answers TRUE inside the left column whenever `row_off + count < plane_bh_unit` -- the block's own next row, already reconstructed. A 4x8 leaf's first TX_4X4 unit therefore has four real bottom-left samples. sub8_leaf_chroma444 looked a standalone BLOCK_4X4 up at the unit's own position instead, got false, and PlaneBuf::edges replicated the last left sample across the edge's full reach: the unit predicted D203/CFL from a fabricated edge. A from-scratch transcription of libaom's z3 + edge filter + upsample reproduces all 16 oracle samples of each damaged unit with the real column and all 16 of ours with the replicated one, and the damage in the 2nd and 3rd blocks is that first wrong block's pixels read back as their left edge. Fix: Reach::of_tu over the leaf's own (bw, bh, col_off, row_off, tx) with the block reach the function already computes -- at both lossless 4:4:4 arms, the intra one and the intrabc one, which is what the 4:2:2 twin of this function was already fixed to do (lane-av1-422kf2). 49 -> 0 on the 109215 B carrier and on the independent 109909 B one. Witness: a_lossless_444_sub8_rect_leaf_chroma_reach_decodes_the_key_frame_pixel_exact -- live re-encode pinned by length and fnv1a64, 4:4:4 header asserted, key frame byte-exact against aomdec --limit=1, and the new sub8_chroma444_lossless_tu_reach_hits() counter (86 on this cell) proving the fixed path fired. Red-before with only the two reach expressions reverted: "differs from aomdec in 49 samples (first Some((1, 201, 200, 160, 159)))". 4:2:0 and 4:2:2 are structurally untouched (every call site sits behind `chroma_444`), and a square 4x4 leaf is provably unchanged (of_tu falls through to the block's own answer, which for a square leaf IS the old lookup). -- lossless 444: 48/0. -- 420: 2/0. -- intrabc: 21/0. -- 422: 6/0.
wave-3c-a: route the lm444loss-corr gate's oracle arm through aomdec_availableAhmet Kaan Gümüş · d48c08a
wave-3c-a: route the lm444loss-corr gate's oracle arm through aomdec_available
The merged branch's new gate guarded its pixel compare with a bare
`aomdec_path().is_file()`. The oracle-presence scan merged in wave 3b
(7a865ee7) rejects exactly that shape outside the probe that owns it, and
reds on the merged tree:
gate_coverage::tests::no_tool_presence_check_outside_its_probe
1 bare tool presence check(s) outside a probe
stream.rs:7271: if aomdec_path().is_file() {
A bare is_file() skips the compare with NO env escape, so under
EC_AV1_REQUIRE_AOMENC=1 the gate would still report green with the oracle
compare never run -- the "unreadable gate is unproven, not clean" class.
`aomdec_available(NAME)` carries the env-escape assertion and the SKIP
line, so the hand-rolled else-arm is dropped rather than kept alongside.
cargo test -p ec-av1 --lib -- gate_coverage refusal_inventory count_vacuity
29 passed; 0 failed