forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to lanes/rdoq-ctl.logClear filter

2026-09-07

perf(av1): bound the RDOQ pass to small levels and a per-block price budgetAhmet Kaan Gümüş · eb7b07c
perf(av1): bound the RDOQ pass to small levels and a per-block price budget

Unbounded it re-coded the block once per candidate level and a fine-quantizer
32x32 carries hundreds, which took the 12-frame native gate from minutes to
not finishing a row in 35. Levels above 2 are never candidates and a block
spends at most 24 prices, taken from the tail backwards; the q=150 pin moves
9853 -> 9059 B against the unbounded pass's 8959, at +26% wall instead of
+256%.
feat(av1): rate-distortion optimised quantisation behind a preset leverAhmet Kaan Gümüş · 4cc1d86
feat(av1): rate-distortion optimised quantisation behind a preset lever

The deadzone quantiser rounded every coefficient blind to what its level
costs; every reference has the pass that decides that against the entropy
coder (libaom av1_optimize_txb, rav1e optimize_txb). tile::rdoq walks the
scan in reverse and lowers each level one step at a time while the bits it
gives back outweigh the squared error it adds, pricing every candidate
through the same coeff_bits/write_coeffs the search and the writer use, so
no second cost model can drift from the writer.

Applied inside the trial loop (trial_typed, code_from_prediction), so the
reconstruction, the price and the written levels are all the pass's grid.
EC_AV1_RDOQ=0 restores the plain quantiser and the byte pins.