ec-av1: the plane-tagged OUR_MODE per-TU mode trace; fix the readcensus header
Browse files at this commit585f203c39d2349163794dc1a0e85f9cab038ebeParent: bb7bd462 changed files +17 -3
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 in | 21476 | // 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 no | 21477 | // `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, settled | 1 | # lane-av1readcensus — the 4:4:4 coefficient-read count asymmetry, settled |
| 2 | 2 | ||
| 3 | -**Branch:** `lane-av1readcensus`, worktree `~/.cache/wt/av1readcensus`, stacked on | 3 | +**Branch:** `lane-av1chrtx` (my charter's branch), worktree `~/.cache/wt/av1chrtx`. |
| 4 | -`lane-av1chrtx` (`ff7cf47c`, whose `d791c464` threaded the real plane index into | 4 | +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 arm | 8 | **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 the | 9 | there is no asymmetry at all: both sides walk the same number of units, in the |