edith_codecs
Clone
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
lane-av1444edge — the two 4:4:4 cells the chroma-format sweep handed over
Base 4155c7c7. Branch three commits on top of it, in this order:
| commit | what | owner |
|---|---|---|
dc35d607 |
the inter-frame pre-filter rung (EC_AV1_PREFILT_WIDE_DUMP) did not exist, and its counter restarted — measurement only, no decode-path edit, merges independently of everything else here |
this lane |
e10a3b25 |
cherry-pick -x of f92776ba, lane-av1444rect's H1 fix — not mine; see §5 |
Agent04-2 |
a9e5034e |
the gate + the two pinned fixtures | this lane |
Both cells the sweep handed over are one class, and the fix already existed on another lane's branch. The work here is the discriminator run the sweep said it did not have, plus the rung defect that made the discriminator run necessary, plus the matrix correction in §6.
1. The two cells, pinned
Both are the sweep's own §6.2 recipes, byte-reproduced. The truncated
sha256 prefixes the sweep recorded (c87ac65b…, 06621606…) both
match, so these are the same bytes it measured.
| cell | fixture | bytes | sha256 |
|---|---|---|---|
| 4:4:4 odd coded dims 130x122 | fixtures/444_lossy_rect4_odd_130x122.obu |
8945 | c87ac65b77579afd2938669b0cbe3ec44c3abf775c0223cacb9d14b8c2eee27c |
| "4:4:4 superres" 256x128 | fixtures/444_lossy_rect4_wide_256x128.obu |
15239 | 06621606c11ae805f784a1c9736db6301a925a4fa3154e2fc38db1df7ad9b826 |
Recipe (both arms; W/H = 130/122 and 256/128):
ffmpeg -f lavfi -i "testsrc2=size=<W>x<H>:rate=25" -frames:v 4 \
-pix_fmt yuv444p -strict -1 -f yuv4mpegpipe - | \
aomenc --codec=av1 --passes=1 --end-usage=q --cq-level=20 --cpu-used=2 \
--threads=1 --row-mt=0 --lag-in-frames=0 --kf-max-dist=100 \
--limit=4 --obu -o - -
rate=25 is load-bearing (testsrc2's pattern is time-parameterised).
Both streams: 4 decode-order frames, 0 hidden, single tile, ss (0,0),
8-bit, profile 1, use_superres=false on all four frames (see §6).
Measured against the instrumented aomdec (EC_AV1_FINAL_DUMP, decode
order), asserting equal frame COUNTS and equal per-frame byte LENGTHS
before any sample is read:
| 130x122 | 256x128 | |
|---|---|---|
base 4155c7c7 |
frames 0-2 EXACT, frame 3 11521 samples, first (f3, s2208) = Y(128,16) ours 134 / oracle 170 | frames 0-1 EXACT, frame 2 25296 first Y(192,0) ours 92 / oracle 106, frame 3 51108 first Y(0,0) |
Both numbers are the sweep's, exactly.
2. The class, and how it was separated from the other candidate
Two candidate fixes were on the table and the two cells are evidence for exactly one of them.
arm (each git reset --hard 4155c7c7 + a verified rebuild) |
130x122 | 256x128 |
|---|---|---|
| base | DIVERGENT f3 11521 | DIVERGENT f2 25296 + f3 51108 |
base + rung + 4e151813 |
DIVERGENT f3 11521 — byte-identical to base | DIVERGENT f2 25296 + f3 51108 — byte-identical |
base + rung + f92776ba |
EXACT 4/4 | EXACT 4/4 |
| base + rung + both | EXACT 4/4 | EXACT 4/4 |
The class is H1, f92776ba (lane-av1444rect). 4e151813 is inert
here, and the code says why rather than leaving it to the numbers: it
patches only the two tu_reach call sites in decode_rect4_16_strip,
and both sit inside that function's if lossless_pair { arm. The lossy
path is the } else if skip { at decode.rs:17579. These two cells are
4:4:4 lossy cq-20, so they are structurally out of its reach.
Class statement. decode_inter_block's around_c gathered a 1:4
(HORZ_4 / VERT_4) inter strip's chroma coefficient context at the 4:2:0
PAIR extent — (16, 8) HORZ / (8, 16) VERT — with no ss gate. At
4:4:4 is_chroma_reference (av1_common_int.h:1454) reduces both parity
clauses to !subsampling_y / !subsampling_x, so every block is its own
chroma reference and no pair exists: the strip codes its own 16x4 chroma
over its own context. The gather read one extra luma mi row of LEFT
chroma context, the U unit's get_txb_ctx saw a neighbour libaom does
not have, and the arithmetic coder forked.
What the two new geometries add over the existing H1 gate (128x96): a partial-frame right edge (130x122 — neither dimension a multiple of 8, and the sweep's own odd-dimension gate is 4:2:0 only, so the 4:4:4 partial-column walk had no exactness evidence anywhere), and 256x128 with CDEF and loop restoration both live on the last two frames. 66x66 is EXACT at the same settings, which is what made the sweep call the partial-frame walk "right at one odd geometry and wrong at another" — it is not the geometry, it is whether the stream codes a 1:4 inter strip.
2a. A retraction inside this lane
An earlier version of the table above said 4e151813 alone was
sufficient. It was not, and the arm never ran. The tree was reset
with git checkout -- <files>, which restores from the INDEX — and after
git cherry-pick -n the index still held the second pick, so the arm
re-measured the both-commits tree, and cargo saw byte-identical sources
so it did not even relink. The wrong table was sent to two peers, one of
whom had already written it into their report; both were told within the
hour and the retracted version is recorded in their report as retracted.
The table above is the re-run. Kept here because the failure is the
lesson: the dangerous measurement is the one that returns a number.
Two agents hit the same class independently the same session (mine via a
stale index, Agent13-2's via a "fix" worktree that was itself a merge of
two commits).
3. Localizing, because the discriminator is the reusable part
The pre-loop-filter reconstruction already diverges at the identical
first sample as the final output, on both cells (130x122 frame 3 at
Y(128,16); 256x128 frame 2 at Y(192,0)). No filter is involved, so the
deblock/CDEF/LR ladder is not where this lives — and that verdict was
only reachable because of the rung fix in §4. Before it, the nearest
usable rungs were unreadable: EC_AV1_POSTDEBLOCK_DUMP /
EC_AV1_POSTCDEF_DUMP came out 61440 B against the oracle's 52224 B
(our 160x128 padded surface vs its 136x128 aligned buffer), and the
oracle's POSTDEBLOCK wrote 3 files for a 4-frame stream.
Order the wrong superblocks by DECODE order, not raster. Raster order puts the first wrong sample at Y(192,0) (SBcol3/SBrow0). Decode order puts it in SBcol2/SBrow0, first wrong pixel (128,48) = mi(12,32), with zero wrong pixels in any superblock decoded before it.
And the block at mi(12,32) has IDENTICAL mode, ref0 and mv0 on both
sides. The EC_MODE ladder (compared per decode-order frame, ours
split by EC_PICT, the oracle's by aomdec --limit) agrees through its
first 175 entries of frame 2 and then forks on the very next block,
mi(13,32):
AOM mi_row=12 mi_col=32 mode=13 ref0=1 mv0=(-32,0) stack=1
OUR mi_row=12 mi_col=32 mode=13 ref0=1 mv0=(-32,0) stack=1 <- same
AOM mi_row=13 mi_col=32 mode=13 ref0=1 mv0=(-32,0) stack=2
OUR mi_row=13 mi_col=32 mode=13 ref0=4 mv0=(-32,0) stack=2 <- ref0 LAST vs GOLDEN
After the fork the ladder is garbage: 226 entries against the oracle's 299 in frame 2, 40 against 361 in frame 3.
A wrong pixel cannot cause a mode fork. Mode context is built from mode info, not from reconstructed samples. So one bsize/footprint error has to feed both symptoms, and it is upstream of the pixels rather than a consequence of them. That argument is what rules out "the reconstruction diverged, therefore the chroma context followed".
What the ladder could not have told me: EC_MODE's print carries no
bsize, so a partition or block-size fork is invisible to it by
construction. Nor is its rng field a cross-decoder invariant here
(libaom's 16-bit ec.rng against a 15-bit log2 range) — only the
semantic fields compare. The oracle's EC_PART rung prints 4x4 mi while
ours prints 16x16-PIXEL units at the sub-node levels, so positions do not
compare either; the read-VALUE sequences do, and over the key frames they
agree. Our EC_PART rung is also key-frame-path only, so it says nothing
about these inter frames at all.
4. The rung fix (dc35d607, measurement only)
EC_AV1_PREFILT_WIDE_DUMP is the only rung that writes the
pre-loop-filter reconstruction cropped to each plane's mi-ALIGNED extent
— the shape aomdec's rung 7 writes (y_width/y_height) — so it is the
rung that separates "already wrong in reconstruction" from "introduced by
a loop filter". Two defects, both reporting success:
- It was inlined in the key-frame tile path only. The inter-frame path had no wide prefilter dump at all.
- Its counter was a function-local
static IDX2. Rust gives each monomorphisation its own copy, so the index restarted and every frame after the first overwrote.f0— a per-frame bisection silently compared the LAST decoded frame and reported it as frame 0. Measured directly: before the change the rung wrote exactly one file for a four-frame stream.
Now: a shared dump_prefilter_wide called from both tile paths, beside
each path's existing padded EC_AV1_PREFILT_DUMP so the two agree on the
point they sample, indexed by the process-global per-var dump_stage_idx
map. After the change both cells produce 4 files at exactly the oracle's
byte count. No decode-path behaviour changes: every write stays inside the
existing if let Ok(path) = crate::envflags::var(...) arm, which is off
unless the env var is set.
Agent04-2 has flagged this to Main as standalone and mergeable independently. It should not wait on the rest of this lane.
5. Ownership — this is a handback, not a new fix
The fix is f92776ba, cherry-picked here with -x so the merge is
idempotent and the branch is green. Agent04-2 owns it. What this lane
contributes beyond the cherry-pick:
- the discriminator run the sweep said it did not have, and the ablation that separates H1 from the other candidate;
- two geometries H1 did not cover, with red-before on both, so the class is no longer a single-geometry claim;
- the rung fix, which is what made the discriminator run possible;
- the matrix correction in §6.
The fixtures deliberately sit next to the gate that fixes them, not next to a gate that does not (Agent13-2's explicit preference, and the right call: they invite exactly the misattribution §2a records).
6. Matrix correction: "4:4:4 superres" is not a superres cell
--superres-mode=1 without --superres-denominator scales nothing.
The sweep's recipe omitted the denominator, so it was left to the
encoder's energy heuristic — get_superres_denom_for_qindex
(av1/encoder/superres_scale.c:143) returns SCALE_NUMERATOR unless
the frame is a KF/ARF update and the horizontal-energy test passes, and
on a smooth testsrc2 source it chose 8. Parsed from the stream, all
four frame headers of 444_lossy_rect4_wide_256x128.obu carry:
FH0 frame=256x128 upscaled=256 use_superres=false denom=8
(through FH3). The cell was a plain 4:4:4 lossy cq-20 stream wearing a
superres label — the same family as the sweep's own §6.0 trap 2, which
caught --tile-rows=1 being a no-op at 256x128.
With an explicit denominator the cell is real and byte-exact 4/4:
ffmpeg -f lavfi -i "testsrc2=size=256x128:rate=25" -frames:v 4 \
-pix_fmt yuv444p -strict -1 -f yuv4mpegpipe - | \
aomenc --codec=av1 --passes=1 --end-usage=q --cq-level=20 --cpu-used=2 \
--threads=1 --row-mt=0 --lag-in-frames=0 --kf-max-dist=100 \
--limit=4 --superres-mode=1 --superres-denominator=12 \
--superres-kf-denominator=12 --obu -o - -
14808 B, sha256 450caa3e31526a8973b9f64d5030a2f11b87bd60fac07aef121cb62af9bf85ff;
all four headers frame=171x128 upscaled=256 use_superres=true denom=12;
predict_scaled_hits=2130, scaled leaf8=83 sub8=372, so scaled MC
really ran. Verdict: 4/4 decode-order frames byte-exact vs aomdec,
measured on a9e5034e's parent (dc35d607 + f92776ba) with no
4:4:4-specific fix involved beyond H1.
So the sweep's §1 matrix row 4:4:4 / superres / 8-bit should read
exact, not D, and the cell needed a denominator to be a cell at all.
A 36-point sweep over {testsrc2, noise, smptebars} x cq {0,10,20,30} x
denominator {9,12,16} found a scaled 4:4:4 stream in every combination
once the denominator is given.
Not gated: the recipe is a hand-quoted flag set with no pinned fixture here, and the eight committed superres gates are 4:2:0. Recorded as the open item rather than closed with a gate I have not mutation-proved.
7. Gate and its red-before
a_444_lossy_rect4_strip_stream_decodes_pixel_exact_at_odd_and_wide_geometries
(crates/ec-av1/src/stream.rs). Per arm it asserts:
- the pinned bytes — length and FNV-1a-64 (my FNV implementation was
validated against the sibling gate's published pair, 6441 B /
0x4368_8b2d_2e91_72b0, before being used on new bytes); - a non-zero DELTA of 1:4 inter strips.
inter16_rect4_counters()is process-wide with no reset, so an absolute count would be a non-vacuity assertion that passes on residue from another stream in a full-suite run. Measured deltas: 28 and 76. decode::rect4_inter_own_chroma444_hits() > 0— the corrected route demonstrably ran. Measured: 12 and 24.- the 4:4:4 full-resolution chroma shape (
f.u.len() == w * h), so the compare cannot stand in for the shape claim; - 4 frames, the claimed dimensions, and every decode-order frame
byte-exact through
decode_all_frames_vs_oracle.
Green (--nocapture, EC_AV1_REQUIRE_AOMENC=1, no SKIP line):
a_444_lossy_rect4_strip_stream_decodes_pixel_exact_at_odd_and_wide_geometries:
fixtures/444_lossy_rect4_odd_130x122.obu 4 decode-order frame(s) (0 hidden)
byte-exact vs aomdec, 12 own-extent 1:4 chroma gather(s), 28 1:4 inter strip(s)
fixtures/444_lossy_rect4_wide_256x128.obu 4 decode-order frame(s) (0 hidden)
byte-exact vs aomdec, 24 own-extent 1:4 chroma gather(s), 76 1:4 inter strip(s)
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 704 filtered out
Red before, by mutation on this gate's own arms. The ss_x == 0
own-extent arm was pointed back at the 4:2:0 (16, 8) pair extent, with
the counter left firing so the run goes red on the PIXEL compare and not
on a "counter is zero" assertion:
panicked at crates/ec-av1/src/stream.rs:8469:
a_444_lossy_rect4_strip_stream_decodes_pixel_exact_at_odd_and_wide_geometries:
decode-order frame 3 of 4 (4 shown, 0 hidden) differs from the oracle at
byte 4260 (ours 0 vs 38), 9203 bytes differ
test result: FAILED. 0 passed; 1 failed
The same mutation measured by hand on both arms: 256x128 goes to 76404 samples with first wrong Y(192,0) — the sweep's exact number — and 130x122 to 9203 with first wrong Y(100,32). Note the mutation changes the first wrong sample on 130x122, so the base defect and the mutated defect are not the same fork; the gate is red either way, which is what a mutation is for.
8. Identity
All on a9e5034e, --nocapture, single-threaded.
| family | gates that RAN | result |
|---|---|---|
a_444* (both H1 gates among them) |
4 | ok |
a_lossless_444* + a_real_aomenc_lossless_444* + screen-key-frame |
5 ran, 1 SKIP | ok |
superres (a_superres*, a_real_aomenc_*superres*) |
7 | ok |
rect-strip (a_real_aomenc_*rect_strip*, intra-rect-strip, skipped-lossless-intrabc) |
5 | ok |
the sweep's three chroma-format gates (cherry-picked aeb696da into a throwaway worktree at a9e5034e) |
3 | ok |
25 gates ran, 1 skipped. The SKIP is why the counts are split by family
instead of folded into one total: for the lossless+superres filter cargo
reported 13 passed; 0 failed while one of the thirteen printed its SKIP
line, so that run line on its own reads as thirteen real gates. The 13
is 12 real + 1 skip, split above as 5 + 1 and 7.
The three sweep gates, quoted:
a_real_aomenc_odd_coded_dimension_streams_decode_pixel_exact: 6 arms, 4 frames
byte-exact each, frame-edge walks [0,6,0,4,48,12] [0,0,0,4,0,6] [0,4,0,10,0,10]
[0,4,0,8,0,12] [0,4,0,8,0,8] [0,0,0,12,0,14]
a_lossless_444_10bit_inter_stream_decodes_pixel_exact: 6 frames byte-exact vs aomdec at 10-bit 4:4:4
a_444_12bit_inter_sequence_decodes_pixel_exact: 6 frames byte-exact vs aomdec at 12-bit 4:4:4
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 705 filtered out
One SKIP, pre-existing and not mine:
a_real_aomenc_lossless_444_key_frame_decodes_sample_exact prints "no
pinned bytes at fixtures/ll444-lossless-key.obu". That file has no
entry in git log for the path — it was never committed, so the gate has
always skipped on this base.
No suite run beyond the named gates: full validation is Main's, once after all subagents land.
9. Handed on
- Agent04-2 —
f92776bais the fix, cherry-picked here with-x; it now has two more geometries and a red-before on each. The retraction in §2a is recorded in their report. - Agent13-2 —
4e151813is confirmed lossless-only by a structural argument (lossless_pairarm) and by byte-identical divergence counts. Independently reached the same conclusion, by a different contaminated A/B. - Main —
dc35d607is standalone, measurement-only, and mergeable now. The matrix row4:4:4 / superres / 8-bitshould read exact (§6). Open item: the real 4:4:4 superres cell is exact but ungated.
10. Appendix — the mode fork re-verified, and the per-arm commands
10a. The mi(13,32) ref0 fork does NOT survive the H1 fix
§3 reported a mode fork at mi(13,32) — the oracle reads
ref0 = LAST (1), we read GOLDEN (4) — landing on the block right
after the first wrong pixel, and flagged it as residue worth a lane of
its own if it survived. Re-measured on a clean two-arm pair, one commit
apart, with 4e151813 provably absent from both:
| decode-order frame | oracle entries | arm A (base + rung) | arm B (base + rung + f92776ba) |
|---|---|---|---|
| 1 | 279 | 279 | 279 |
| 2 | 299 | 226 | 299 |
| 3 | 361 | 40 | 361 |
| arm | semantic ladder diffs (mi, ref0, ref1, mv0), frames 1 / 2 / 3 | mi(13,32) idx175 |
|---|---|---|
| A — base + rung | 0 / 51 / 40 | AOM ref0=1 mv0=(-32,0) vs OUR ref0=4 mv0=(-32,0) — DIFF |
B — base + rung + f92776ba |
0 / 0 / 0 | AOM ref0=1 mv0=(-32,0) vs OUR ref0=1 mv0=(-32,0) — SAME |
The fork is gone, and it is the same defect. Zero semantic ladder diffs in all three frames, and the entry counts now equal the oracle's exactly (arm A lost 73 entries in frame 2 and 321 in frame 3; arm B loses none). This is §3's causality argument confirmed rather than asserted: a wrong pixel cannot cause a mode fork, so one bsize/footprint error had to feed both symptoms — and if that is right, one fix must remove both. It does. A residual fork here would have refuted the argument and pointed at a second defect; there is none. Dropped, no separate lane.
The one residual ladder difference is a print asymmetry, not a fork.
Arm B still shows 2 (frame 2) and 12 (frame 3) entries where the
stack field differs. Every one is a compound block (ref1 set, e.g.
ref0=1 ref1=4, ref0=4 ref1=7) whose OUR line prints no stack=
field at all — the compound arm's EC_MODE_VAL format omits it. All
semantic fields, and on most entries rng, match. Same family as
compare-range-not-tell: a field that is not a cross-decoder invariant
must not be compared as one.
10b. The ancestry guard is wrong for a cherry-picked commit
The guard I ran in 10a, git merge-base --is-ancestor f92776ba HEAD,
returns False on an arm that has the fix, because a cherry-pick
mints a new sha. Had I trusted it as a presence check it would have
reported arm B as "fix absent" — a third check in this session that
returns a plausible number instead of the fact, and the second inside
this lane alone. The correct guard over cherry-picks is patch-id
equivalence:
f92776ba: is-ancestor=False patch-id=bcead47eb734ca4f local equivalent: 38b34494 PRESENT
4e151813: is-ancestor=False patch-id=5c19bac8add27bbb local equivalent: None absent
dc35d607: is-ancestor=False patch-id=285286bb3506199b local equivalent: e362bfda PRESENT
is-ancestor remains a valid EXCLUDE check for a commit that is a true
ancestor; it is not a valid INCLUDE check after a cherry-pick. The
rust-oracle-gate-verification entry was corrected.
10c. The per-arm commands, verbatim
Throw-away worktree, one CARGO_TARGET_DIR per arm, arms exactly one
commit apart. A reviewer can paste this and get the same numbers.
WT=~/.cache/wt/av1444fork
cd /home/user/Documents/Code/Rust/edith_codecs
git worktree add -f --detach "$WT" 4155c7c7
arm () { # arm <label> <tag> <commit>...
tag=$1; shift
git -C "$WT" reset --hard 4155c7c7 # per-arm reset, never `checkout --`
git -C "$WT" clean -fdq
for c in "$@"; do git -C "$WT" cherry-pick -x "$c"; done
git -C "$WT" log --oneline -1
for c in f92776ba 4e151813; do # presence/absence by PATCH-ID
p=$(git -C "$WT" show "$c" | git patch-id --stable | cut -d' ' -f1)
hit=$(git -C "$WT" log --format=%H | while read -r h; do
q=$(git -C "$WT" show "$h" | git patch-id --stable | cut -d' ' -f1)
[ "$q" = "$p" ] && { echo "$h"; break; }; done)
echo "$c present=${hit:-no}"
done
td=~/.cache/cargo-target-$tag
( cd "$WT" && CARGO_TARGET_DIR="$td" \
cargo build -p ec-av1 --example decode_probe --features gate-counters )
stat -c '%y' "$td/debug/examples/decode_probe" # the 0.0s-build tell
( cd "$WT" && EC_TRACE_MODE=1 EC_AV1_FINAL_DUMP=/tmp/$tag \
"$td/debug/examples/decode_probe" ~/.cache/av1444edge/sr444.obu 2>/tmp/$tag.our )
for k in 1 2 3 4; do # oracle, per frame
EC_TRACE_MODE=1 ~/.cache/aom-oracle/build/aomdec --codec=av1 --limit=$k -o /dev/null ~/.cache/av1444edge/sr444.obu 2>/tmp/$tag.aom$k
done
}
arm A_base_plus_rung A dc35d607
arm B_base_plus_rung_plus_f92776ba B dc35d607 f92776ba
Compare by splitting OUR's EC_MODE_VAL lines on the EC_PICT idx=
markers (one per decode-order frame, printed before that frame's dump),
the ORACLE's on cumulative aomdec --limit=k counts, then field by
field per entry. Observed:
arm A entries oracle/ours 1,2,3: 279/279 299/226 361/40
arm A SEMANTIC diffs (mi/ref0/ref1/mv0) frame 2 = 51, frame 3 = 40
arm B entries oracle/ours 1,2,3: 279/279 299/299 361/361
arm B SEMANTIC diffs frame 2 = 0, frame 3 = 0
arm B residual stack-field diffs: frame 2 = 2, frame 3 = 12; every one a
compound block whose OUR line omits the field
Pixel cross-check on the same two arms, so the ladder verdict is not taken on trust: arm B is 4/4 decode-order frames byte-exact vs aomdec on both fixtures (§7); arm A is 11521 and 76404 samples off (§1).
Cleanup: git worktree remove --force ~/.cache/wt/av1444fork and
rm -rf ~/.cache/cargo-target-forkA ~/.cache/cargo-target-forkB.
11. Appendix r3 — the 4:4:4 superres cell is REAL, and how to tell
Main relayed a measurement from lane-av1gates444 that 256x128 is
byte-identical with and without --superres-mode=1, and asked whether ANY
aomenc recipe on this build can produce a stream whose PARSED header
carries superres. Both are right, about different recipes, and the
distinction is the deliverable.
11a. The flag sweep: attempted flags -> PARSED denom
Build: ~/.cache/aom-oracle/build/aomenc, libaom v3.13.3-7-g9bb526a
(oracle snapshot; --version is not an accepted flag on this build, so the
version comes from the source tree the binary is built from). Common
recipe, 256x128 yuv444p testsrc2=size=256x128:rate=25 -frames:v 4, with
--profile=1 --passes=1 --end-usage=q --cq-level=20 --cpu-used=2 --threads=1 --row-mt=0 --lag-in-frames=0 --kf-max-dist=100 --limit=4.
Every row's verdict is read from the stream's OWN parsed frame header, not
from the flag.
verdict | flags | parsed FH0 | sha256
no-op | (none, control) | frame=256x128 upscaled=256 use_superres=false denom=8 | 06621606
no-op | superres-mode=1 (no denom) | frame=256x128 upscaled=256 use_superres=false denom=8 | 06621606
SCALED | superres-mode=1 den=9 | frame=228x128 upscaled=256 use_superres=true denom=9 | 3d619ee0
SCALED | superres-mode=1 den=12 | frame=171x128 upscaled=256 use_superres=true denom=12 | 450caa3e
SCALED | superres-mode=1 den=16 | frame=128x128 upscaled=256 use_superres=true denom=16 | 194450c4
SCALED | superres-mode=2 (no denom) | frame=186x128 upscaled=256 use_superres=true denom=11 | c18496cf
SCALED | superres-mode=2 den=9/12/16 | frame=186x128 upscaled=256 use_superres=true denom=11 | c18496cf
no-op | superres-mode=3, all den | frame=256x128 upscaled=256 use_superres=false denom=8 | 8dafaf38
no-op | superres-mode=4, all den | frame=256x128 upscaled=256 use_superres=false denom=8 | 8dafaf38
no-op | resize-mode=1,2,3 any den | frame=256x128 upscaled=256 use_superres=false denom=8 | 06621606
7 of 29 combinations produce a real scaled stream. Three findings behind that:
- The reported no-op is real and is exactly the sweep's recipe.
--superres-mode=1with NO denominator gives sha25606621606…, which is byte-identical to the no-flag control — so lane-av1gates444's measurement is correct, and the sweep'ssr444bytes are that no-op stream. libaom picks the denominator itself (get_superres_denom_for_qindex,av1/encoder/superres_scale.c:143): it returnsSCALE_NUMERATORunless the frame is a KF/ARF update AND the horizontal-energy test passes, and on a smoothtestsrc2source it returns 8. - Adding
--superres-denominatoris what makes the cell exist. Mode 1 with an explicit denominator is scaled on every frame, and the parseddenomequals the flag. This is the route the r3 gate pins. - Mode 2 (random) scales with no denominator at all — and IGNORES
--superres-denominator: all four denominator values produce the same stream (186x128 denom=11, shac18496cf…). So "set the denominator" is not the only working route, and a gate that asserted the flag value rather than the parsed value would pass on mode 2 while the numbers it printed were fiction.
--resize-mode is a different feature and is never a superres witness: it
downsizes the FRAME (frame=171x85 upscaled=171), whereas superres keeps
frame_width < upscaled_width. Worth separating explicitly, because
"denominator" appears in both flag families.
Modes 3 (qthresh) and 4 (auto) are no-ops at every denominator tried, which is consistent with the committed census gate's own recorded finding that auto "picked denominator 8, so those two arms carry no scaling at all and prove nothing".
11b. Our decoder on all four real scaled streams
Every SCALED row above, compared against the instrumented aomdec in decode order with equal frame counts and equal per-frame byte lengths asserted first:
mode=1 den=9 3d619ee0fda3 upscaled 228x128 f0 EXACT f1 EXACT f2 EXACT f3 EXACT
mode=1 den=12 450caa3e3152 upscaled 171x128 f0 EXACT f1 EXACT f2 EXACT f3 EXACT
mode=1 den=16 194450c4bf19 upscaled 128x128 f0 EXACT f1 EXACT f2 EXACT f3 EXACT
mode=2 c18496cf3b7d upscaled 186x128 f0 EXACT f1 EXACT f2 EXACT f3 EXACT
So the 4:4:4 superres class is byte-exact across denominators 9, 11, 12
and 16 and coded widths 128, 171, 186 and 228 at 256x128 — not one
geometry. The gate pins the den=12 member and asserts its PARSED
use_superres / denom / coded size, so a stream that stops being scaled
goes red on a header assertion rather than becoming a differently-shaped
exactness claim. denom=9 (coded 228, the widest margin the frame
allows) and mode=2's denom=11 are the obvious next pins and are not
gated; recorded rather than quietly dropped.
11c. The sweep claims that need correcting (NOT edited here)
lanes/av1formatsweep.report.md is the sweep lane's file; these are the
lines to fix, named rather than touched:
- line 438 — the
sr444row: "4:4:4 superres 256x128 (--superres-mode=1) … DIVERGENT from f2, 76404 samples". Two errors: the stream carriesuse_superres=false denom=8(§11a), and its divergence is the H1 rect4-strip class, already localised and gated ina_444_lossy_rect4_strip_stream_decodes_pixel_exact_at_odd_and_wide_geometries(whose second arm is these exact 15239 bytes). The row should say the recipe was a no-op and name the class. - line 83 — the §1 matrix row
| superres | – | – | – |for 4:4:4. Should becomeYat 8-bit: gated bya_444_lossy_superres_stream_decodes_pixel_exact. - line 485 — "Matrix changes (§1): 4:4:4 row gains …
superres → D". Should besuperres → Yat 8-bit. - line 442 — "Note the aomenc flag is
--superres-mode=1; there is no--enable-superresin this build". True but incomplete, and it is the note that let the no-op recipe stand as a cell: the flag needs--superres-denominator(or mode 2) to do anything, and the verdict must come from the parsed header. - line 492 — "Still not measured … 4:4:4 superres at 10/12 bits" is still true and still open; only the 8-bit cell is closed here.
11d. Overlap to be aware of when merging
lane-av1gates444's a_444_lossy_256x128_stream_decodes_pixel_exact already
pins the plain 256x128 lossy geometry. My r1 gate's second arm uses the
same 15239 bytes but claims something different — that the 4:4:4 1:4
inter-strip route fired (76 strips, 24 own-extent chroma gathers) and that
the H1 fork is gone there — so it is not redundant with a geometry gate.
The two fixtures are the same bytes, so whichever lands second should reuse
the pin rather than add a second copy. Flagging it rather than resolving
it: both claims are load-bearing and the merge order is Main's call.