forge
Explore
Log in

Don't you dare go Hollow

ec-av1: the plane-tagged OUR_MODE per-TU mode trace; fix the readcensus header

Browse files at this commit

585f203c39d2349163794dc1a0e85f9cab038ebeAhmet Kaan GümüşParent: bb7bd46
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.
crates/ec-av1/src/decode.rsmodified+13 -0
@@ -21476,6 +21476,19 @@ fn read_plane(
21476 // filter-intra is on) -- caller passes the raw filter-intra mode 0..4 in21476 // filter-intra is on) -- caller passes the raw filter-intra mode 0..4 in
21477 // `filter_intra`, only meaningful for `plane_idx == 0` (chroma has no21477 // `filter_intra`, only meaningful for `plane_idx == 0` (chroma has no
21478 // filter-intra in AV1).21478 // filter-intra in AV1).
21479+ // lane-av1444chr: per-TU mode trace with the PLANE named. `PlaneBuf`'s own
21480+ // `OUR_PRED` rung cannot carry it (reconstruction does not know its
21481+ // plane), and a rung whose plane has to be guessed from the values has
21482+ // already produced wrong claims twice this session -- `read_coeffs_rect`
21483+ // labelling its unit `plane=0`, and a sweep reading a second-luma-unit
21484+ // phantom out of that label (class `rung-mislabels-plane`). Diagnostic
21485+ // only: no gate asserts decode behaviour off this line.
21486+ if crate::envflags::env_flag!("EC_TRACE_MODE") {
21487+ eprintln!(
21488+ "OUR_MODE plane={plane_idx} x={x} y={y} side={side} mode={predict_mode} \
21489+ ad={angle_delta} fi={filter_intra:?} reach={reach:?}"
21490+ );
21491+ }
21479 let tx_mode = if plane_idx == 0 {21492 let tx_mode = if plane_idx == 0 {
21480 fi_tx_row(tx_mode, filter_intra)21493 fi_tx_row(tx_mode, filter_intra)
21481 } else {21494 } else {
lanes/av1readcensus.report.mdmodified+4 -3
@@ -1,8 +1,9 @@
1 # lane-av1readcensus — the 4:4:4 coefficient-read count asymmetry, settled1 # lane-av1readcensus — the 4:4:4 coefficient-read count asymmetry, settled
2 2
3-**Branch:** `lane-av1readcensus`, worktree `~/.cache/wt/av1readcensus`, stacked on3+**Branch:** `lane-av1chrtx` (my charter's branch), worktree `~/.cache/wt/av1chrtx`.
4-`lane-av1chrtx` (`ff7cf47c`, whose `d791c464` threaded the real plane index into4+The census commit `ea97eb0c` sits on top of `ff7cf47c`, whose `d791c464` threaded
5-`read_coeffs_rect`'s traces — the census pairs on that).5+the real plane index into `read_coeffs_rect`'s traces — the census pairs on that,
6+and reuses its `plane` argument rather than adding a second one.
6 7
7 **Verdict: COUNTING SHAPE — and not even that. On every pixel-exact 4:4:4 arm8 **Verdict: COUNTING SHAPE — and not even that. On every pixel-exact 4:4:4 arm
8 there is no asymmetry at all: both sides walk the same number of units, in the9 there is no asymmetry at all: both sides walk the same number of units, in the