Step 3 and the step 4 deferral
Browse files at this commitaaaaef531fce1389f9d6f1e9adfe2241c9be9deeParent: cb5978f- docs
- step 3 and the step 4 deferral
4 changed files +57 -3
- lanes/b64b.report.md +45 -3
- lanes/b64b/bin-ship +0 -0
- lanes/b64b/ship-12.log +6 -0
- lanes/b64b/ship-lg.log +6 -0
lanes/b64b.report.mdmodified+45 -3
| @@ -109,10 +109,52 @@ DECISION: **KEEP, default on**. Both film rows improve on both columns | |||
| 109 | Pins re-taken for steps 1+2 together: 9835 -> 9798 at q=150 and 35798 -> | 109 | Pins re-taken for steps 1+2 together: 9835 -> 9798 at q=150 and 35798 -> |
| 110 | 35614 at q=60. | 110 | 35614 at q=60. |
| 111 | 111 | ||
| 112 | -## Step 3 — EDGE superblocks | 112 | +## Step 3 — EDGE superblocks (commit pending) |
| 113 | 113 | ||
| 114 | -(pending) | 114 | +`sb64_legal` required the WHOLE superblock inside the true frame. AV1 asks |
| 115 | +only that the block's own half is (`has_cols`/`has_rows`, spec | ||
| 116 | +`decode_partition`), and the writer's `Whole64` arm already refuses exactly | ||
| 117 | +the other case, so the missing half was the SEARCH's: a trial scored over the | ||
| 118 | +padding the encoder invented past the edge. `inside_sse` scores the inside | ||
| 119 | +part alone and `clip_sb64_sse` rescores all three planes of every 64-root | ||
| 120 | +trial set (skip, compound and residual arms) when the edge cuts the | ||
| 121 | +superblock. The root's var-tx arm stays off there by `commit_inter_luma`'s own | ||
| 122 | +"wholly inside" rule, so an edge root is one TX_64X64 or a skip. | ||
| 123 | + | ||
| 124 | +`EC_AV1_B64EDGE=0` restores the old rule. | ||
| 125 | + | ||
| 126 | +### Exactness | ||
| 127 | + | ||
| 128 | +`encoder::tests::a_non_superblock_aligned_clip_codes_edge_64x64_roots_and_decodes_sample_exact` | ||
| 129 | +— 232x168 (mi 58x42: the last superblock column and row are cut with more | ||
| 130 | +than half inside): 9 edge roots, every frame sample-exact through our decoder | ||
| 131 | +AND ffmpeg. | ||
| 132 | + | ||
| 133 | +### 12-frame gate | ||
| 134 | + | ||
| 135 | +The gate CANNOT see this step: film A is 1920x768 (mi 480x192), film B and | ||
| 136 | +the screen capture are 1920x1024 (mi 480x256) — every row is superblock | ||
| 137 | +aligned, so `take_b64_edge_hits` is 0 on all five and the shipped table below | ||
| 138 | +is identical to step 2's ON arm. The decision rests on the synthetic | ||
| 139 | +exactness test above plus the fact that it is the user's arbitrary export | ||
| 140 | +sizes, not the gate clips, that reach the path (class | ||
| 141 | +`gate-blind-to-feature`, stated rather than hidden). | ||
| 142 | + | ||
| 143 | +DECISION: **KEEP, default on** — no gate row moves, one new capability, one | ||
| 144 | +witness. | ||
| 115 | 145 | ||
| 116 | ## Step 4 — INTRA 64x64 root | 146 | ## Step 4 — INTRA 64x64 root |
| 117 | 147 | ||
| 118 | -(pending) | 148 | +NOT IMPLEMENTED this round. `Superblock::Whole` is produced nowhere but three |
| 149 | +unit tests (`tile.rs:8024/8142/8710`), so the key-frame search would need a | ||
| 150 | +whole-superblock intra candidate (13 modes at 64x64, TX_64X64 luma plus two | ||
| 151 | +TX_32X32 chroma), its own `Superblock::Whole` assembly in the key search's | ||
| 152 | +block list, and the pricer's key-frame arm — a diff the size of steps 1 and 2 | ||
| 153 | +together, which did not fit this lane's budget after three gate rounds. | ||
| 154 | + | ||
| 155 | +`deferred: the intra 64x64 root on key frames — the key-frame search has no | ||
| 156 | +whole-superblock candidate at all and the change is not a variant of the | ||
| 157 | +inter root's — unblocks: one lane scoped to the key search plus | ||
| 158 | +`sb_coeff_key_frame_tile`'s `Superblock::Whole` arm, gated on the key-frame | ||
| 159 | +share of the film rows (a 12-frame gate at gop 12 codes one key frame in | ||
| 160 | +twelve, so the long-GOP arm is the honest one for it).` | ||
lanes/b64b/bin-shipadded+0 -0
Binary file changed
lanes/b64b/ship-12.logadded+6 -0
| @@ -0,0 +1,6 @@ | |||
| 1 | + | ||
| 2 | +running 1 test | ||
| 3 | + | ||
| 4 | +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 | ||
| 5 | +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | | ||
| 6 | +|---|---|---|---|---| | ||
lanes/b64b/ship-lg.logadded+6 -0
| @@ -0,0 +1,6 @@ | |||
| 1 | + | ||
| 2 | +running 1 test | ||
| 3 | + | ||
| 4 | +native crop, 48 frames, gop=48; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 | ||
| 5 | +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | | ||
| 6 | +|---|---|---|---|---| | ||