lane-av1422warp: report -- stage exoneration, round-21 correction, the chroma-reference defect
Browse files at this commit566cee047a386fc255ea11df01fcba50503e1f61Parent: b51f6821 changed file +88 -7
- lanes/av1422warp.report.md +88 -7
lanes/av1422warp.report.mdmodified+88 -7
| @@ -1224,13 +1224,10 @@ frame 7: 0 EXACT frame 15: 0 EXACT | |||
| 1224 | **3/16 frames exact (0, 7, 15)** — up from 0/16 — and the total is | 1224 | **3/16 frames exact (0, 7, 15)** — up from 0/16 — and the total is |
| 1225 | 1332125 differing samples, down from 1619115. | 1225 | 1332125 differing samples, down from 1619115. |
| 1226 | 1226 | ||
| 1227 | -**Frame 1 is a RECONSTRUCTION defect, not an entropy one**: the EC_SYMR | 1227 | +**RETRACTED — see round 22.** This section indexed pictures by SHOW |
| 1228 | -sequence pairs across all of frame 1 (reads 46260..104192) while its | 1228 | +order while the dumps and the EC_SYMR sequence are DECODE order. Scanned |
| 1229 | -pixels differ by 33375 samples. Whatever it is, it is downstream of a | 1229 | +correctly there is ONE defect: picture 3 is the first damaged picture and |
| 1230 | -correct bitstream — a different class again, and the first thing worth | 1230 | +the read-107517 entropy divergence is in that same picture. |
| 1231 | -attacking, because it needs no entropy forensics at all. | ||
| 1232 | - | ||
| 1233 | -**Frame 2 onward is the new entropy class** at read 107517. | ||
| 1234 | 1231 | ||
| 1235 | ### Handoff | 1232 | ### Handoff |
| 1236 | 1233 | ||
| @@ -1250,6 +1247,90 @@ Two open items, neither in the closed family: | |||
| 1250 | 1247 | ||
| 1251 | Not pinned, no gate, refusal untouched. | 1248 | Not pinned, no gate, refusal untouched. |
| 1252 | 1249 | ||
| 1250 | +## Round 22 — the stage exoneration, and a CORRECTION to round 21 | ||
| 1251 | + | ||
| 1252 | +No code shipped this round; the tree is back at `401118ea`, bypass | ||
| 1253 | +reverted, 4:2:0 control byte-exact. | ||
| 1254 | + | ||
| 1255 | +### CORRECTION to round 21: there is ONE defect, not two | ||
| 1256 | + | ||
| 1257 | +Round 21 said "frame 1 is a reconstruction defect with exact entropy" and | ||
| 1258 | +"frame 2 is the new entropy class". That was **output-index confusion**: | ||
| 1259 | +the stage dumps are indexed by DECODE-order picture, the raw output by | ||
| 1260 | +SHOW order, and with alt-ref they differ. Scanned properly, over the | ||
| 1261 | +decode-order pictures: | ||
| 1262 | + | ||
| 1263 | +``` | ||
| 1264 | +pictures 0, 1, 2 : PREFILT identical AND final identical | ||
| 1265 | +picture 3 : PREFILT DIFFERS (first Y at (128,0), U at (128,1), V at (128,9)) | ||
| 1266 | +pictures 4..15 : all differ | ||
| 1267 | +``` | ||
| 1268 | + | ||
| 1269 | +So picture 3 is the first damaged picture and the EC_SYMR divergence at | ||
| 1270 | +read 107517 is IN picture 3 — the same defect, entropy and pixels | ||
| 1271 | +together. The round-21 "two residuals" framing is withdrawn. | ||
| 1272 | + | ||
| 1273 | +### Loop filters exonerated | ||
| 1274 | + | ||
| 1275 | +On the oracle's own frame-1 dump, `post-deblock` and `post-CDEF` both | ||
| 1276 | +differ from `final` (first difference at index 116), so CDEF and loop | ||
| 1277 | +restoration are **active** on this picture, and the picture is exact at | ||
| 1278 | +PREFILT anyway. The defect is therefore upstream of the loop filters — | ||
| 1279 | +reconstruction, reached through the entropy desync, not a filter stage. | ||
| 1280 | + | ||
| 1281 | +### The block, named precisely | ||
| 1282 | + | ||
| 1283 | +At read 107517 both decoders are at the same coder state | ||
| 1284 | +(pre `value=45039, range=61960`, same bit). The block is the 4x4 sub-8x8 | ||
| 1285 | +leaf at **mi(24,57)** and the syntax pairs to its mode: | ||
| 1286 | + | ||
| 1287 | +``` | ||
| 1288 | +ours mi(24,57) skip cdef dq mode -> 41536 ... and stops | ||
| 1289 | +oracle mi(24,57) skip cdef dq mode=0 angle_y=0 | ||
| 1290 | + uv_mode=13 angle_uv=0 use_filter_intra=1 filter_intra_mode=0 | ||
| 1291 | +``` | ||
| 1292 | + | ||
| 1293 | +**This decoder reads no chroma syntax at all on that leaf** — it treats | ||
| 1294 | +the odd mi column as never a chroma reference. libaom reads four more | ||
| 1295 | +symbols there, and across the trace it reads `uv_mode` at odd columns | ||
| 1296 | +118 times, so this is systematic, not a one-off. | ||
| 1297 | + | ||
| 1298 | +libaom's actual predicate (`av1_common_int.h:1459-1460`) is per axis | ||
| 1299 | + | ||
| 1300 | +``` | ||
| 1301 | +(mi_col & 1) || !(bw & 1) || !subsampling_x | ||
| 1302 | +``` | ||
| 1303 | + | ||
| 1304 | +so for a ONE-mi-wide leaf — what a VERT split of an 8x16 strip leaves — | ||
| 1305 | +the chroma reference is the ODD column, whichever leaf index that is. | ||
| 1306 | +`decode_leaf_split4` already implements exactly that (`(lmi.1 & 1) == 1`). | ||
| 1307 | +`decode_leaf_rect8`'s vert clause is `!vert || i == 1`, which names the | ||
| 1308 | +SECOND leaf unconditionally: right only when the split starts on an even | ||
| 1309 | +column, inverted when it starts on an odd one. | ||
| 1310 | + | ||
| 1311 | +**Implemented, measured, and REVERTED.** With the `i == 1` clause | ||
| 1312 | +corrected to the column parity, the 16-frame EC_SYMR sequence diff is | ||
| 1313 | +**bit-identical to before** (first divergence still 107517) — this stream | ||
| 1314 | +never reaches the inverted case, so the change is correct by source and | ||
| 1315 | +**unexercised here**. Shipping an unproven change is not this lane's | ||
| 1316 | +practice, so it is recorded as a candidate rather than committed. | ||
| 1317 | + | ||
| 1318 | +### Handoff | ||
| 1319 | + | ||
| 1320 | +The defect is a chroma-reference test that is wrong on an odd mi column. | ||
| 1321 | +Two of the three sub-8x8 arms are now known: `decode_leaf_split4` is | ||
| 1322 | +correct, `decode_leaf_rect8` is correct-by-source but unexercised. **A | ||
| 1323 | +trace of `has_chroma` fired 268 times on this stream and never once for | ||
| 1324 | +mi(24,57)**, so the arm that reads that leaf has not been identified — | ||
| 1325 | +neither `decode_leaf_split4` nor `decode_leaf_rect8` is called for it. | ||
| 1326 | +The first concrete step is to find that third path (or the condition | ||
| 1327 | +under which those two are reached for a 4x4 leaf at an odd column), | ||
| 1328 | +apply the `av1_common_int.h:1459-1460` predicate, and re-run the | ||
| 1329 | +sequence diff: the EC_SYMR instrument is a working oracle for it and | ||
| 1330 | +pictures 0/1/2 are per-TU exact as the baseline. | ||
| 1331 | + | ||
| 1332 | +Not pinned, no gate, refusal untouched. | ||
| 1333 | + | ||
| 1253 | ## Two refuted hypotheses — do not re-chase | 1334 | ## Two refuted hypotheses — do not re-chase |
| 1254 | 1335 | ||
| 1255 | 1. **"libaom ORs the block's OWN `uv_mode` into the edge-filter type."** False. | 1336 | 1. **"libaom ORs the block's OWN `uv_mode` into the edge-filter type."** False. |