Commits
2026-10-23
Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23) On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local repository with all of its history. This commit restores the working tree from the newest surviving copy, the host-c server lane mirror. That mirror matches local main as of the testcut Phase 2 reports, including the tool cache, the nextest fast profile and changed-crates.sh. The history before this commit was not recovered.
2026-09-05
perf(av1): route every gate counter through hit!/hit_do! behind a default-on gate-counters featureAhmet Kaan Gümüş · 04187f1Browse files
perf(av1): intra edges on the stackAhmet Kaan Gümüş · ee5b8d8
perf(av1): intra edges on the stack An edge is at most bw + bh + 1 = 129 samples, so Edges holds two arrays instead of two heap buffers, and the edge filter's working copy is a stack array too: two allocations gone per predicted block, on a stream whose intra blocks are mostly 4x4 to 16x16. Byte-exact on all four gate streams; -0.07% instructions on the 4K segment, -0.08% on the 1080p one (malloc latency does not show on instructions:u).
perf(av1): directional intra hoists the zone, the derivative and the blend out of the pixel loopAhmet Kaan Gümüş · e7ac08e
perf(av1): directional intra hoists the zone, the derivative and the blend out of the pixel loop The z1/z2/z3 walk decided its zone, looked the derivative up in a 27-arm match and called the edge blend through a `&dyn Fn` once per sample. Three loops, one per zone, with the derivative and the base constants per block and z1's shift per row; the blend indexes the edge slice directly. Byte-exact on all four gate streams. -0.25% instructions on the 4K segment, -0.47% on the 1080p one (cumulative -2.84% / -1.97%).
perf(av1): intra non-directional prediction loops once per mode, not per pixelAhmet Kaan Gümüş · 29faade
perf(av1): intra non-directional prediction loops once per mode, not per pixel The seven non-directional modes shared one pixel loop with a 13-arm `match mode` inside it, so every sample re-ran the dispatch and DC_PRED re-averaged both edges per sample. One loop per mode instead, with the per-row terms (smooth weights, the bottom-left/top-right anchors, the left column sample) hoisted out of the column loop. Byte-exact: all four gate streams hash to their references at 1 thread. -2.59% instructions on the 4K segment, -1.51% on the 1080p one.
perf(av1): remove four per-block allocation sites from the parse pathAhmet Kaan Gümüş · d4c852e
perf(av1): remove four per-block allocation sites from the parse path
lane-alloc. A tracking global allocator (new `alloc_probe` example: size
histogram plus a sampled backtrace per 512 allocations, with line numbers)
ranked the decoder's allocation sites on the 4K segment -- 83.6 M
allocations over 272 frames. Four of the top sites are removed here:
* `find_samples` built a `String` per warp block (`format!("{mi_row},
{mi_col}")` plus the env snapshot's own `String` clone) to compare against
an unset debug flag; the OBMC blend did the same for `EC_MCB`. Both now
sit behind the per-call-site `env_flag!` load.
* `Edges::build` allocated four vectors per intra prediction (collect,
grow, then a second buffer to prepend the corner); it builds each edge
once, corner first. `directional`'s two working buffers were a copy of
those same vectors, so it takes the `Edges` by value instead.
* `obmc_neighbour_pred` allocated its prediction buffer per neighbour per
plane; the caller now keeps one buffer per plane for the whole block.
* The MV stacks and the OBMC neighbour lists are capped (8 entries /
`max_neighbors`), so they reserve once rather than growing and memcpying
up to four times.
seg4k at one thread: 601.657 -> 599.329 G instructions:u (-0.39%, perf stat
-r 3). Reverting only the reserve step measured 600.014 G, so it stays
despite raising the raw allocation COUNT (an empty stack now allocates):
the saved reallocation memcpys outweigh the extra tcache hits.
Byte-exact: sha6t hashes equal the reference for all four streams at
threads 1, 4 and 16 (the last with FILTER_THREADS=4 RECON_THREADS=2).2026-09-04
chore(av1): clear the ec-av1 compiler warnings (300 -> 0 on the release lib)Ahmet Kaan Gümüş · 16efbd9
chore(av1): clear the ec-av1 compiler warnings (300 -> 0 on the release lib) No arithmetic, control flow or public signature changes; the four perf6 decode hashes are byte-identical. - gate-counter accessors and other test-only items carry `#[allow(dead_code)]` with the reason on the line (they are read from the `#[cfg(test)]` gates, which the plain lib build cannot see); - `///` blocks sitting on `thread_local!`/macro invocations become `//` (rustc never attached them to anything); - `cdf.rs` tables and the `InterpFilterKind` variants get a one-line doc; - unused locals/params prefixed `_` where the value is genuinely unused; dead initializers dropped where the compiler proves every read is preceded by an assignment; - `decode_key_frame_tile` import is now `#[cfg(test)]` (its only user). Left standing on purpose, as findings rather than hidden warnings: `stream.rs` census counters `other` and `rect_residual_refusals` are incremented and never read back by their gates.
refactor(av1): FrameCtx stays crate-private -- public signatures back to what they wereAhmet Kaan Gümüş · 1c71b70
refactor(av1): FrameCtx stays crate-private -- public signatures back to what they were The FrameCtx refactor threaded `&crate::decode::FrameCtx` through 21 `pub fn` signatures, which put a `pub(crate)` type in the crate's public API: external callers of `Av1Encoder::encode` stopped compiling (tools/ec-bench). `Av1Encoder` now owns its `FrameCtx` -- one per stream, not per frame, since the inter-frame inheritance guards carry state across frames -- so `encode` takes `(&mut self, picture)` again. `encode_key_frame`, `encode_key_frame_with_modes` and `encode_sequence` keep their old public signatures as wrappers over `pub(crate) *_with_ctx` inners that make the context. The other 14 helpers that gained the parameter (intra/mc/warp/motion predictors, `decode_key_frame_tile`) have no caller outside the crate and become `pub(crate)`. `Av1Encoder` is still `Send` (compile-time assert), but owning cells makes it `!Sync`; nothing in the workspace shares one by reference.
refactor(av1): the 38 per-frame decode-state thread_locals become one FrameCtxAhmet Kaan Gümüş · b9a9498
refactor(av1): the 38 per-frame decode-state thread_locals become one FrameCtx Every per-frame/per-stream decode state in ec-av1 lived in a thread_local! static, so a decode was a function of the calling THREAD's history rather than of the bitstream, and a worker thread saw empty state -- the blocker for frame-parallel decoding. All 38 (SB128, BIT_DEPTH, SUPERRES, CDEF_*, DELTA_Q_*/DELTA_LF_*, CURRENT_Q_IDX, QUANT_DELTAS, the 9 SEG* maps, TX_SELECT_INTER, REDUCED_TX_SET_INTER, ENABLE_FILTER_INTRA_INTER, PALETTE_PRED, INTRABC_*, LUMA_TX_TYPE, INTRA_IN_INTER_MODE, INTER_STRIP_CHROMA, INTER_LAST_MC, ENABLE_EDGE_FILTER, LAST_FRAME_WIDE_MARGIN, REACH_SB_PX, GRAIN_BIT_DEPTH) are now fields of decode::FrameCtx, owned by decode_stream_with and threaded as `fctx: &FrameCtx` down the decode call graph (~1200 call sites). The fields keep the Cell/RefCell interior mutability the statics had, so every read/write site is byte-identical and this is a pure ownership move; Cell/RefCell also make FrameCtx !Sync on purpose -- one context per decoding thread, never shared. The scratch pools, gate hit counters and trace switches stay thread_local by design.
perf(av1): intra DC edge extension without allocation; pre-CDEF planes cloned only when loop restoration runsAhmet Kaan Gümüş · bea828c
perf(av1): intra DC edge extension without allocation; pre-CDEF planes cloned only when loop restoration runs Two allocation sites the 1080p profile put at ~1.3% of self time between them, neither of which any pixel depends on: * `intra::dc` built one `Vec<u16>` per existing edge per intra block only to sum it. The replication libaom's `build_intra_predictors` performs is never indexed here, so the extended edge becomes a sum: `sum(samples[..n]) + last * (want - n)`, the same integers in the same order of magnitude, and the square/rect divisors come from `bw`/`bh` directly rather than from the (equal) vector lengths. * Both frame paths cloned all three planes before CDEF as the loop restoration source, and `apply_loop_restoration_plane` then copied each plane again to return it unchanged when its restoration type is `None`. The clone is now taken only when some plane's type is not `None` with a non-zero unit size, i.e. exactly when a restored sample can differ. Byte-exact: EC_PROBE_OUT16 sha256 unchanged on a 1080p and a 4K segment and on `palette_screen_witness.obu`. Interleaved medians (3 pairs 1080p, one pair 4K): 11.82 s -> 11.65 s at 1080p, 64.91 s -> 60.86 s at 4K.
2026-09-02
test(av1): pin every filter-intra CDF row from the oracle, prove predict_filter_intra bit-exact, record both firing seedsAhmet Kaan Gümüş · f28a52c
test(av1): pin every filter-intra CDF row from the oracle, prove predict_filter_intra bit-exact, record both firing seeds
lane-fistrip r2, the verifier's four fix-now items on 57f1fcb (no decode-path
behaviour changes -- tests, a generator script, and a gate seed window):
1. scripts/extract-filter-intra-cdfs.py generates default_filter_intra_cdfs from
the oracle (enums.h BLOCK_SIZES_ALL order + entropymode.c), and the domain test
now lists all 14 allowed shapes with their TRUE row -- r1 had guessed 16384 for
4x16/16x4/8x32/32x8, which are really 12770/10368/20229/18101 -- each refused
shape carrying the refusal string that blocks it, so the round that lifts one
cannot land a wrong CDF row. Also asserts row shape {p,32768,0}, class
uniqueness, and that every cdf::FILTER_INTRA row is claimed.
2. predict_filter_intra had no unit test at all: intra.rs now transcribes
av1_filter_intra_taps and av1_filter_intra_predictor_c/highbd_ (reconintra.c
807-955) independently in the test module and compares bit-exact over 5 modes
x 14 shapes x 3 seeded edge sets x {8,10}-bit = 420 blocks.
3. The second firing seed of the 200-seed measurement is 213 (seeds 50..=241
re-run: 172 matches, 20 refusals, one sub16 delta); the 8-bit gate's seed
window now always carries FIRING_SEEDS [49, 213], both named in its doc and
#[ignore] string, so the un-ignore compares two real hits. 10-bit arm widened
with 213, marked as unmeasured for its own recipe.
4. lanes/fistrip-r2.report.md carries the MERGE NOTE: the pinned
a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag expect_err must
become a pixel compare in the round that lifts the coded-rect-strip refusal.
Suite: 301 passed, 1 failed (pre-existing nz_map_ctx_offset_tables_match_the_rect_rule,
red on main df5d630), 29 ignored.2026-09-01
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabledAhmet Kaan Gümüş · 576f72d
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabled His two films are yuv420p10le, so a tool gated only at 8 bits is ungated where it matters (lane-covbd r1). Six of the seven holes close with real-aomenc 10-bit streams, pixel-exact vs ffmpeg on every shown frame: - a_real_aomenc_10bit_intra_tools_stream_decodes_pixel_exact -- filter-intra, smooth-intra, paeth-intra, intra-edge-filter on one key frame, a separate hard-asserted counter each (6/6 attempts exact; filter_intra_hits=2 smooth_pred_hits=16 paeth_pred_hits=3 intra_edge_filter_hits=22). - a_real_aomenc_10bit_rect_and_ab_partitions_decode_pixel_exact -- the 8-bit free-partition/AB inter recipe at 10 bits (12/16 attempts exact, 4 named refusals; rect_partition_hits=32 partab_hits=4). - a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact -- WRITTEN AND FAILING, so #[ignore]d with the pin in the attribute: seed 42, frame 0, plane Y index 122, ours 351 vs ffmpeg 350, on a stream where lr_hits=2. That is a real 10-bit loop-restoration defect for a follow-on lane; the gate is not weakened and enable-restoration stays a listed 10-bit hole. intra.rs gains per-tool counters (smooth_pred_hits / paeth_pred_hits / intra_edge_filter_hits) because smooth_uv_hits lumps SMOOTH..=PAETH together and would have let a paeth-only stream "prove" smooth intra. ten_bit_tool_gate() samples every counter PER ATTEMPT and sums only over attempts that decoded AND compared, so a refused stream can never contribute a firing; a pixel mismatch panics with plane + first-diff index + both values + the firing deltas, never SKIPs. gate_coverage: gate_bodies() now drops #[ignore]d gates (an ignored gate exercises nothing) and recognises gates whose --passes=1 lives in the shared 10-bit helper; 45 -> 49 gates, 4 -> 7 ten-bit, NEVER_EXERCISED_10BIT 19 -> 13.
feat(av1): rect strips predict per transform unit; filter intra on a stripAhmet Kaan Gümüş · aedec07
feat(av1): rect strips predict per transform unit; filter intra on a strip lane-rectsplit r1 (continuing the WIP snapshot c5de1b6): - decode_block_rect's split-transform arm decodes per transform unit (decode_rect_split), gated by a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact (20/20 pixel-exact, rect_split_tx_hits > 0). - predict_filter_intra takes bw x bh instead of one square side, so a use_filter_intra HORZ/VERT strip predicts instead of refusing; gated by a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact (--enable-filter-intra=1, cq 25, 40/40 pixel-exact, filter_intra_rect_hits=3). - decode_leaf_rect (below 16x16) keeps both refusals, its split one renamed to name the size, and is listed in refusal_inventory. - The superblock-level split-transform refusal stays: its gate is measured RED (seed 50, luma (171,56) off by one) and #[ignore]d with that number.
2026-08-30
wip(tiny): size-boundary sweep + trace probes for the silent-wrong-pixel defectAhmet Kaan Gümüş · d931dba
wip(tiny): size-boundary sweep + trace probes for the silent-wrong-pixel defect Two #[ignore]d diagnostics in stream.rs (probe_tiny_frame_size_boundary, probe_tiny_32x32_trace) and a comment in intra.rs recording why the no-neighbour corner fallback is NOT the bug. Measured, 10 seeds per size: 16x16 is 10/10 pixel-exact (so the earlier report that 16x16 fails two thirds of the time was a different recipe and does not hold); 32x32 and 24x24 fail 3/10; 16x32 and 32x16 fail 2/10; 48x48 and 64x64 are 10/10. The clean sizes are the ones that take the SB-level PARTITION_NONE path at side=64, where filter_intra_size_class returns None so filter_intra never fires -- consistent with the cause. Toggling --enable-filter-intra=0 on the exact failing seed-45 32x32 stream flips it from mismatched to exact. Prediction math is ruled out: FILTER_INTRA_TAPS and predict_filter_intra's recursion were checked byte-for-byte against libaom reconintra.c:805-899. Committed by the orchestrator at the agent's turn cap. The agent believed it had reverted intra.rs; it had not -- the residue was comment-only and is kept.
wip(hbd): scale intra no-neighbour fallback (127/128/129) by bit depthAhmet Kaan Gümüş · f973434Browse files
wip(hbd): r1's u16 widen in flight at the cap (does not compile; error count is the progress metric)Ahmet Kaan Gümüş · 31976a1Browse files
test(av1): C-verify rect intra predictors against an independent transcriptionAhmet Kaan Gümüş · b526e26
test(av1): C-verify rect intra predictors against an independent transcription
lanes/intrarect_dump.c standalone-transcribes dc_predictor_rect,
smooth_predictor, paeth_predictor and the full directional path (edge
filter/upsample + z1/z2/z3, with the intra_edge_filter_strength
blk_wh<=12 fix) from libaom source read this round. intra.rs's new
rect_predictors_match_c_dump test drives the same synthetic neighbours
through crate::intra::predict for 8 rect shapes x 3 flat modes + 17
directional angles x {enable_edge_filter, smooth_neighbor} and
checksum-matches all 568 cases against lanes/intrarect_dump.expected.txt
-- 224/224 lib suite still green (was 223, +1 this test).feat(av1): widen intra::predict/Edges to rect (bw != bh)Ahmet Kaan Gümüş · 24d69ed
feat(av1): widen intra::predict/Edges to rect (bw != bh) Predictor + Edges::build now take (bw, bh) instead of one side: DC's dc_predictor_rect multiply-shift divide (derived, not tabulated, per libaom's own comment -- AV1's only rect ratios 1:2/1:4 leave d==3/5), smooth's separate width/height weight rows, and the directional walk's bw+bh reach with cross-axis edge-filter/upsample extensions (above extends by bh, left by bw -- reconintra.c's txwpx/txhpx swap). Also fixes a latent bug this widening surfaced: intra_edge_filter_strength was missing the blk_wh<=12 branch, unreachable for any square side sum but live for e.g. a 4x8 block. All 21 call sites still pass (side, side); full lib suite green (223/223) proves square behaviour is bit-identical. Tile dispatch still refuses rect/AB partitions -- next lane's job.
2026-08-27
feat(av1): implement the intra edge filter/upsample (spec 7.11.2.7-2.9)Ahmet Kaan Gümüş · 645882d
feat(av1): implement the intra edge filter/upsample (spec 7.11.2.7-2.9) r5 left directional()'s edge filter/upsample as an unimplemented corner-cut and left the two new predict() bool params half-plumbed (encode.rs call sites done, stream.rs/decode.rs test-module sites missing). This round: - finished the plumbing: decode.rs threads the sequence header's enable_intra_edge_filter through a thread-local (ENABLE_EDGE_FILTER, set once per decode_key_frame_tile_with_cdfs call, not per-block -- documented why a thread-local beats touching two dozen call sites) down to PlaneBuf::reconstruct's predict() call; stream.rs sets it from the parsed seq header; encode.rs sites already passed false (our encoder never turns it on, so round-trips stay bit-green regardless). - filter_intra_edge (5-tap kernel, 3 strength buckets via intra_edge_filter_strength's two smooth/non-smooth threshold tables), the filter_corner blend, and upsample_intra_edge (av1_upsample_intra_edge_c) were transcribed against libaom's reconintra.c and wired into directional()'s z1/z2/z3 walk (base/shift math doubled for the upsampled-density case). All present, none stubbed. - flipped the gate's --enable-intra-edge-filter=0 to =1 so a_real_aomenc_stream_with_directional_chroma_decodes_pixel_exact actually exercises the new path instead of the disabled one. The gate still fails, but NOT from this filter: patched-aomdec cross-checks (EC_UDUMP dqcoeff/pred/recon dumps, /tmp/libaom-src's decodeframe.c, not committed) prove the failing TU (chroma cpx=0/cpy=0, DC_PRED, tx_type DctDct, skip=1 both sides) reconstructs bit-identically pre-loop-filter in both decoders -- flat 128 either way, edge filter inapplicable there (no real neighbours, corner-filter's 2n>=24 gate doesn't fire at n=8). A PREDEBLOCK/POSTDEBLOCK trace (also not committed) localizes the actual divergence to apply_deblock: our decoder introduces a value our own pre-filter data does not justify at the row6-9/col6-9 TU-corner intersection, where both a horizontal and a vertical deblock edge are filtered back to back. r4/r5's "intra edge filter gap" and "tx_type path" suspects are both now falsified for this failure; the next round's target is deblock_plane's edge-intersection order/read-back (vertical-then-horizontal at a corner where an already-filtered vertical sample feeds the horizontal filter's taps). Suite: 174 passed, 1 failed (the known gate above) -- no regression from r5's own checkpoint of the same numbers; the cdffwd flake did not fire this run.
wip(av1): chroma tx_type derivation from Intra_Mode_To_Tx_Type, wires default_tx_typeAhmet Kaan Gümüş · 637d48a
wip(av1): chroma tx_type derivation from Intra_Mode_To_Tx_Type, wires default_tx_type read_coeffs already carried a default_tx_type parameter from a prior round; both call sites (read_plane's intra path and read_inter_plane's inter path) didn't pass it yet, so the tree didn't compile. Wires them: - read_plane (intra): plane_idx==0 or side>=32 -> DctDct (av1_get_tx_type, blockd.h: 64-and-up is unconditional, 32x32 chroma survives intra_mode_to_tx_type only to be re-forced by EXT_TX_SET_DCTONLY gating in av1_get_ext_tx_set_type); otherwise chroma takes default_intra_tx_type(predict_mode), a from-libaom transcription of intra_mode_to_tx_type's static table (D45_PRED is DCT_DCT, not an ADST mode -- transcribed exactly, no set-membership fallback needed since every entry the table can produce (DCT_DCT/ADST_DCT/DCT_ADST/ADST_ADST) is already inside both TX_SET_INTRA_1 and _2). - read_inter_plane: always DctDct -- Intra_Mode_To_Tx_Type only applies to an intra block's chroma plane per av1_get_tx_type's own is_inter branch. Cross-checked against a live patched aomdec (EC_CHROMA_TXTYPE trace in /tmp/libaom-src/av1/decoder/decodetxb.c, not committed here) on the lane's own seed-42 aomenc fixture: every uv_mode -> tx_type pair libaom picked for this stream's chroma matches default_intra_tx_type exactly. Suite: 174 passed, 1 failed (the new a_real_aomenc_stream_with_directional_chroma_decodes_pixel_exact) -- NOT the pre-existing cdffwd flake. Confirmed the failure predates and survives this fix: reverting default_tx_type to always-DctDct made the mismatch start at pixel row 0 (whole-plane wrong); with this fix it starts at row 6 and grows outward in a triangular fan, meaning the tx_type choice is not itself wrong (matches libaom's own choice byte-for-byte) but something downstream of it -- reconstruction/ directional-prediction propagation -- still diverges. Left failing, not silenced or adjusted, for the next round to chase with the two named suspects (intra edge filter gap, this tx_type path) now narrowed to one.
feat(av1): filter-intra predictor (spec 7.11.2.3), refusal liftedAhmet Kaan Gümüş · f90ea1e
feat(av1): filter-intra predictor (spec 7.11.2.3), refusal lifted Recursive filter intra: 4x2 sub-blocks, the 7-tap av1_filter_intra_taps table, five modes. use_filter_intra==1 blocks now predict instead of erroring. Existing suite green; the real-stream gate that proves the path against ffmpeg lands next.
2026-08-26
fix(av1): replicate truncated true-edge samples before DC averages themAhmet Kaan Gümüş · ad1509f
fix(av1): replicate truncated true-edge samples before DC averages them dc_predict averaged only the real samples a true-edge-clamped above/left slice held, undercounting against libaom's build_intra_predictors, which replicates the last real sample out to the full side length before dc_predictor runs. That produced a uniform DC offset across whole blocks straddling the true edge (854x480, first bad block mi(8,208): -3 luma across the entire 32x32, repeated in blocks below). Extend both edges to `side` by repetition, matching Edges::build's existing behavior for every other mode, before averaging.
2026-08-25
feat(av1): the six directional intra modes, and a mode-rate termAhmet Kaan Gümüş · 223aa7c
feat(av1): the six directional intra modes, and a mode-rate term Adds D45, D67, D113, D135, D157 and D203 per spec 7.11.2.4, with the edge construction of 7.11.2.2 and the availability the decoder derives from clear_block_decoded_flags: for the 32x32 quadrants of a superblock the above row reaches past the superblock's right edge (sbWidth4 is measured to the tile's end column) for all but the last quadrant, and the left column continues below only for the first. The mode search now also pays for naming a mode, scored through the tile writer's own CDFs -- the KF_Y_MODE symbol under the neighbours' context, the ANGLE_DELTA zero symbol, and the chroma mode symbol the luma mode indexes. Without it a directional mode looked free and cost 1.1% rate on a picture that did not want one. With it, and with LAMBDA_SCALE re-swept to 0.1, the same picture costs 0.41% and the clips that do want a direction gain up to 0.35%. ffmpeg decodes all thirteen modes bit-exactly at 128x96 and 160x96.
feat(av1): seven intra modes, picked per block by rate-distortionAhmet Kaan Gümüş · 4331d17
feat(av1): seven intra modes, picked per block by rate-distortion The predictors of spec 7.11.2 that read no further than the row above and the column left of a block -- DC, V, H, SMOOTH, SMOOTH_V, SMOOTH_H and PAETH -- with the edge construction that fills a missing side from the side that exists. Each 32x32 luma block now codes under all seven and keeps the one whose squared error and estimated rate come out cheapest; chroma stays DC, which is the mode the tile writer codes for it. The weight on rate was swept over three real clips and two synthetic pictures at six values; 0.05 step-squared per bit is the best point on every one. Against DC alone it saves 11.5% of the rate on screen capture, 7.8% on the test card and 59.5% on a picture that runs one way. Against libaom the gap at matched size on a film frame narrows from 2.4 dB to 2.0 dB. Every mode is gated forced over a whole picture, with ffmpeg's reconstruction equal sample for sample, and striped pictures gate the search on picking the direction the picture runs -- a transposed predictor passes every symmetric test.