report(av1): lane-realworld r6 -- gate green, intrabc declined this round
Browse files at this commitc4df0cd9e7b4a873a21b3b7ca5d95c3d9197333cParent: 93b89f51 changed file +108 -0
- lanes/realworld-r6.report.md +108 -0
lanes/realworld-r6.report.mdadded+108 -0
| @@ -0,0 +1,108 @@ | |||
| 1 | +# lane-realworld r6 report | ||
| 2 | + | ||
| 3 | +VERDICT: Job 1 (gate delta_q/delta_lf before merge) DONE, committed | ||
| 4 | +(6981ef5). Both halves are now gate-proven against a real aomenc stream, | ||
| 5 | +not just code-verified against the spec's shape. "Then" item | ||
| 6 | +(`--enable-intrabc`) declined this round -- see below, lane says clear. | ||
| 7 | + | ||
| 8 | +## Job 1 -- the gate (6981ef5) | ||
| 9 | + | ||
| 10 | +r5 warned its own removal of the whole-frame `delta_q_present || | ||
| 11 | +delta_lf_present` refusal was unproven: no fixture anywhere set | ||
| 12 | +`delta_lf_present`. Verified against libaom source before writing any | ||
| 13 | +encoder flags, per the charter's own instruction not to assume: | ||
| 14 | + | ||
| 15 | +- `--deltaq-mode` help text says "requires --enable-tpl-model=1" but | ||
| 16 | + `enable_tpl_model` defaults to `1` (`av1_cx_iface.c:234`), so nothing | ||
| 17 | + extra was needed there. | ||
| 18 | +- The **default** `--deltaq-mode=1` (`DELTA_Q_OBJECTIVE`) additionally | ||
| 19 | + gates `delta_q_present_flag` on `gf_group->update_type == LF_UPDATE` | ||
| 20 | + and `allow_deltaq_mode(cpi)`'s own RD search returning a negative | ||
| 21 | + cost sum across every superblock (`encodeframe.c:2192-2211`) -- an | ||
| 22 | + extra, content-dependent condition worth avoiding for a gate that | ||
| 23 | + needs to fire reliably. | ||
| 24 | +- `--deltaq-mode=2` (`DELTA_Q_PERCEPTUAL`) skips that branch entirely: | ||
| 25 | + `delta_q_present_flag = deltaq_mode != NO_DELTA_Q`, gated only by | ||
| 26 | + `base_qindex > 0` (guaranteed by `--cq-level=45`, nonzero). Used this | ||
| 27 | + instead of the charter's suggested `--deltaq-mode=1`/`--aq-mode=1`. | ||
| 28 | +- `--delta-lf-mode=1` sets `extra_cfg->deltalf_mode`, which | ||
| 29 | + `tool_cfg->enable_deltalf_mode = (deltaq_mode != NO_DELTA_Q) && | ||
| 30 | + extra_cfg->deltalf_mode` (`av1_cx_iface.c:1269-1270`) ANDs onto | ||
| 31 | + `delta_lf_present_flag = delta_q_present_flag && | ||
| 32 | + enable_deltalf_mode` (`encodeframe.c:2217-2218`). This flag is real | ||
| 33 | + and does exactly what the charter asked to confirm: r5's worry that | ||
| 34 | + `--deltaq-mode` alone might never set `delta_lf_present` was correct | ||
| 35 | + -- `--delta-lf-mode=1` is the separate flag needed. | ||
| 36 | +- 128x64 (2 superblocks; this decoder hardcodes 64px SBs) is the | ||
| 37 | + charter's own minimum for a per-superblock symbol to have anywhere to | ||
| 38 | + differ. | ||
| 39 | +- `--cpu-used=4` (not `=0`, which every other multi-SB gate here avoids | ||
| 40 | + per the cdef gate's own documented dead-end: aomenc's RD at | ||
| 41 | + `--cpu-used=0` picks HORZ_4/VERT_B at part64 regardless of the | ||
| 42 | + rect/ab/1to4-partition flags, and this decoder's intra part64 match | ||
| 43 | + only covers NONE/SPLIT). Reused the cdef gate's exact working | ||
| 44 | + toolset otherwise (same `--enable-*` flags, same mandelbrot-source | ||
| 45 | + seed sweep for RD diversity). | ||
| 46 | + | ||
| 47 | +New test `a_real_aomenc_stream_with_delta_q_and_delta_lf_decodes_pixel_exact` | ||
| 48 | +(`crates/ec-av1/src/stream.rs`, appended at EOF): 40/40 attempts | ||
| 49 | +pixel-exact vs `ffmpeg`, `delta_q_hits()=1920`, `delta_lf_hits()=1920` at | ||
| 50 | +the end of the run, both hard-asserted `> 0` (not soft-skipped -- | ||
| 51 | +r5's `--deltaq-mode`/`--delta-lf-mode` combination fires reliably on | ||
| 52 | +every attempt, unlike the wedge-interintra gate's occasional zero-hit | ||
| 53 | +run). Also asserts any `"unsupported"` refusal does not name | ||
| 54 | +`delta_q`/`delta_lf` -- that capability is ported, a refusal naming it | ||
| 55 | +would be a regression. | ||
| 56 | + | ||
| 57 | +`EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib -j4`: **243 passed, | ||
| 58 | +0 failed, 17 ignored** (r5's 242 plus this one new gate). | ||
| 59 | + | ||
| 60 | +### One documented gap, not gate-provable | ||
| 61 | + | ||
| 62 | +libaom hardcodes `delta_q_info.delta_lf_multi = DEFAULT_DELTA_LF_MULTI` | ||
| 63 | +(`enums.h:73`, value `0`) in the encoder's own frame-setup path with **no | ||
| 64 | +CLI flag that ever sets it to 1** (confirmed by grepping every | ||
| 65 | +`delta_lf_multi =` assignment in `av1/encoder/`: only the one hardcoded | ||
| 66 | +default). This gate therefore proves the single-plane | ||
| 67 | +`!delta_lf_multi` branch of `maybe_read_delta_lf` (the branch every real | ||
| 68 | +aomenc stream can ever produce) but cannot and does not claim to | ||
| 69 | +exercise the 4-plane `delta_lf_multi` loop -- that path stays | ||
| 70 | +code-verified against the spec's read shape only, same disposition r5 | ||
| 71 | +left the whole feature in, now narrowed to just this one sub-branch. | ||
| 72 | +Not a refusal (the code correctly handles `delta_lf_multi=false`, which | ||
| 73 | +is the only value a real encoder ever writes), just a residual | ||
| 74 | +proof-gap worth naming per the charter's own standard. | ||
| 75 | + | ||
| 76 | +## Refusal strings changed this lane | ||
| 77 | + | ||
| 78 | +None. The whole-frame refusal was already removed by r5; this round | ||
| 79 | +added a gate, not a code change to `decode.rs` or | ||
| 80 | +`refusal_inventory.rs`. | ||
| 81 | + | ||
| 82 | +## "Then" -- `--enable-intrabc` | ||
| 83 | + | ||
| 84 | +Declined this round; lane says clear. `decode.rs:2767-2786` already | ||
| 85 | +documents why in its own comment (lane-screen scope): actual intra | ||
| 86 | +block copy needs `assign_dv`'s DV-prediction machinery this decoder | ||
| 87 | +does not carry (`av1_find_mv_refs`/`av1_find_ref_dv` equivalents -- | ||
| 88 | +DV-specific validity checks against tile/frame boundaries, a DV | ||
| 89 | +predictor stack distinct from the existing NEWMV mv-stack, then | ||
| 90 | +integer-pel same-frame block-copy prediction with decoded-region | ||
| 91 | +bounds checks). Every comparable feature already landed in this repo | ||
| 92 | +(warp, OBMC, interintra, masked compound, wedge) took multiple | ||
| 93 | +dedicated lane-rounds each per the ledger; attempting a full IntraBC | ||
| 94 | +landing in whatever budget remained after Job 1 risked either a | ||
| 95 | +shallow/wrong port (a new desync class, per this repo's own extensive | ||
| 96 | +history of exactly that) or leaving genuinely unfinished work | ||
| 97 | +uncommitted at the turn cap. Job 1 was the charter's stated priority | ||
| 98 | +("nothing else in this lane matters until it is done"); IntraBC is | ||
| 99 | +sized for its own dedicated lane, not a "then, if turns remain" addendum. | ||
| 100 | + | ||
| 101 | +## Merge note | ||
| 102 | + | ||
| 103 | +No refusal strings added/removed/reworded. `gate_coverage.rs`'s | ||
| 104 | +`NEVER_EXERCISED` derivation only tracks `--enable-*` flags (verified by | ||
| 105 | +reading its parser); `--deltaq-mode=`/`--delta-lf-mode=` are not | ||
| 106 | +`--enable-*` flags so this new gate needs no entry there, and | ||
| 107 | +`gate_coverage.rs` itself is unmodified. `crates/ec-av1/src/stream.rs` | ||
| 108 | +is the only file touched this round. | ||