forge
Explore
Log in

Don't you dare go Hollow

Round 4 -- close the not-measured list

Browse files at this commit

ce89686d7577c92818603601b8c03a94684277ddAhmet Kaan GümüşParent: b2e8c4f
  • docs
    • round 4 -- close the not-measured list
    • the 4:4:4 lossless class is neither tile- nor depth-specific
Show full message
docs(av1formatsweep): round 4 -- close the not-measured list; the 4:4:4 lossless class is neither tile- nor depth-specific
lanes/av1formatsweep.report.mdmodified+145 -0
@@ -363,3 +363,148 @@ the bypass. Start from the shapes `refusal_inventory.rs` still names, and use
363 the bypass recipe in `skill://ec-av1-422-probe-bypass` to widen the committed363 the bypass recipe in `skill://ec-av1-422-probe-bypass` to widen the committed
364 422 pins from "refuses by name" to "refuses by name, and is exact when364 422 pins from "refuses by name" to "refuses by name, and is exact when
365 admitted" for at least the lossless big-block case.365 admitted" for at least the lossless big-block case.
366+
367+---
368+
369+## 6. Round 4 (lane-av1444chr) — the "not measured" list, closed
370+
371+**Tree.** `lane-av1formatsweep` (this branch), append-only, no code change.
372+Every verdict below is against the **durable instrumented aomdec**
373+(`EC_AV1_FINAL_DUMP`, decode order), **not** ffmpeg, and every compare
374+asserts (a) the two frame COUNTS are equal and (b) each frame's byte length
375+is equal, before any sample is looked at. That is not pedantry: two of the
376+twelve cells below first read DIVERGENT against an ffmpeg reference and
377+turned out EXACT against aomdec (round-4 finding F, below).
378+
379+### 6.0 The two measurement traps this round hit (read before trusting any sweep number)
380+
381+**Trap 1 — a compare that truncates is a PREFIX compare.** A per-frame
382+compare zipped against `min(len(ours), len(ref))` passes exactly when the
383+defect lies outside the prefix; the 4:4:4 lossless defect sits at x >= 108,
384+outside the 128x96 window a hardcoded geometry produces. This is how a
385+"byte-exact 6/6" was reported for a stream that is wrong in every frame. The
386+prefix compare must assert equal lengths first.
387+
388+**Trap 2 — an aomenc flag is not evidence the geometry changed.**
389+`--tile-rows=1` at 256x128 is a **no-op**: with a 128px superblock the frame
390+is a 2x1 SB grid, so there is no second SB row to tile. Verified by bytes,
391+not by the flag:
392+
393+| stream | untiled sha256 | with `--tile-rows=1` | verdict |
394+|---|---|---|---|
395+| 4:4:4 lossless 10-bit, 256x128 | `ec7a6a0ed9d7c2bada8816bb692de3379620856644a462f287a6cc3e6d9c5103` | **identical** | flag had NO effect |
396+| 4:4:4 lossless 12-bit, 256x128 | `ef7338136d560674677cb5fd903e60906ef4df7b2f4c93a990e65a5b5ed4402c` | **identical** | flag had NO effect |
397+
398+So this round's 10- and 12-bit "tile rows" cells are NOT tile witnesses; what
399+they actually measure is the **untiled** 4:4:4 lossless stream at those depths,
400+which is itself divergent (6.1). A real 4:4:4 tile-rows witness needs a
401+geometry with two SB rows (>= 256 high at `--sb-size=128`).
402+
403+**Trap 3 — the reference can be the outlier.** Against `ffmpeg
404+-pix_fmt yuv420p12le` the 12-bit 4:2:0 cells read as ~8175/8192 chroma
405+samples wrong in every frame. Against aomdec the same streams are **byte-exact
406+6/6**. ffmpeg's raw 12-bit 4:2:0 output is not the reference for this cell.
407+
408+### 6.1 4:4:4 at 10 and 12 bit — LOSSY tile cells and the untiled control
409+
410+Source `testsrc2=size=256x128:rate=25` yuv444p / yuv444p10le; the 12-bit runs
411+need a smooth source (`mandelbrot` + `gblur=sigma=6`) or
412+`--enable-palette=0 --enable-intrabc=0`, else the 12-bit screen-tools refusal
413+fires first (H6). Common flags: `--lossless=1 --input-bit-depth=N
414+--bit-depth=N --codec=av1 --passes=1 --end-usage=q --threads=1 --row-mt=0
415+--lag-in-frames=0 --kf-max-dist=100 --limit=6 --obu -o - -`.
416+
417+| cell | stream | bytes | sha256 | verdict vs aomdec |
418+|---|---|---|---|---|
419+| 4:4:4 10-bit lossless, **no tiles** | `t444_10_notile` | 122730 | `ec7a6a0e…` | **DIVERGENT** from f1, 290506 samples, first (f1, s128) = Y(128,0) |
420+| 4:4:4 10-bit + **2 tile columns** | `t444_10_col` | 122937 | `2d295c2c…` | **DIVERGENT** 248394 samples; f0 first (f0, s47853) = U(229,58) |
421+| 4:4:4 12-bit lossless, **no tiles** | `t444_12_notile` | 171599 | `ef733813…` | **DIVERGENT** from f0, 264180 samples, first (f0, s32877) = U(109,0) |
422+| 4:4:4 12-bit + **2 tile columns** | `t444_12columns` | 172340 | `06fb4a8d…` | **DIVERGENT** from f0, 174949 samples, **same first sample** (f0, s32877) = U(109,0) |
423+
424+Reading: the 10-bit tile-column stream's frame 0 carries the H3 signature
425+(7 U + 11 V wrong against ffmpeg, first wrong U(237,58) — the sweep's H3 first
426+divergence, reproduced at 10 bits), then diverges hard from frame 1. The 12-bit
427+cell diverges from **frame 0** with the first wrong sample at U(109,0) whether
428+or not tiles are on — i.e. at 12 bits the 4:4:4 lossless key-frame defect is
429+present **untiled**. So the class is **not** depth-independent and **not**
430+tile-specific: it is a 4:4:4 lossless chroma defect that appears at 8, 10 and
431+12 bits, with or without tiles. None of these reduce to H1 (entropy fork —
432+H2's stream is entropy-clean) or to H2 (lossy, tx-search-gated).
433+
434+### 6.2 4:4:4 superres and odd coded dimensions (8-bit lossy, cq 20, cpu-used 2)
435+
436+| cell | stream | bytes | sha256 | verdict vs aomdec |
437+|---|---|---|---|---|
438+| 4:4:4 **superres** 256x128 (`--superres-mode=1`) | `sr444` | 15239 | `06621606…` | **DIVERGENT** from f2, 76404 samples, first (f2, s192) = Y(192,0) |
439+| 4:4:4 **odd coded dims 66x66** | `odd444_66x66` | 5938 | `973eddf4…` | **EXACT 4/4** — new exact cell |
440+| 4:4:4 **odd coded dims 130x122** | `odd444_130x122` | 8945 | `c87ac65b…` | **DIVERGENT** from f3, 11521 samples, first (f3, s2208) = Y(128,16) |
441+
442+Note the aomenc flag is `--superres-mode=1`; there is no `--enable-superres`
443+in this build (`aomenc --help | grep -i superres`).
444+
445+The 130x122 stream is the interesting one: 66x66 is exact at the same
446+settings, so the 4:4:4 partial-frame walk is right at one odd geometry and
447+wrong at another, and the first divergence is at (128,16) — inside the frame,
448+not on its edge. Same shape of question as H2's retracted edge theory; **not
449+claimed to be the same defect** without a discriminator run.
450+
451+### 6.3 12-bit 4:2:0 tiles and superres — the two cells the matrix left open
452+
453+Source `mandelbrot=size=256x128:rate=25` yuv420p12le (smooth, or the 12-bit
454+screen-tools refusal fires), `--enable-palette=0 --enable-intrabc=0
455+--input-bit-depth=12 --bit-depth=12 --profile=0 --cq-level=20 --cpu-used=2`.
456+
457+| cell | stream | bytes | sha256 | verdict vs aomdec |
458+|---|---|---|---|---|
459+| 4:2:0 12-bit + 2 tile columns | `t420_12_col` | 8713 | `c983a91c…` | **EXACT 6/6** |
460+| 4:2:0 12-bit + 2 tile rows | `t420_12_row` | 8760 | `0bf14e1e…` | **EXACT 6/6** (flag effect at this geometry NOT verified — see caveat) |
461+| 4:2:0 12-bit superres | `sr420_12` | 8494 | `9e8206bf…` | **EXACT 6/6** |
462+
463+Caveat, stated so the next round does not inherit it: at 256x128 `--tile-rows`
464+was a proven no-op for 4:4:4, and I did **not** encode an untiled 4:2:0
465+control here, so `t420_12_row` may be measuring the same untiled stream as
466+`t420_12_col`. The EXACT verdict is safe either way (it is exact against the
467+oracle); what is unproven is that it exercised tiles.
468+
469+### 6.4 4:4:0 (`ss 0,1`) — NOT PRODUCIBLE through aomenc
470+
471+The y4m muxer refuses the format outright: `yuv4mpeg can only handle yuv444p,
472+yuv422p, yuv420p, yuv411p and gray8`. A raw `yuv440p` plane dump reaches
473+aomenc, which has no 4:4:0 input path and falls back to 4:2:0
474+(`Profile 1 requires 4:4:4 color format`; there is no `--input-format` flag
475+in `--help`). So the `4:4:0 (ss 0,1)` row stays **unmeasured and
476+unproducible by recipe**, for the same reason the 4:2:0 odd-luma-dimension row
477+does: closing it needs a hand-built sequence header, not an aomenc run. The
478+decoder's refusal (`subsampling_x != subsampling_y` refuses by name in
479+`decode_frame`) is unchanged and still the honest answer for any 4:4:0 stream
480+that is ever hand-built.
481+
482+### 6.5 Matrix deltas and the honest "not measured" list
483+
484+Matrix changes (§1): 4:4:4 row gains `odd dims 66x66 → y` (exact this lane),
485+`superres → D`, `10/12-bit tiles → D`, `12-bit lossless → D`; 4:2:0 row gains
486+`12-bit tiles + superres → y`. The tile-ROWS cells for 4:4:4 stay as they
487+are — the 8-bit one is now Agent13's EXACT (tile rows genuinely enabled at
488+geometries with a second SB row), and the 10/12-bit ones are the untiled
489+control above.
490+
491+Still not measured after this round: 4:4:4 at 10/12 bits with **tile rows
492+actually enabled** (needs a >= 256-high geometry — trap 2); 4:4:4 superres at
493+10/12 bits; 4:4:4 odd dims at 10/12 bits and at dimensions other than 66x66 /
494+130x122; 4:4:4 lossless at 8 bits **without** tiles as a control for the H3
495+witness; 4:4:0 at any depth (unproducible, §6.4); 4:2:2 (ss 1,0) beyond the
496+existing probe-bypass row.
497+
498+### 6.6 Handed to other lanes
499+
500+- The 4:4:4 **lossless chroma** divergences at 8/10/12 bits with and without
501+ tiles (first wrong sample U(109,0) at 12 bits, U(237,58) at 8 bits) go to
502+ **Agent24-2** with H3 — same format, same unit family, and this round shows the
503+ class is not tile-specific and not depth-specific, which narrows it.
504+- The 4:4:4 **130x122** odd-dimension divergence and the 4:4:4 **superres**
505+ divergence are unassigned; neither reduces to a known class on the evidence
506+ here, and neither has a discriminator run.
507+- Recorded from Agent13-2 and folded into the matrix above: a hardcoded 4:2:0
508+ luma footprint at the lossless 16x4/4x16 chroma-pair walk
509+ (`Reach::of_tu` mis-answering at `ss 0,0`), same shape class as the wave's
510+ other 4:4:4 bugs; its stream family is exact after the fix.