av1 pilot: fix four report findings before merge
Browse files at this commitb78695f8db799e10db28e10d2fbba4ba15d11434Parent: 2f8b3b52 changed files +24 -14
- crates/ec-av1/src/stream.rs +5 -4
- lanes/av1decode.report.md +19 -10
crates/ec-av1/src/stream.rsmodified+5 -4
| @@ -2027,10 +2027,11 @@ pub(crate) mod tests { | |||
| 2027 | /// `-pix_fmt gray` encode of the crate's own fixture recipe does. | 2027 | /// `-pix_fmt gray` encode of the crate's own fixture recipe does. |
| 2028 | /// | 2028 | /// |
| 2029 | /// Root cause (localised with `EC_TRACE_MODE_STEP` on the instrumented | 2029 | /// Root cause (localised with `EC_TRACE_MODE_STEP` on the instrumented |
| 2030 | - /// aomdec oracle vs this decoder, both over the same OBU): the two traces | 2030 | + /// aomdec oracle vs this decoder, both over the same OBU): on the mono |
| 2031 | - /// agree bit-for-bit -- identical `rng` through `skip`, `cdef`, `mode`, | 2031 | + /// stream ours reads `angle_uv` at `rng=50996`, while aomdec reads NO |
| 2032 | - /// `angle_y` -- and then aomdec goes straight from `angle_uv` to | 2032 | + /// `uv_mode`/`angle_uv` at all (the guard below); the first divergence at |
| 2033 | - /// `tx_depth` while ours reads a `uv_mode` symbol first. libaom's | 2033 | + /// `(0,0)` is aomdec reading `tx_depth ctx=0 cat=1` (`rng=43616`) where |
| 2034 | + /// ours reads a `uv_mode` (val=13). libaom's | ||
| 2034 | /// `decodemv.c` guards that read with | 2035 | /// `decodemv.c` guards that read with |
| 2035 | /// `if (!cm->seq_params->monochrome && xd->is_chroma_ref)`: a monochrome | 2036 | /// `if (!cm->seq_params->monochrome && xd->is_chroma_ref)`: a monochrome |
| 2036 | /// frame codes NO `uv_mode`/`cfl`/`angle_delta_uv`/`palette_uv` at all, | 2037 | /// frame codes NO `uv_mode`/`cfl`/`angle_delta_uv`/`palette_uv` at all, |
lanes/av1decode.report.mdmodified+19 -10
| @@ -26,8 +26,9 @@ a code un-refusal of an arm that no longer exists. This report gives: | |||
| 26 | byte-exact at every probed offset**; at the parked tip (`3808cf8`, 2026-08-30) | 26 | byte-exact at every probed offset**; at the parked tip (`3808cf8`, 2026-08-30) |
| 27 | both films stopped early (ReelC at a superblock-level HORZ/VERT strip with a split | 27 | both films stopped early (ReelC at a superblock-level HORZ/VERT strip with a split |
| 28 | transform; ReelB at a superblock-level partition). The refusal inventory | 28 | transform; ReelB at a superblock-level partition). The refusal inventory |
| 29 | -shrank from **47** (41 REFUSALS + 6 CAPABILITY_CLAIMS) to **35** | 29 | +shrank from **47** (41 REFUSALS + 6 CAPABILITY_CLAIMS) to **37** |
| 30 | -(34 REFUSALS + 1 CAPABILITY_CLAIM). | 30 | +(36 REFUSALS + 1 CAPABILITY_CLAIM). The refusal-scan parser reproduces the parked |
| 31 | +**47** exactly, so the earlier "35 (34 + 1)" figure was a miscount. | ||
| 31 | 32 | ||
| 32 | ## 1. Baseline re-measurement (main 79984549) | 33 | ## 1. Baseline re-measurement (main 79984549) |
| 33 | 34 | ||
| @@ -142,14 +143,20 @@ recipe decodes. Four real streams stop: | |||
| 142 | `ffmpeg -f lavfi -i testsrc2=size=320x240:rate=30:duration=2 -pix_fmt gray | 143 | `ffmpeg -f lavfi -i testsrc2=size=320x240:rate=30:duration=2 -pix_fmt gray |
| 143 | -c:v libaom-av1 -cpu-used 8 -b:v 300k -f obu` → REFUSED. The **4:2:0 twin of the | 144 | -c:v libaom-av1 -cpu-used 8 -b:v 300k -f obu` → REFUSED. The **4:2:0 twin of the |
| 144 | same source+recipe decodes 60/60 frames**, so this is monochrome, not the recipe. | 145 | same source+recipe decodes 60/60 frames**, so this is monochrome, not the recipe. |
| 145 | -This is also the io fixture `av1-monochrome.ivf`. | 146 | +(The committed io fixture `av1-monochrome.ivf` is a **different, earlier** stop: |
| 147 | +it refuses at `intra block copy on a HORZ/VERT/1:4 rect intra strip` — the | ||
| 148 | +intrabc-rect wall — before reaching this desync. The pinning gate in §5 | ||
| 149 | +therefore generates its stream from this ffmpeg recipe, not from that fixture.) | ||
| 146 | 150 | ||
| 147 | **Root cause (localised).** Run the instrumented aomdec oracle and our probe with | 151 | **Root cause (localised).** Run the instrumented aomdec oracle and our probe with |
| 148 | -`EC_TRACE_MODE_STEP=1` over the same OBU; the traces agree on every symbol and | 152 | +`EC_TRACE_MODE_STEP=1` over the same OBU. On the **mono** stream **ours reads |
| 149 | -`rng` through `skip`, `cdef`, `dq`, `mode`, `angle_y`, `uv_mode`, `angle_uv` | 153 | +`angle_uv` at `rng=50996`**, while aomdec reads **no** `uv_mode`/`angle_uv` at |
| 150 | -(both `rng=56072` at `(0,0)` after `angle_uv`). Then aomdec reads | 154 | +all (the guard below): the monochrome frame codes neither symbol. The first |
| 151 | -`tx_depth ctx=0 cat=1` while **ours reads a second `uv_mode` (val=13) first** and | 155 | +divergence at `(0,0)` is therefore aomdec reading `tx_depth ctx=0 cat=1` |
| 152 | -diverges. libaom `av1/decoder/decodemv.c:933`: | 156 | +(`rng=43616`) where **ours reads a `uv_mode` (val=13)** and desyncs. (The |
| 157 | +`rng=56072` "agree through `uv_mode`/`angle_uv`" agreement belongs to the 4:2:0 | ||
| 158 | +twin, whose chroma symbols both decoders read; `56072` never appears in the mono | ||
| 159 | +trace.) libaom `av1/decoder/decodemv.c:933`: | ||
| 153 | `if (!cm->seq_params->monochrome && xd->is_chroma_ref) { mbmi->uv_mode = ... }` — | 160 | `if (!cm->seq_params->monochrome && xd->is_chroma_ref) { mbmi->uv_mode = ... }` — |
| 154 | a monochrome frame codes **no** `uv_mode`/`cfl`/`angle_delta_uv`/`palette_uv`. | 161 | a monochrome frame codes **no** `uv_mode`/`cfl`/`angle_delta_uv`/`palette_uv`. |
| 155 | This decoder's block layer has **no `num_planes`/monochrome notion at all** | 162 | This decoder's block layer has **no `num_planes`/monochrome notion at all** |
| @@ -201,7 +208,7 @@ debt** until the root causes above land; the PROVEN tests must then be revisited | |||
| 201 | 208 | ||
| 202 | ## 4. Terrain map for the next wave | 209 | ## 4. Terrain map for the next wave |
| 203 | 210 | ||
| 204 | -Remaining refusals: **34 REFUSALS + 1 CAPABILITY_CLAIM**. Ordered by dependency | 211 | +Remaining refusals: **36 REFUSALS + 1 CAPABILITY_CLAIM** (37 total). Ordered by dependency |
| 205 | (what unblocks what): | 212 | (what unblocks what): |
| 206 | 213 | ||
| 207 | **Wave 1 — the only real-stream-reachable cluster (this lane's finding):** | 214 | **Wave 1 — the only real-stream-reachable cluster (this lane's finding):** |
| @@ -262,7 +269,9 @@ anything already covered by the seven witness gates above. | |||
| 262 | → `ok. 1 passed` (`4:2:0 twin 60 frames, monochrome refused by name`). | 269 | → `ok. 1 passed` (`4:2:0 twin 60 frames, monochrome refused by name`). |
| 263 | - `cargo check -p ec-av1 --all-targets` → rc 0, **0 warnings** (parity with | 270 | - `cargo check -p ec-av1 --all-targets` → rc 0, **0 warnings** (parity with |
| 264 | 79984549). | 271 | 79984549). |
| 265 | -- Full lib suite: **`cargo test -p ec-av1 --lib`, 652 passed / 0 failed.** | 272 | +- Full lib suite (completed on the lane by the verifier): **592 passed, 0 failed, |
| 273 | + 60 ignored** (6716 s). (An earlier in-lane run was cut off by a budget cap while | ||
| 274 | + showing "652 passed"; that partial figure is not a completed suite.) | ||
| 266 | 275 | ||
| 267 | ## 7. Repro commands (all re-derivable) | 276 | ## 7. Repro commands (all re-derivable) |
| 268 | 277 | ||