Commits
2026-09-29
gates: close the two blind 1:4 / delta_q recipes, prove the drl one unreachableAhmet Kaan Gümüş · 4359ea0
gates: close the two blind 1:4 / delta_q recipes, prove the drl one unreachable
Three `#[ignore]`d ec-av1 gates were blind because their recipe never provoked
the feature. Two are now closed with a pinned, red-proved fixture; the third
cannot be closed by any recipe and that is proved rather than assumed.
a_real_aomenc_stream_..._horz_vert_partition_and_delta_q_decodes_pixel_exact
r1 swept 40 attempts with frame_count = 1 -- a single key frame, so the stream
carried no `delta_q_present` at all (0 groups AND 0 drift on every arm, a
different failure from "the drift never reached a rect64 block"). Replaced
with testsrc2 512x384 x 4 frames at --cpu-used=0: 48 delta_q groups read, 17
rect64 dequant calls with CURRENT_Q_IDX != base_q_idx, sb_rect_hits firing
(inter_rect 64x32=2 32x64=2), 4 frames pixel-exact vs ffmpeg. `--cpu-used=0`
is load-bearing (1 and 3 drift zero times); `--cq-level` is not. Pinned as
fixtures/rect64_dq_drift.obu (8384 B, sha256 094e51bb...). The gate asserts
the pin against a live re-encode, and a control arm re-runs the same command
line with `--deltaq-mode=0` requiring 0 drift -- which is also the red-proof:
reverting that flag turns the gate red on its own precondition with the pixel
compare still green.
a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact (+ _10bit)
The 22-line comment above the `#[ignore]` blamed a pre-existing inter-frame
pixel defect. That is stale -- the pixel blocker cleared (both arms compare
exact). The real cause is that `--min-partition-size=32` with the intra mode
tools off never puts a 1:4 partition on aomenc's RD menu: measured, the
32-level 1:4 counter is 0 in all 48 attempts at min-partition-size=16 and
fires in 40 of 48 at 8 with `--enable-smooth-intra/paeth-intra/directional-
intra/angle-delta=1`. Replaced both arms with mandelbrot 256x192 x 6 frames
at --cpu-used=2 --cq-level=63: 32x8=8 8x32=11 (8-bit) and 32x8=12 8x32=7
(10-bit), 6 frames pixel-exact each. Pinned as
fixtures/intra14_256x192_{8,10}bit.obu. Same pin + control-arm shape; the
`--enable-1to4-partitions=0` control is the red-proof.
a_128_superblock_clip_whose_drl_index_the_write_time_stack_cannot_carry_...
UNPRODUCIBLE, and not for want of a recipe. DRL_CLAMP_HITS needs the search to
pick a `ref_mv_idx` the write-time stack cannot signal, and in every mode the
search's offer set is inside the signalable range: NEWMV's pricer enumerates
0..3 and the writer's ceiling from start=0 is start+2 = 2; NEARMV's loop is
1..=2 against a start=1 walk whose entries guard coincides; every compound
InterInfo hardcodes ref_mv_idx: 0. The tree already asserts this over stack
sizes 0..=4 in every_drl_index_the_new_mv_pricer_offers_is_one_the_writer_can_
signal. Measured 153 clip x size x frames x q combinations: zero clamps, while
a trace shows the search does pick index 2 (163x on mandelbrot 640x384x8) --
which is exactly what the writer signals. Mutation proof: widening the
pricer to 0..5 fires the counter on the first clips tried (9/2/2/1) and the
same clips read 0 again on revert. The gate keeps its `#[ignore]`; its doc
comment now carries the finding and the owning fix so the sweep is not
repeated.
Instruments kept (both are what a recipe sweep reads from outside the test
binary): tile::drl_clamp_hits(), a non-destructive read of DRL_CLAMP_HITS, and
stream::rect64_qidx_drift_counters(), the (delta_q groups, rect64 drift) pair
whose two halves separate "no delta_q in the stream" from "delta_q that never
landed in a rect64 block". An earlier DRL-index histogram was removed rather
than shipped: it records the SIGNALLED index, downstream of the clamp, so it
structurally cannot show the 3+ bucket and answers none of the hunt's questions.2026-09-13
test(av1): enc_probe prints the arfmode engagement counter per point -- the probe's arm rows must print a non-zero count under EC_AV1_ARFMODE itself, not rely on the in-process witness (take_arfmode_hits is pub now, was cfg(test)); the first probe sweep never exported the knob and every arm row came back byte-identical to the control, which is how that class looks from the outsideAhmet Kaan Gümüş · 54adc86
test(av1): enc_probe prints the arfmode engagement counter per point -- the probe's arm rows must print a non-zero count under EC_AV1_ARFMODE itself, not rely on the in-process witness (take_arfmode_hits is pub now, was cfg(test)); the first probe sweep never exported the knob and every arm row came back byte-identical to the control, which is how that class looks from the outside
2026-09-07
fix(av1): the probe armed a window film B does not haveAhmet Kaan Gümüş · 2ebcc2c
fix(av1): the probe armed a window film B does not have `examples/enc_probe` was handed its crop by hand, and every long-GOP census so far passed `crop=1920:1024:960:568` -- the centre of a 3840x2160 frame. Film B is coded 3840x1608, so the gate's own window is `crop=1920:1024:960:292`: the instrument measured different pixels than the gate it reported on (60466 B vs the gate's 90674 B at q=150), and the probe also had no `-ss`, so on any clip it read from frame 0 instead of the gate's pinned seek. One definition of the arming now serves both: `ec_av1::probe::source` (the loader, with the seek) and `ec_av1::probe::gate_crop` (the superblock-aligned centre window, from ffprobe), called by the probe and by `encode::tests`' `clip_frames_vf`/`native_bd_arm`. The probe takes `gate` as its width argument to ask for that window, and `EC_ENC_SS` for the seek. In gate mode the probe now codes 90674 bytes on film B at q=150 -- byte-exact with `bd_rate_film_long_gop`'s own ladder point. `lanes/census-longgop-v2.md` re-takes the per-level census on the real window; the v1 shares were off (ARF 49.3% -> 53.8%, key 25.6% -> 21.6%).
feat(av1): a decode-side syntax census, and the film B vs rav1e table it producedAhmet Kaan Gümüş · 373b6a2
feat(av1): a decode-side syntax census, and the film B vs rav1e table it produced The BD gate says our stream is bigger; it never says which syntax it is bigger in. This adds a per-CDF-table bit accountant to the symbol decoder (EC_AV1_BITCENSUS=1, one relaxed load per symbol when off) plus block, tx, mv, mode and frame-header funnels, and an examples/syntax_census.rs that prints one table per stream -- so our stream and rav1e's are measured by the same reader. lanes/census-filmB.md holds the answer for film B at matched PSNR: the whole gap is in the inter frames (our key frame is the smaller and the worse one), 75% of it in the leaves, and the three mechanisms are the flat pyramid q ladder, the missing 64x64 blocks and transforms, and a 52.5% vs 84.8% skip share.
2026-09-06
perf(av1): trial-set census, and the intra SAD pre-pass only when something ranks by itAhmet Kaan Gümüş · bf299cd
perf(av1): trial-set census, and the intra SAD pre-pass only when something ranks by it The key-frame luma search summed a per-mode SAD the unpruned default never reads (top_k is None there); byte-exact on all three probe clips, ~2% wall. EC_AV1_CENSUS=1 counts the search's full RD trials by kind and histograms where the RD winner sat in the SAD ranking.
perf(av1): the coefficient rate pricer stops rebuilding every CDF table per candidateAhmet Kaan Gümüş · 7947a2d
perf(av1): the coefficient rate pricer stops rebuilding every CDF table per candidate `tile::coeff_bits` is called once per priced candidate and built a whole `Cdfs` each time -- 9% of the encoder's profile between `Cdfs::new` and the copy behind it. It now keeps one pristine and one scratch `Cdfs` per q-context per thread and restores only the tables `write_coeffs` adapts, so the price is taken against exactly the same state as before. `partition_bits` builds its read-only tables once. Byte-exact: the four-point ladder of the 1080p gate clip is identical (17643/32317/53048/76330 bytes, same FNV-1a per stream); 9.58s -> 8.24s.