Commits
Commits on
717112f4aba3cd1fd83d7e75a2d579fae34a9a192026-10-05
lanes: annotate the oracle-depth report's call-site countAhmet Kaan Gümüş · 717112f
lanes: annotate the oracle-depth report's call-site count The review counted 6 surviving 8-bit call sites, not 8. The original sentence stays; the correction sits under it.
Merge lane/av1oracledepth: depth-generic 4:4:4 oracle helperAhmet Kaan Gümüş · 07bdafe
Merge lane/av1oracledepth: depth-generic 4:4:4 oracle helper ffmpeg_decode_sequence_444 was 8-bit only, so a 10-bit 4:4:4 gate could not compare without ffmpeg converting. The new helper guards shape and depth from the stream's own header before spawning ffmpeg. ffmpeg_decode_sequence_10bit now asserts depth 10 as well as 4:2:0 shape. The palette gate's dead Err arm, which still accepted the pre-lift refusal string, now panics on any decode error. Reviewer PASS. Report prose says 8 existing call sites; there are 6.
Merge lane/av1422rect4dead: close the unreachable 4:2:2 else armAhmet Kaan Gümüş · dfe201c
Merge lane/av1422rect4dead: close the unreachable 4:2:2 else arm decode_rect4_16_intrabc's else arm still halved chroma as 4:2:0. The only shape that reaches it at ss (1,0) is a VERT_4 4x16 strip, and both 16-level dispatches refuse that shape before the call. Closed with an assertion, not a comment. Reviewer PASS: one caller, both callers under the guard, the assertion is not on the 4:2:0 or 4:4:4 path, the gate reds if the assertion string is absent.
🧪 ec-av1: depth-generic 4:4:4 ffmpeg oracle helper, 10-bit depth guard, dead 4:2:2 refusal arm deletedAhmet Kaan Gümüş · fd7986bBrowse files
lane/av1422rect4dead: close decode_rect4_16_intrabc else arm at ss (1,0)Ahmet Kaan Gümüş · 2cfb795
lane/av1422rect4dead: close decode_rect4_16_intrabc else arm at ss (1,0) The (pw/2, ph/2) pair-geometry else arm is unreachable at 4:2:2: its only caller chain is the two 16x16-level 1:4 arms, both under refuse_invalid_subsize((16, 16), part16), which at ss (1, 0) refuses the VERT_4 subsize (4, 16) -- the only shape that could reach the arm there (partition_subsize_dims((16,16), PARTITION_VERT_4) == (4, 16) is in PLANE_BLOCK_INVALID_422). The surviving HORZ_4 16x4 strip takes own422. At ss (1, 1) the arm is live and correct; at ss (0, 0) own444 wins first. Closed with an assertion naming the shape and the subsampling, per the repo rule for proven-unreachable paths, plus a source-scan gate that reds when the assertion or either 16-level guard is removed. 4:2:0 and 4:4:4 behaviour unchanged.
Merge lane/av1422aomdec51: 51/51 4:2:2 cells byte-exact in decode orderAhmet Kaan Gümüş · df788de
Merge lane/av1422aomdec51: 51/51 4:2:2 cells byte-exact in decode order The bookkeep census had 51/51 against ffmpeg in display order and had not re-run aomdec. Same 51 cells, decode order, depth-correct dumps, 869 frames, 0 diverging. The comparator bites: a one-sample flip moves the count by 1 at both 8-bit and 10-bit, and a first control that did not bite was thrown out. Report only.
ec-av1: the 51-cell 4:2:2 census re-measured in decode order against aomdecAhmet Kaan Gümüş · 68799ed
ec-av1: the 51-cell 4:2:2 census re-measured in decode order against aomdec The av1bookkeep corpus re-measure was the ffmpeg oracle in display order and left the aomdec decode-order census unmeasured. This lane ran that other instrument on the same 51 cells (cells_ff.json x formats.json 4:2:2 probe, sha256-verified cell by cell): our EC_AV1_FINAL_DUMP vs instrumented aomdec rung 12, both depth-correct, both decode order, hidden frames included -- 51/51 byte-exact, 869 frames, 0 diverging, 0 comparator-error. The liveness control is measured on the same compare path the verdicts use (compare_only, no re-decode): one sample flipped in the oracle dump moves the count by exactly 1 and lands on the injected offset, 8-bit and 10-bit (u16 LE low bit) alike, and restores to EXACT. The control caught two harness defects before any verdict was quoted: a compare path that re-decoded over its own injected flip (false control), and a Y-plane split assuming 1/3 of bytes where 4:2:2 Y is 2/3. Report only; no source change. Worktree lane/av1422aomdec51, base c38dd788. Run on user@host-b; instrumented aomdec confirmed before the run.
Merge lane/av1stale422prose: stale 4:2:2 refusal prose, comment-onlyAhmet Kaan Gümüş · e401114
Merge lane/av1stale422prose: stale 4:2:2 refusal prose, comment-only The lift already decodes 4:2:2. Nine comments still told a reader the sequence-header refusal stood, including three gates whose own byte-exact arm is the live assertion. Diff is comments only (0 non-comment lines). The palette gate's Err arm that still matches the old refusal string is code, not prose, and is left for a behavioural lane.
ec-av1: rewrite stale 4:2:2 sequence-header-refusal prose after the liftAhmet Kaan Gümüş · d0f9e9a
ec-av1: rewrite stale 4:2:2 sequence-header-refusal prose after the lift Comment-only honesty sweep. Every sentence a current reader would take as '4:2:2 still refuses / only a bypass can reach it' is rewritten to name the gate that now carries the claim (the pinned 422 decode gates, the palette window gate, the intrabc strip witness). Historical pre-lift records and the subsize/uncodable-shape refusals are left standing. decode.rs untouched. Proof: git diff -U0 with comment lines removed is empty; cargo check -p ec-av1 --tests clean; the_440_cell_is_not_a_codable_chroma_shape ok.
2026-10-04
Merge lane/av1422ibcrect: the unwitnessed 64-root chroma gather is entered and inertAhmet Kaan Gümüş · 12fd6d3
Merge lane/av1422ibcrect: the unwitnessed 64-root chroma gather is entered and inert decode_intrabc_owned_rect's non-split chroma gather is reachable at 4:2:2 on a 64x32 strip, not a 128-root. A 384x288 frame forces the last superblock row to code HORZ as one bit. That stream enters the arm 24 times and is byte-exact vs ffmpeg. The square gather doubles the vote magnitude, and dc_sign_ctx is a signum, so the row does not move (0 of 24). An inverted vote moves 24 of 24, so the zero is a measurement. The census's cited branch needs TX_MODE_SELECT leaves; this witness is TX_MODE_LARGEST and hits the leaves==None twin. No decode change. The stream is reproducible from the recipe and sha in the report; it is not pinned.
lane/av1422ibcrect: the ss (1,0) non-split chroma gather is entered by a real 4:2:2 64x32 intraBC stripAhmet Kaan Gümüş · b1b8a39
lane/av1422ibcrect: the ss (1,0) non-split chroma gather is entered by a real 4:2:2 64x32 intraBC strip Witnesses the site lane/av1422gathercensus left STOP-unwitnessed. Entry condition: decode_intrabc_owned_rect is reached only through decode_block_rect64 at the 64 root; its non-split chroma gather needs cw = bw >> ss_x <= 32 and ch = bh >> ss_y <= 32, i.e. a 64x32 (PARTITION_HORZ, or the 64x32 strip of HORZ_A/HORZ_B) or 64x16 (PARTITION_HORZ_4) strip at ss (1,0), non-skipped, non-lossless. Four aomenc encodes (all 4:2:2, sb64, screen content, intrabc, cpu-used=0, each under 0.6 s of encode time). One of them - a 384x288 geq sinusoid whose last superblock row is half outside the frame, which forces the 64-root partition to the gathered HORZ/SPLIT edge bit - enters the site 24 times (6 strips x 4 frames) with bw=64 bh=32 cw=32 ch=32 skip=false, and decodes byte-exact against ffmpeg on all four frames. The probe measured both gathers at every entry: the luma-span around_mi_rect and the pair rule around_mi_422_chroma. The double count is visible in the vote magnitudes (full = 2 x sampled where the extra cells are coded) but changes no dc_sign_ctx and no coded bit on any of the 24 entries, so no symbol and no pixel differs - which is why this stream cannot name a first wrong sample. A deliberately inverted vote makes the same print move 24 of 24 times, so the zero is a measurement, not an inert comparator. Second finding: the branch entered is the leaves == None twin of the census's cited call sites (which sit in the leaves.is_some() branch and additionally require TX_MODE_SELECT plus a txfm_partition split; this stream is TX_MODE_LARGEST, so that branch fires 0 times). No source change: decode.rs at this tip equals the base commit. The only commit is lanes/av1422ibcrect.report.md. No fixture is committed; the witness is reproducible from the recipe and sha256 recorded in the report.
Merge lane/av1422gathercensus: the ss (1,0) chroma-gather enumeration is closedAhmet Kaan Gümüş · 3973273
Merge lane/av1422gathercensus: the ss (1,0) chroma-gather enumeration is closed 98 gather call sites. 39 already route through around_mi_422_chroma. The rest are inside a 4:4:4 or 4:2:0 guard, or are a 1-cell gather where the pair rule reads the same cell. One site is structurally reachable at 4:2:2 and unwitnessed: decode_intrabc_owned_rect's around_mi_rect at the non-split chroma block. Zero hits on the committed 4:2:2 corpus, and the instrument fired on a 4:4:4 control, so the zero is a real zero. No route without a witness. Comment only. No decode change.
lane/av1422gathercensus: close the ss (1,0) chroma-gather enumerationAhmet Kaan Gümüş · 1530537
lane/av1422gathercensus: close the ss (1,0) chroma-gather enumeration Mechanical census of every chroma coefficient-context gather in decode.rs that can run at ss (1,0) without around_mi_422_chroma: 39 already routed, 1 unwitnessed (decode_intrabc_owned_rect 18022/18061 — structurally reachable, 0 hits over the committed 4:2:2 corpus), 9 guarded to 4:2:0/ 4:4:4 only, 4 single-cell-equivalent, rest luma-only. Comment-only change; report in lanes/av1422gathercensus.report.md.
Merge lane/av1muchunkluma: c3 and c4 were the intra-in-inter gather, already fixedAhmet Kaan Gümüş · 4674af4
Merge lane/av1muchunkluma: c3 and c4 were the intra-in-inter gather, already fixed The class report's luma-first samples (Y(62,6) and Y(126,3) of shown frame 1) reproduce on the tree before bd762046 and are gone on current main. Both streams enter the intra-in-inter side>64 walk (64 and 96 units) and the compound counter stays 0. Pinned and gated. Restoring the square gather reds both gates on those luma samples. No decode change.
ec-av1: pin the two compound-content 4:2:2 streams the iis gather closed, and gate themAhmet Kaan Gümüş · d04b2aa
ec-av1: pin the two compound-content 4:2:2 streams the iis gather closed, and gate them lane-av1muchunk422class left c3_grad128_comp and c4_grad256_comp diverging luma-first (Y (62, 6) and Y (126, 3) of shown frame 1) and reported them as "not the DC-sign class". Re-measured on current main: both are byte-exact, and the site that owns both is the intra-in-inter `side > 64` mu-chunk chroma gather fixed by bd762046 -- the class report's tree predates that fix, and the pre-fix control binary reproduces both streams' first wrong samples exactly. No decode code is changed here. Adds fixtures/422_muchunk_iis_128root_grad128.obu (34449 bytes, sha256 e801ce5596c9ed72) and fixtures/422_muchunk_iis_128x256_grad256.obu (68925, 90232481d39afa53) -- the hunt's c3/c4 bytes, re-encoded byte-identically by this lane from the frozen grad128/grad256 y4m sources with the hunt's argv. Two gates assert pinned length+FNV, 4:2:2 sequence-header shape, the intra-in-inter unit counter delta (64 / 96) with the compound-named counter unmoved, the oracle-free luma plane FNV of shown frame 1 plus the single sample that moved first (75 / 93) with shown frame 0 as control, then every plane of every shown frame against ffmpeg and the decode-order aom oracle (7 frames). Restoring the plain around_mi gather reds both gates on shown frame 1's luma plane; decode.rs was restored byte-for-byte afterwards.
Merge lane/av1muchunk422iis: the intra-in-inter side>64 gather was the bare around_miAhmet Kaan Gümüş · e1c8617
Merge lane/av1muchunk422iis: the intra-in-inter side>64 gather was the bare around_mi decode.rs:46820 called around_mi(unit_mi, unit_luma_w). At 4:2:2 that counts each chroma column twice, so the DC-sign row forks. The earlier sweep listed around_mi_rect and did not see this spelling. The walk now uses around_mi_422_chroma(unit_mi, unit_luma_w, unit_luma_h) at ss (1,0). The pinned i5_grad256_iis stream (667 bytes, sha 64794f27...) is byte-exact vs ffmpeg on all 6 shown frames. Restoring the square gather reds the gate at V[12196], chroma (190, 36), the pre-fix value 147. 4:2:0 and 4:4:4 keep the old call. The compound walk is untouched. c3 and c4 still diverge luma-first.
ec-av1: route the intra-in-inter side>64 mu-chunk chroma gather through the 4:2:2 pair ruleAhmet Kaan Gümüş · 5b9e8bc
ec-av1: route the intra-in-inter side>64 mu-chunk chroma gather through the 4:2:2 pair rule The intra-in-inter `side > 64` mu-chunk walk gathered its per-unit CHROMA coefficient context with the plain luma `around_mi`, which at ss (1, 0) sums `unit_luma_w / MI` above cells where libaom sums `txb_w_unit` -- twice as many -- so `dc_sign_ctx`'s signum flipped whenever the doubled above vote cancelled the left one. Route it through `around_mi_422_chroma` with the unit's per-axis luma footprint, the same ss (1, 0) gate the eight sibling chroma gathers use; 4:2:0 / 4:4:4 keep the plain gather verbatim. Pins the hunted stream i5_grad256_iis.obu as fixtures/422_muchunk_intra_in_inter_128x256.obu (667 bytes, sha256 64794f278eee738d) and gates it: the site counter delta is 96, shown frame 2's V plane is byte-exact against ffmpeg (all planes, all 6 shown frames) and against the decode-order oracle (7 frames), and restoring the square gather reds the gate on V (190, 36) of shown frame 2, ours 147 vs ffmpeg 146. Does not touch the compound walk, c3 or c4.
Merge lane/av1muchunk422class: the DC-sign fix closes the compound arm, not the classAhmet Kaan Gümüş · 8e08618
Merge lane/av1muchunk422class: the DC-sign fix closes the compound arm, not the class The hunt's compound streams c1 and c2 were wrong before the gather fix and are byte-exact after it. The pinned compound stream stays exact. The class is not closed. i5_grad256_iis (128x256, intra-in-inter, 0 compound hits, 24 site-8 hits) is unchanged by the fix and still wrong at V chroma (36, 190) of shown frame 2. The first wrong symbol is the same DC-sign row fork. The walk is the intra-in-inter side>64 loop, which still calls around_mi(unit_mi, unit_luma_w) at decode.rs:46820. The earlier sweep listed around_mi_rect sites and did not see this bare around_mi call. c3 and c4 diverge luma-first and are a different defect. No decode change.
lane-av1muchunk422class: the DC-sign fix closes the compound arm, not the classAhmet Kaan Gümüş · 078084b
lane-av1muchunk422class: the DC-sign fix closes the compound arm, not the class Re-decoded the hunt's still-present streams (no aomenc spent) against ffmpeg per plane on current main. c1_rot128_comp and c2_rot128_comp_lo -- the two other compound-arm 128-root 4:2:2 streams -- are byte-exact on all six shown frames post-fix, from pre-fix U/V (and trailing Y) divergence. The class itself is NOT closed: i5_grad256_iis still diverges, byte-identical before and after the fix, first wrong sample V chroma (190,36) of shown frame 2, and its first entropy fork is the same signature the fix targeted -- dc_sign_ctx 1 vs the oracle's 0 on a TX_32X32 chroma sign -- but in the intra-in-inter side>64 walk (decode.rs:46820 still gathers with the un-pair-ruled around_mi). c3/c4 diverge luma-first and are not this class. Report only; no code changed.
Merge lane/av1422mismatch9: the span-mismatch 9 is a shape count, not a pixel missAhmet Kaan Gümüş · 483046d
Merge lane/av1422mismatch9: the span-mismatch 9 is a shape count, not a pixel miss SB128RECT_REPLAY_SPAN_MISMATCH_HITS compares luma_span (chroma_tx << ss_x) with luma_span_h (chroma_tx << ss_y). At 4:2:2 those differ by construction, so the counter fires on every 128-root rect unit of that shape. Both pinned strips read (72 replay, 9 mismatch), and every one of the 144 replayed units is 64x32. The replay re-stamps the same left/above context cells. It writes no pixels. The strip pin stays byte-exact vs ffmpeg. The gate now asserts the measured pair (72, 9) and reds if the expected count is flipped to 10. No decode behaviour change.
av1: assert the measured 9 on SB128RECT_REPLAY_SPAN_MISMATCH_HITSAhmet Kaan Gümüş · 08f717d
av1: assert the measured 9 on SB128RECT_REPLAY_SPAN_MISMATCH_HITS The counter reads 9 on each pinned `422_intrabc_sb128_strip*.obu` cell and nothing explained it. It is not a pixel miss: the predicate (`luma_span != luma_span_h`) is a span DIFFERENCE, true by construction at ss (1,0); the replay re-stamps with the same per-axis pair the in-loop walk used; and `record_mi_chroma` writes only the left/above context arrays, no pixel. A temporary trace dumped 144 replayed units, all wh=(64,32). `the_422_block_128rect_chroma_chunk_gather_stays_per_axis` now asserts the measured (72, 9) per pin, with the reason, and its doc plus the counter and accessor docs are corrected to say the counter is a 4:2:2 shape test, not the divergence test it was named for. Red-before: flipping the expected count to 10 fails with left 9 / right 10. Report: lanes/av1422mismatch9.report.md
Merge lane/av1422gather3: the 128-root rect chroma gather takes the 4:2:2 pair ruleAhmet Kaan Gümüş · cb271bc
Merge lane/av1422gather3: the 128-root rect chroma gather takes the 4:2:2 pair rule decode_block_128rect was the one of the three named gathers that a 4:2:2 stream can enter. It fired 72 times on each pinned sb128 strip and still used around_mi_rect, which counts each chroma column twice. It now uses around_mi_422_chroma at ss (1,0). Output is unchanged on all 21 committed 4:2:2 cells, so the gate is a source scan plus the 72-unit reach counter. Dropping the guard reds it: the ss (1,0) guard must appear once, found 0. The other two named sites sit inside chroma_444 guards (ss 0,0). Zero hits on all 21 committed 4:2:2 cells. Not routed. Comments only.
av1: the 128-root rect chroma gather was not taking the 4:2:2 pair ruleAhmet Kaan Gümüş · 973f04a
av1: the 128-root rect chroma gather was not taking the 4:2:2 pair rule decode_block_128rect's per-chunk chroma unit walk gathered its coefficient context with the square-cut around_mi_rect, so at ss (1, 0) its above dc vote summed 16 luma mi cells where libaom's get_txb_ctx_general reads txb_w_unit = chroma_tx / 4 = 8 chroma cells (one chroma column per pair of luma mi columns -- both luma cells of a column carry the covering unit's whole-unit dc sign). The gather now routes through around_mi_422_chroma under the ss guard, verbatim around_mi_rect at every other shape, the same rule the mu-chunk walks take. Reachability measured: the walk fires at ss (1, 0) on both pinned 422_intrabc_sb128_strip*.obu cells, 72 chroma unit gathers each (sb128rect_chroma_replay_hits().0). No committed cell discriminates the change -- all 21 committed 4:2:2 cells are byte-exact against ffmpeg with the pair rule, exactly as the pre-change tree was -- so the_422_block_128rect_chroma_chunk_gather_stays_per_axis pins the routing by source scan and carries a 72-unit reachability arm. Both mutations (guard removed; guard kept with the square gather) red it. lanes/av1muchunk422sym.report.md's other two rows are closed as unreachable at ss (1, 0): decode_intra_sub8_leaf and decode_inter_sub8_rect2 gather those chroma contexts only inside their if chroma_444 arms (ss 0/0), 0 probe hits over the whole 4:2:2 corpus. Also corrects decode_block_128rect's stale prose that called 4:2:2 refused by name (it is admitted; SB128RECT_REPLAY_SPAN_MISMATCH_HITS fires there on byte-exact cells).
Merge lane/av1muchunk422sym: 4:2:2 mu-chunk chroma dc-sign was counting luma cellsAhmet Kaan Gümüş · a117ce2
Merge lane/av1muchunk422sym: 4:2:2 mu-chunk chroma dc-sign was counting luma cells The compound 128-root pin's V miss is the DC sign of the last mu chunk on decode frame 2. The sign value matched; the CDF row did not. around_mi_rect at ss (1,0) counts each chroma column twice, so the above vote is -8 instead of 0 and dc_sign_ctx picks the other row. The walk now uses around_mi_422_chroma on that axis pair, same as the other 4:2:2 chroma gathers. Forcing the compound site back to the square gather reds the pin: shown frame 2's V plane moves, first sample chroma (36, 60), the sample the diagnosis named. 4:2:0 and 4:4:4 stay on the old gather.
av1: the 4:2:2 mu-chunk walk's chroma dc-sign context read luma cellsAhmet Kaan Gümüş · f2fb6dd
av1: the 4:2:2 mu-chunk walk's chroma dc-sign context read luma cells The compound 128-root mu-chunk walk (and its single-reference and IntraBC twins) gathered each chroma unit's coefficient context with the plain rect gather. At ss (1, 0) one CHROMA column spans two luma mi columns, so that gather sums the unit's above dc sign over 16 luma mi cells where libaom's get_txb_ctx_general reads txb_w_unit = 8 CHROMA cells. dc_sign_ctx sees only the vote's signum, so the doubled above vote flips its row exactly when above and left cancel. Measured on 422_muchunk_compound_128root.obu, decode frame 2, the last mu chunk (cr 1, cc 1) of the walk: our V unit at chroma (bc 8, br 16) read dc_sign_cdf[1] where the oracle read row 0 -- same sign value, different CDF row, so the entropy state forked there. It is the first wrong symbol of the stream, and the fix makes all 7 decode-order frames byte-exact against the instrumented aomdec and all 6 shown frames byte-exact against ffmpeg. Route that gather through the 4:2:2 pair rule (around_mi_422_chroma) when ss is (1, 0), the plain rect gather everywhere else: 4:2:0 and 4:4:4 keep it verbatim and are unaffected (at 4:2:0 both extents double, so the signum never moved). Gate: a_422_muchunk_compound_128root_pinned_stream_reaches_its_unit_walk gains the exactness half the diagnostic lane handed over -- pinned fnv1a64 of shown frame 2's V plane (0xa0e58bf4207b29ba, pre-fix 0xc4e7fdb873433479) and of shown frame 0's control plane, plus the decode-order oracle compare. Restoring the square gather reds the pinned hash with exactly the pre-fix value. the_intrabc_128rect_chroma_chunk_walk_stays_per_axis now also pins that walk's 4:2:2 routing: its chroma chunk walk is reachable at ss (1, 0) on 422_intrabc_sb128_strip.obu (EC_IBC128_BANDS prints), but no committed fixture's votes cancel there, so the source scan -- not a pixel compare -- is what stops the routing being reverted. Residue named in lanes/av1muchunk422sym.report.md: the chroma rect gathers of decode_block_128rect, decode_intra_sub8_leaf and decode_inter_sub8_rect2 are the same class but different walks, and need their own reachability measurement.
Merge lane/av1muchunk422div: the compound 128-root miss is V coefficients, not the walk sizeAhmet Kaan Gümüş · 5ae8dcd
Merge lane/av1muchunk422div: the compound 128-root miss is V coefficients, not the walk size 422_muchunk_compound_128root.obu is luma-exact and U-exact. V is wrong on decode frames 2-5. Frames 3 and 5 are skip blocks inheriting the bad region. The intrinsic miss is the last mu chunk of the compound side>64 walk, chroma (32..63, 64..127). Prediction matches the reference. The dequant ladder matches the oracle until that chunk's last two chroma units, where signs diverge and our side emits one extra non-zero unit. The 4:2:2 stride at that site is already per-axis; restoring the square would reintroduce the OOB the lpf lane closed and would not touch this miss. No decode change. Next is a paired symbol ladder on that chunk's chroma context, not another size fix.
ec-av1: diagnose the 128-root compound mu-chunk divergence (no fix)Ahmet Kaan Gümüş · 3e6e38c
ec-av1: diagnose the 128-root compound mu-chunk divergence (no fix) 422_muchunk_compound_128root.obu is the counter witness for the compound `side > 64` mu-chunk walk. This lane measures where its V plane diverges from the oracle and names the arm. Measured (decode order, ours post-filter vs instrumented aomdec EC_AV1_FINAL_DUMP): Y and U bit-exact on every frame; V exact on frames 0, 1, 6 and 2138/2063/2105/1988 samples wrong on frames 2/3/4/5. Display order (ffmpeg rawvideo) agrees: 2063/2138/2105/1988 on shown frames 1-4. First wrong sample: decode frame 2, plane V, chroma (36,60) -> luma (72,60) -> mi (15,18); the intrinsic region is the walk's LAST mu chunk (cr=1, cc=1), mi rows 16..31 x cols 16..31, plus a deblock bleed band. A temporary env-gated probe at both mu-chunk allocation sites (EC_AV1_MUDBG, reverted) shows the compound site fires only for decode frames 2 and 4 (the two intrinsically wrong frames) and the single-reference twin only for frame 1 (bit-exact); every unit's cu/dst_start/chroma_stride/chroma_buf_h is as designed, so the walk's addressing is not the defect. Pre-filter dumps, EC_CPRED (prediction is a verified identity copy of the reference), and EC_DQCOEFF pairing (identical unit-for-unit until frame 2's last chroma units, which diverge at sign level and add one unit on our side) place the divergence in that chunk's chroma coefficient context. No code change: the charter's fix allowed only a square-restore at this site, and the probe proves the per-axis stride there is already correct (restoring the square would re-introduce the W_intrabc OOB the lpf lane closed) without touching this divergence. The pinned counter gate is untouched. Report: lanes/av1muchunk422div.report.md
Merge lane/av1muchunk422b: the two side>64 walks are reachable at 4:2:2Ahmet Kaan Gümüş · 960bdff
Merge lane/av1muchunk422b: the two side>64 walks are reachable at 4:2:2 The prior 12-attempt hunt read 0 because aomenc split every 128 superblock and the lossless path bypasses the allocation. Lossy 128-root streams enter both walks. The intra-in-inter pin is the one byte-exact stream of eight (391 bytes) and the gate asserts the counter moved; forcing the bump off reds it at 0 units. The compound pin is a counter witness only: 7 of 8 generated streams diverge from ffmpeg, so that gate does not claim pixels. A lossless control fires the guard and allocates 0 units, which is why a lossless hunt cannot see this site.
ec-av1: pin witnesses for the two side>64 mu-chunk walks at 4:2:2Ahmet Kaan Gümüş · 18c7610
ec-av1: pin witnesses for the two side>64 mu-chunk walks at 4:2:2 lane-av1muchunk422 reported "12 attempts, 0 entries" on the compound (site 2) and intra-in-inter (site 8) `side > 64` mu-chunk walks: every recipe it tried read `part128 none=0`, so aomenc split every 128 superblock on its 384x256 frames. Left there, the two walks had no witness at 4:2:2. Root cause of the miss: the streams that reach these walks are 128-as-the-whole-frame (PARTITION_NONE forced via --sb-size=128 and --min/max-partition-size=128) and LOSSY. Each arm has a lossless branch that returns before the unit loop, so the obvious lossless candidate reaches the guard and allocates nothing -- which is also why the prior lane's `site 2 = 0` reading was real, and why these counters count at the ALLOCATION and not at the guard. Two new per-unit counters, MU_CHUNK_COMPOUND_UNITS and MU_CHUNK_INTRA_IN_INTER_UNITS, bump at the arm's allocation; the compound one is routed through `is_compound` so the single-reference twin of site 2 (site 5), which shares this exact source text, does not alias it. Two pinned fixtures and two gates: - compound: counter witness ONLY (32 units). 7 of the 8 streams this lane generated diverge from ffmpeg and this fixture is one of the seven, so the gate asserts no pixels; the divergence is V-plane on a fixed column band and tracks the 128-root COMPOUND path (a NEW defect, out of this lane's charter). - intra-in-inter: byte-exact over 7 decode-order frames (6 shown + 1 hidden alt-ref) AND the site counter moved (16 units). Red-proven by forcing the bump off: the gate reds with "the site counter this gate names did not move". Both gates assert the other arm's counter at zero, assert the fixture is a 4:2:2 128x128-superblock stream, and pin length + FNV-1a64. The intra-in-inter gate also decodes W_intrabc.obu as a counter-proof: it fires the guard 8 times and allocates 0 units.
ec-av1: the BLOCK_INVALID table is not a doctestAhmet Kaan Gümüş · 4475a3b
ec-av1: the BLOCK_INVALID table is not a doctest rustdoc compiled the bare fence above BLOCK_4X8 and failed with "missing enum for enum definition". The lib suite on that same tree was 794 passed, 0 failed. Marking the fence as text removes the false test: the host that failed it now runs 0 doctests and passes.
2026-10-03
ec-av1: pin the flipped-oracle gate's frame count to the fixtureAhmet Kaan Gümüş · d5d2837
ec-av1: pin the flipped-oracle gate's frame count to the fixture a_420_oracle_comparator_counts_a_flipped_oracle_sample passed decoded.len() as ffmpeg's expected frame count. That is the count-vacuity shape the ceiling of 0 exists to catch, and it red the sweep on main and on both running server suites. The pin is 420_mixll_256x128_6f: 6 shown frames, asserted before the call, and that constant is what ffmpeg receives.
Merge lane/av1muchunk422: 12 attempts, 0 entries on the side>64 walksAhmet Kaan Gümüş · 6d3c29f
Merge lane/av1muchunk422: 12 attempts, 0 entries on the side>64 walks The two side>64 mu-chunk walks (compound, intra-in-inter) stayed at 0 on every 4:2:2 attempt. The instrument was live: the same probes read 272 and 628 on committed 4:2:0/128 controls, and 32 on a 4:4:4 intra-in-inter control. aomenc split every 128 superblock in these recipes (part128 none=0), so side>64 was never true. Four of the twelve were the same 16855-byte stream: a rate=1 source makes every inter frame a skip, so compound and global-motion flags changed nothing. No decode change, no pin. A later hunt has to force a 128 inter root (128x128 or 128x256 as the whole frame) and must not reuse the rate=1 source.
lane-av1muchunk422: 12 recipes, 0 entries into the two side>64 mu-chunk walksAhmet Kaan Gümüş · 5111c5a
lane-av1muchunk422: 12 recipes, 0 entries into the two side>64 mu-chunk walks lanes/av1muchroma.report.md left sites 2 (compound) and 8 (intra-in-inter) unwitnessed at 4:2:2. This lane hunts a witness and does not find one. 12 aomenc 4:2:2 recipes over 384x256 sources, each capped at 180 s, all encoded rc=0 and decoded clean. None reached either site. The instrument is five env-gated EC_MUCHUNK422 eprintlns (two site probes, three on the side>64 guards themselves), reverted in this commit. Verified live before use against committed fixtures: site 2 fires 272x on gm_small_side_witness and 628x on reelc_sb128_inter_witness, site 8 fires 32x on 444_intra_in_inter_128root_mu_chroma, and the site-5 twin fires 13x on 422_sb128_3f. So the zero is not a missing-probe zero. Measured cause: every one of the 12 reads part128: none=0, i.e. aomenc always split its 128 superblocks, so no 128-root inter block exists and side > 64 is never true in either arm. The committed controls that do reach these walks are small frames (128x128, 128x256) where a 128 SB is the whole frame. Separately, recipes 1/2/3/7 produced byte-identical streams -- the rate=1 source gives every inter frame as a trivial skip, so the compound and interintra flags changed nothing; 8 distinct bitstreams were really exercised. No witness, no pin, no gate. decode.rs is unchanged: the allocation under both walks is the enclosing-square chroma_side, sound by the prior lane's arithmetic, and an unwitnessed case warrants no fix.
Merge lane/av1422open2: the two census2 cells are already exactAhmet Kaan Gümüş · 65a8db9
Merge lane/av1422open2: the two census2 cells are already exact s422_320x246 and s422_322x246 were the chroma-only residue av1422census2 left open. Same bytes (sha aebd3a10..., ee96617f...). Both are 0/0/0 vs ffmpeg on current main. The close is 459e425d (4:2:2 IntraBC 1:4 strips code their own chroma): the parent still reads 0/7810/5531 and 0/3437/2222, and 459e425d reads 0/0/0. A sibling that predates that commit still lists them open; that report is stale. Both rows are already inside the_pinned_422_corpus_cells_decode_pixel_exact, which is green. No new gate, no decode change.
lane/av1422open2: both census2 cells are byte-exact at current main -- the closing fix is 459e425dAhmet Kaan Gümüş · ed7f0af
lane/av1422open2: both census2 cells are byte-exact at current main -- the closing fix is 459e425d s422_320x246 and s422_322x246 are both 0/0/0 wrong Y/U/V samples against ffmpeg 8.1.3 at main 2be65e1b, 16 displayed frames each, first divergence none. Nothing to fix and no site to name. Both fixtures are already committed (sha256 aebd3a10... and ee96617f...), byte for byte the census sweep artifacts the old report measured, and both sit inside the green gate the_pinned_422_corpus_cells_decode_pixel_exact, run here green with a non-zero per-plane coefficient-unit census on each. Bisected by building a probe per commit and running the committed cmpff comparator on each tree: the parent 1bc6f543 reads 0/7810/5531 and 0/3437/2222 (reproducing lane-av1422luma's own published red), 459e425d reads 0/0/0 on both. The census's shrink-only reading was a correct observation of a wrong tree; the same writer had a second half rather than there being a second writer. Comparator liveness: 30 flip arms (2 cells x 5 frames x 3 planes), all moving their own plane by exactly +1 and no other, mapping pinned before flipping. A 4:2:0 control cell is exact in the same run. The probe bypass was applied in scratch trees only and every one is restored and removed.
Merge lane/av1knobshold: rank the exclusive KNOBS holdersAhmet Kaan Gümüş · b1dc4fe
Merge lane/av1knobshold: rank the exclusive KNOBS holders 28 running tests take knob_write. Together they hold the lock for 1634s. The ~50s test that looked like a server wedge ranks 8th. The top four hold 62% of that time: the_future_tpl_window (418s), filter_stage_bytes (228s), the_lookahead_holds_one_group (212s), tile_bytes (157s). The two *bytes* tests are throughput probes; shortening them would delete the measurement. No lock change, no ignore. Report only.
lane/av1knobshold: rank the 28 running speed::KNOBS holders by wall timeAhmet Kaan Gümüş · df3d3a7
lane/av1knobshold: rank the 28 running speed::KNOBS holders by wall time Measurement only: speed.rs untouched, no test shortened, no #[ignore] added. 53 tests take knob_write for their whole body (28 run, 25 ignored). All 28 running holders measured one-per-invocation with --test-threads=1; none hit the 420s per-test ceiling or the 1500s global cap. Total 1634s of exclusive KNOBS time. Top four hold 62%: the_future_tpl_window (418s), filter_stage_bytes (228s), the_lookahead_holds_one_group (212s), tile_bytes (157s). The 50s holder named in av1intertxwedge.report.md measured 50.27s and ranks 8 of 28. Also maps lock_gate_counters: separate Mutex, 11 of the running KNOBS holders take both locks.
Merge lane/av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hangAhmet Kaan Gümüş · 56662b6
Merge lane/av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hang encoder::tests::an_inter_clip_codes_both_inter_set_tx_types_both_decoders_read_exactly finishes in 50.5s alone, twice, identical hits and byte count. The encode holds speed::KNOBS exclusively for that whole 50s. On a loaded host the harness parks in futex_do_wait behind that lock and the log names whichever test printed last. Host 3 later printed the same test ok. A 12-thread encoder subset reproduced the wave14 thread shape (main parked, one sibling running, no aomenc child) and the running thread moved between real encode frames, so it is a convoy, not a livelock. No lock inversion: every site takes KNOBS then GATE_COUNTER_LOCK. No production change, no ignore. The wave16 --skip of this test was a disposition of a misread wedge; the test itself is fine.
lane-av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hangAhmet Kaan Gümüş · f1a1335
lane-av1intertxwedge: the inter tx-type wedge is a KNOBS convoy, not a hang The wave14 wedge on an_inter_clip_codes_both_inter_set_tx_types_both_decoders_read_exactly is not a hang in that test. Alone at --test-threads=1 it finishes twice, 50.56 s and 50.47 s, identical hits and byte count, 99% CPU and no child process. The wait is speed::KNOBS (RwLock<()>). The test holds it exclusive across a ~50 s encode, and the rest of the suite queues behind it; the wave14 signature (main in futex_do_wait, one sibling R) is that convoy, and the test is named only because it was last-printed. Reproduced at --test-threads=12: two subset runs still going at 30 min, final stack 7 of 9 threads parked on KNOBS against one worker, and the target test printed ok in both. Ruled out: no ABBA (every knob_write/lock_gate_counters site takes KNOBS then the gate lock), no spin-wait (par.rs is condvar-based), no infinite loop. Sampled the R thread three times at 20 s and it was a different thread each time, advancing through different encode stages. No fix: the cause is not local to this test. No #[ignore] added. The one asymmetry worth a decision -- this test flips the same process-global lever as its two siblings at encoder.rs:5513 and :5637, which both carry #[ignore = "sets process-global search levers: run it alone"], while this one does not -- is logged in the report rather than actioned. Evidence, stacks and repro commands in lanes/av1intertxwedge.report.md.
Merge lane/av1floorshift: the floor-shift chroma planes were already per-axisAhmet Kaan Gümüş · 853835e
Merge lane/av1floorshift: the floor-shift chroma planes were already per-axis
The two sites the earlier reports named as floor->> allocators had already been
ported. decode_key_frame_tile_with_cdfs and decode_inter_tile allocate
(width >> ss_x, height >> ss_y). width and height are multiples of 4 (block grid
times 32, or mi times 4) and ss is a 1-bit header field, so the shift equals
round_ss for every k and every ss in {0,1}. Structurally exact, not corpus luck.
The odd cell is where a floor would show: 420_odd65x65_key is 65x65, crop 33x33,
not a floored 32x32. Counted shortfall 0 and crop-disagreement 0 on that cell, on
422_key_64x64, and on a 4:4:4 witness, with the allocator actually invoked on all
three. A static gate exhausts mi 1..=512 and ss in {0,1} on both the coded and
true extents. 4:4:0 is uncodable (subsampling_y needs subsampling_x) and is spelled
out rather than swept. No production code changed. The other halving hits in the
file are not plane allocations, are already closed, or are test-only.lane-av1floorshift: the floor->> chroma planes are already per-axisAhmet Kaan Gümüş · 35997f1
lane-av1floorshift: the floor->> chroma planes are already per-axis The two frame chroma plane allocators (decode.rs:36380 key frame, 54161 inter) size U and V as (width >> ss_x) x (height >> ss_y) -- already the per-axis form. The open question was floor vs crop: `>>` floors where libaom's own producer (round_ss) crops. Structurally exact, for every input: width/height are block_grid(..) * 32, and ss is a 1-bit header field, so 32k >> ss == round_ss(32k, ss) for every k and every ss <= 1. The same for the true extent (mi_cols * 4). No fix warranted. Adds three counters and two gates: an invocation counter for non-vacuity (the shortfall is 0 on every real input, so the gate would otherwise pass with the instrument removed), a decidability counter that names the floor/crop disagreement when one occurs, and a shortfall counter that reads the allocator's OWN (cw, ch) rather than recomputing the shift beside it -- an earlier draft recomputed it and could not bite. Mutation: restoring `width / 2, height / 2` at both sites reds with an out-of-bounds read in the tile walk (the defect's real consequence). Isolating it, one sample short of tripping that bound, reds the gate's own assertion at 48 samples.
Merge lane/av1muchroma: the skip-arm chroma grid was the one short squareAhmet Kaan Gümüş · 9ceb046
Merge lane/av1muchroma: the skip-arm chroma grid was the one short square The report that named every chroma_side * chroma_side site as too short at 4:2:2 was wrong for 11 of 12. lane-av1-422j redefined chroma_side in decode_inter_block as the enclosing square, (side >> ss_x).max(side >> ss_y), so those sites allocate twice their per-axis extent. Shrinking them to the plane block reds the pinned 4:2:2 gates, because the block-tail replay strides by chroma_side. The 4:4:4 quadrant arms are structurally unreachable at 4:2:2 (guarded ss_x==0 && ss_y==0). Two side>64 walks are live at 4:2:0 and 4:4:4 and unreached by the committed 4:2:2 corpus; no fix was written for them. The one short site is decode_block's SKIP arm, which kept side >> ss_x and sized a 64x64 block's chroma as 32x32 against a 32x64 plane block. Now chroma_side * chroma_height. Latent: the only consumer sums the slice and reads grid[0], and a skip block is zeros, so the seven pinned 4:2:2 gates stayed green either way. The new gate reads the allocation's real length and reds by exactly 64 samples when the square is restored.
lane-av1muchroma: size decode_block's skip-arm chroma grid per axisAhmet Kaan Gümüş · 66fb257
lane-av1muchroma: size decode_block's skip-arm chroma grid per axis The `chroma_side * chroma_side` mu-chroma sites split in two once measured. Under decode_inter_block `chroma_side` is `(side >> ss_x).max(side >> ss_y)` -- the ENCLOSING square lane-av1-422j introduced -- so at 4:2:2 those eleven sites allocate 2.0x their per-axis extent: oversized, never short. The block-tail mu_chroma_units replay strides the assembled grid by chroma_side, so the square IS the writer/reader contract there; shrinking sites 11/12 to chroma_w * chroma_h reds two pinned gates. Left alone. decode_block has its own binding, `side >> ss_x`, which at 4:2:2 is half the plane block: site 1 sized a 64x64 block's chroma at 32x32 = 1024 where the plane block is 32x64 = 2048. Latent, not live -- the only consumer reduces the plane through neighbour_state, which sums the slice and reads grid[0], and a skip block is all zeros -- but an allocation half the block it names traps the next per-row consumer. Sized per axis. Gate: s422_322x240.obu, the smallest 4:2:2 fixture that reaches the site, with two paired counters. skip_arm_chroma_rect_shapes is the non-vacuity arm (it fires only where per-axis and square differ); skip_arm_chroma_short_samples reads the allocation's real length and must stay 0. Restoring the square reds it by 64 samples. A first draft keyed the counter on `chroma_side != chroma_height` and did not bite -- that proxy was replaced by the length measurement. Reachability, from an env-gated probe over the pinned 4:2:2 corpus (10 fixtures) and the 51 4:4:4 gates: sites 4/7/10 are guarded ss_x == 0 && ss_y == 0, so 4:4:4 only -- unreachable at 4:2:2 structurally. Sites 2/8 are the side > 64 mu-chunk walks: live at 4:2:0 and 4:4:4, unreached at 4:2:2, and sound where they sit, so no fix was invented for the unwitnessed case. Sites 3/5/6/9/11/12 are reached and already correct. palette_uv_side and the floor-> chroma plane allocators are untouched and named still-open in the report.
Merge lane/av1paletteuv: palette_uv_side is the 4:2:0 plane block, and nothing else reaches itAhmet Kaan Gümüş · 94cba4d
Merge lane/av1paletteuv: palette_uv_side is the 4:2:0 plane block, and nothing else reaches it
tile.rs:5004 computes (side/2).max(4). That is libaom's per-axis plane block only when
ss_x == ss_y == 1. At 4:2:2 the map should be (side/2, side); at 4:4:4 it should be
(side, side). The decoder already reads the map per-axis, which is why those formats
are byte-exact today. The writer site is the square one left.
Measured unreachable for any non-4:2:0 shape: both encoder files' non-test source
resolves subsampling to exactly {(1,1)}; the five encode_key_frame_inner call sites
all pass a 4:2:0 constructor; Picture::check refuses 4:2:2- and 4:4:4-shaped pictures
by call; the public colour door writes headers only. A real 4:2:0 screen encode fires
9 chroma palette blocks and round-trips U/V exactly.
The gate states the arithmetic (the square is not the 4:2:2 or 4:4:4 map) and is
red-proven by dropping the halving, raising the floor, pinning the map to 4, and by
opening a non-4:2:0 door. Dropping .max(4) stays green and the test says why: the
admitted domain already halves to 4, so the floor is unreachable. No production code
changed. The mu-chroma square sites and the floor-shift chroma allocators stay open.lane-av1paletteuv: gate tile::palette_uv_side as the 4:2:0 plane blockAhmet Kaan Gümüş · 0ec5cf8
lane-av1paletteuv: gate tile::palette_uv_side as the 4:2:0 plane block
palette_uv_side(side) = (side / 2).max(4) is named in
lanes/av1subsizesweep.report.md as a "4:2:2/4:4:0 palette map mis-sized"
site. Measured, not fixed: the value IS libaom's plane-1 block at 4:2:0
(blockd.h:1512 -> plane_block = block >> ss, +2 when under 4), and no
reachable path can hand the writer a 4:2:2 or 4:4:4 frame. The decoder's
counterpart (decode.rs:20914-20933) is already per-axis, which is why
those shapes decode byte-exact today.
Census in encode::tests::
the_chroma_palette_map_side_is_the_420_plane_block_and_nothing_else_reaches_it
arm 1 the value equals libaom's per-axis formula over all 57 sides in
palette_bsize_ctx's square domain, and the premise is stated as
arithmetic: the square is NOT the 4:2:2 or 4:4:4 map
arm 2 the non-test encoder names exactly one chroma shape, (1,1);
key_frame_headers_colour (the only public door for a caller-chosen
ColorConfig) reaches no tile writer; encode_key_frame_inner has 5
non-test call sites, all 4:2:0; Picture::check refuses a 4:2:2-
and a 4:4:4-shaped picture, by call
arm 3 a real screen-content encode fires 9 chroma palette blocks and
round-trips U/V exactly, so arm 1 is not arithmetic over dead code
Five mutations measured biting: drop the halving, raise the floor, pin the
map to 4, flip Colour::color_config to subsampling (0,0), and add one
crate::tile:: line to key_frame_headers_colour. Dropping .max(4) is NOT a
mutation -- palette_bsize_ctx refuses bw*bh < 64, so side 8 already halves
to 4 and the floor is unreachable in the admitted domain; the test body
says so instead of leaving a green floor-mutation reading as coverage.
Runs: --lib palette 26 passed / 0 failed; --lib screen 19 passed / 0 failed
/ 4 ignored; 4:2:2 pin 16 chroma palette unit windows and 4:4:4 pin 4
windowed palette chroma units, both byte-exact vs aomdec. The full --lib
suite exceeded a 3000 s local timeout mid-run (server job by project rule).
Still open, named not edited: the mu-chroma chroma_side*chroma_side sites
and the floor->> chroma plane allocators. The forward unblock is also
named: if a non-4:2:0 encoder colour config ever appears, write_color_index_map
and palette_uv_bits both take a single `side`, so the map writer must go
per-axis (bw, bh) the way decode_color_index_map_wh already is before any
non-4:2:0 palette can be written at all.Merge lane/av1p1pin: pin the 4:4:4 sb128 chroma-tile witnessAhmet Kaan Gümüş · 81fd9b0
Merge lane/av1p1pin: pin the 4:4:4 sb128 chroma-tile witness lanes/av1witness2recheck rebuilt the hunt's P1 recipe and found it byte-exact on main, but the bytes were not pinned -- the existing 4:4:4 sb128 fixture is a different stream. Rebuilt from the report's exact ffmpeg and aomenc lines: 595 bytes, sha256 68773f2c6e01a2d211bf0213479accb4c2c360132c0e1bc3b326eab7861925b1, matching the hunt. Recipe did not drift. The gate compares all 3 frames and 3 planes against both aomdec rawvideo and ffmpeg yuv444p, and asserts the guarded 128-root VERT path fired (edge-VERT 6, part128 VERT 6, intra VERT 6; the HORZ counters stay 0, which is this stream's shape). Three mutations red it: the counter ceiling, one aomdec sample, one ffmpeg sample. No decode-path change.
lane-av1p1pin: pin the 4:4:4 sb128 128-root rect witness, gate it byte-exactAhmet Kaan Gümüş · c4b999c
lane-av1p1pin: pin the 4:4:4 sb128 128-root rect witness, gate it byte-exact Recipe P1 of lanes/av1witness2recheck.report.md was measured but never pinned: its 595 bytes lived only under /tmp. Rebuilt from the report's exact ffmpeg+aomenc lines -- sha256 68773f2c6e01a2d211bf0213479accb4c2c360132c0e1bc3b326eab7861925b1, so the recipe did not drift. Pinned as fixtures/444_sb128rect_chroma_tile_witness.obu (distinct from 444_sb128rect_lr_witness.obu) and gated by a_444_sb128_rect_chroma_tile_witness_is_byte_exact: all 3 frames, all 3 planes byte-exact vs aomdec and ffmpeg yuv444p rawvideo, plus census deltas proving the guarded 128-root VERT chroma tiling fired 6 times (edge_vert, part128 vert, intra_vert) with HORZ still 0. Non-vacuous, three mutations, three reds: counter expectation 6->7 reds; a flipped U sample reds the aomdec arm; a flipped V sample placed after the aomdec block reds the ffmpeg arm alone. No decode-path edit.
Merge lane/av1graincensus: census the picture the caller receives, after grainAhmet Kaan Gümüş · 927c533
Merge lane/av1graincensus: census the picture the caller receives, after grain census_unwritten_final runs before apply_grain, over the clean planes. The grain destination is allocated uninitialised and written by the band copy, so the picture the caller receives on a grained frame was the one buffer no census had looked at. lanes/unwritten-dep.report.md sections 6 and 8 declined to claim it. This measures it. The census sits inside apply_grain, on both returns, so the property is the function's rather than one of the four stream.rs call sites. uninit_plane poisons the buffer only when the sentinel is live; every shipped build keeps the with_capacity plus set_len corner-cut. A poison count cannot see a sample that was READ and then overwritten -- the noise kernels overwrite every sample they read -- so the initial-content gate (two fills, 0xDEAD vs 0xBEEF) now includes the grain fixture. Neutering the clean-row copy is invisible to the poison census and reds that gate. Proven: deleting the post-grain call reds with "scanned 0 samples ... class: census-never-ran". Grain fixtures stay byte-exact vs ffmpeg.
av1graincensus: census the grained picture, and cover uninit_plane's unsafeAhmet Kaan Gümüş · 852b5e2
av1graincensus: census the grained picture, and cover uninit_plane's unsafe census_unwritten_final runs in stream.rs before apply_grain, and apply_grain is the one stage after it that allocates a NEW picture: film_grain::uninit_plane, Vec::with_capacity + set_len, no fill. lanes/unwritten-dep.report.md sections 6 and 8 both decline to claim anything about that buffer, so the picture the caller actually receives was unmeasured. - decode.rs: census_unwritten_grained at apply_grain's return, with its own GRAINED_UNWRITTEN_SAMPLES / GRAINED_CENSUS_SCANNED pair. The scanned/found pairing is the same one the other two censuses use, so a build with the call deleted cannot pass. census_sentinels is now the shared counting body, returning None when the fill is off, so neither caller can publish a meaningless zero. plane_poison and plane_sentinel_on become pub(crate) so the fill and the count cannot disagree about the value or the predicate. - film_grain.rs: uninit_plane fills with that poison when plane_sentinel_on(). Counting == poison over ambient garbage is not a census -- a hole survives with probability ~1/65536, not always. With the sentinel off, every shipped build, the allocation is still with_capacity + set_len, so the documented corner-cut is untouched. Both returns of apply_grain census, so the property is the function's rather than one branch's. - stream.rs: the gate, a synthetic control counting 5 rather than the pre-grain arm's 7 (so reading the wrong counter reds), and per-fixture scanned > 0, which is reachable only by grain having run. Measured 0 unwritten on s422_grain_160x128, grain_cdef_lr_128x128 and reelb_arf_witness. Mutations: deleting the call reds via scanned > 0; one sentinel sample forced into a grained picture reds with exactly 3, the fixture's 3 grained frames. Class sweep, same lane: with copy_clean_rows neutered the census stays correctly 0 -- the noise overwrites every sample it reads -- so it cannot see a READ of uninitialised memory. That gate had no grain fixture at all, leaving uninit_plane's unsafe uncovered; s422_grain_160x128 is added and proven to bite (allocdet goes red on the same mutation, 0xDEAD vs 0xBEEF). Report: lanes/av1graincensus.report.md