Commits
2026-09-30
ec-av1: the plane-tagged OUR_MODE per-TU mode trace; fix the readcensus headerAhmet Kaan Gümüş · 585f203
ec-av1: the plane-tagged OUR_MODE per-TU mode trace; fix the readcensus header Re-derives lane-av1444chr's `5a1388f2` (13 lines, env-gated print only, cherry-picks clean on current main) plus lane-av1chrtx's `6cc9ea6f` header correction. OUR_MODE names the plane at the point that OWNS it. `PlaneBuf`'s `OUR_PRED` rung cannot: reconstruction does not know which plane it is filling, which is why main had to stamp it separately with RECON_PLANE/recon_plane(). This rung is the reader-side counterpart, where `plane_idx` is a parameter, and it exists because a rung whose plane must be guessed from its values has already produced two wrong claims (class `rung-mislabels-plane`: `read_coeffs_rect` labelling its unit `plane=0`, then a sweep reading a phantom second luma unit out of that label). Diagnostic only -- no gate asserts decode behaviour off this line. The H3 defect the lane chased is still open and unowned; the lane's own conclusion was that the reach is faithful and the offset arithmetic is exonerated, so the remaining line's owner was unidentified. That is unchanged. Header: main named `lane-av1readcensus` / `~/.cache/wt/av1readcensus` for a census that was cut on `lane-av1chrtx` in `~/.cache/wt/av1chrtx`. The gate name the header was blamed for is already correct on main (`a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does`), so this is the 4-line header only, nothing else.
2026-09-29
ec-av1: settle the 4:4:4 coefficient-read count asymmetry by measurementAhmet Kaan Gümüş · cf7d7f8
ec-av1: settle the 4:4:4 coefficient-read count asymmetry by measurement The av1444rect round-4 report left 636 square chroma reads against the oracle's 1086 (and 2052 vs 1309 luma) as "most likely a counting-shape difference", established neither way. This measures it. A new per-unit census rung (EC_CENSUS_UNIT) counts one unit per read_coeffs/read_coeffs_rect call -- the object the round-4 count measured -- carrying plane, w/h, tx_type, eob, all_zero and the msac state before and after the unit. Paired against the oracle's existing EC_COEFF / EC_COEFF_VAL bracket per av1_read_coeffs_txb call BY post_rng, never by plane label or walk position. On every pixel-exact 4:4:4 arm the counts are identical, unit for unit: ll444_minp8_inter 11292/11292 (3764 per plane both sides, 975/1793/1859 coded), 444_lossy_rect4_inter_witness 1373/1373, 444_quad_leaf_tx_type 192/192. Bucket (i) is the whole census; there is no asymmetry to explain. The round-4 numbers came from 444_intrabc_rect4_witness, which DIVERGES (390380 of 921600 samples wrong) -- there the surplus is the divergence itself, so the count could never have separated the two hypotheses. Verdict: counting shape, and not even that on a pixel-exact arm. Gate: a_pixel_exact_444_stream_walks_the_same_coefficient_units_the_oracle_does pins the walk's object shape on two exact arms -- the all-TX_4X4 lossless stream and a mixed-shape rect4 stream, which is what makes a var-tx fold visible. Mutation-proven: dropping 8x8 units turns it red by name. The census is armed per frame from the sequence subsampling, so the 4:2:0 control asserts exactly (0, 0, 0).