Commits
Commits on
ca4790ff3ec50db2bcffb1751a3cbbc29771cd7eFiltered to tools/ec-bench/src/main.rsClear filter2026-08-28
perf(h265): estimated per-context fracbits table replaces exact CABAC replay in RDOQ trial costingAhmet Kaan Gümüş · 50e18de
perf(h265): estimated per-context fracbits table replaces exact CABAC replay in RDOQ trial costing RDOQ's per-candidate rate was priced by re-simulating the exact adaptive CABAC coder for every trial (encode_subblock measured 26% self time, cost structural to exact counting since range/low/context state carries forward). Adds an x265/HM-`entropyBits`-style estimated fractional-bit table (ENTROPY_BITS[64], entropy of the current CDF/probability state via the CABAC probability-state geometric model, alpha=0.9493) and a CabacEncoder `estimating` mode that looks it up instead of replaying range/renorm arithmetic. Only RDOQ's dedicated counting instrument (`rdoq_enc`) ever estimates; the committing encoder always writes exact bits, so streams stay conformant. Measured: ec-bench h265 640x360x10f encode ~2953ms -> ~1833ms (1.61x, 4-run median each). bd_psnr_vs_x265 (synthetic clip): BD-PSNR-YUV +7.880 -> +7.948 dB vs x265 (a gain, not a loss), wall time 28.85s -> 20.70s. Both comfortably clear the repo's adopt bar (speedup >=1.15x, BD loss <=0.05 dB) with room to spare, so `EncoderConfig::rdoq_estimate` defaults on; `false` keeps the exact-replay path for A/B. rdoq_cache_hash's pinned bytes re-pinned to the new default's output.
2026-08-27
feat(bench): audio encode, container demux and TrueHD rows in ec-benchAhmet Kaan Gümüş · 4ef277a
feat(bench): audio encode, container demux and TrueHD rows in ec-bench Extends the standing perf harness with the rows the ledger owed: encode rows for opus/vorbis/aac/mp3/flac/alac/ac3 driven off real decoded PCM (a WAV fixture through ec-probe's own AudioDecoder path), a TrueHD encode+own-stream-decode round trip (no fixture exists yet for the generic decode loop to pick up), and whole-file demux throughput rows for ec-matroska/ec-mp4 via ec-probe's Reader. Also fixes a duration fallback bug: ffprobe's own "N/A" string was short-circuiting the format-duration fallback via Option::or_else.
feat(bench): real h265 software-decode row; drop a dead helperAhmet Kaan Gümüş · 746f093
feat(bench): real h265 software-decode row; drop a dead helper The 'encode-only crate, no decoder present' placeholder was a false claim since lane-h265dec merged; the row now times decode_idr_au over the bench's own encoded stream (10.48x realtime at 640x360).
feat(av1dec): public decode_stream OBU walker, bench decode row, NEARMV liftAhmet Kaan Gümüş · 16b0ce0
feat(av1dec): public decode_stream OBU walker, bench decode row, NEARMV lift decode_stream(&[u8]) walks a raw AV1 stream via ec-av1-syntax's Av1Parser, extracts each Frame OBU's header + tile payload and dispatches to the existing decode_key_frame_tile/decode_inter_frame_tile, threading a single-slot DPB -- the first real entry point that does not need Encoded's pub(crate) fields. ec-bench's av1 row now times decode_stream instead of reporting "no decoder present". decode_inter_block also reconstructs NEARMV (mvstack already carries the second stack candidate), tested by hand-driving a symbol stream since this crate's own encoder never chooses that mode.
feat(bench): cover ec-image decode (all sniffed formats) and ec-inflateAhmet Kaan Gümüş · 1ee915b
feat(bench): cover ec-image decode (all sniffed formats) and ec-inflate Extends the harness with the two remaining tractable groups: ec-image's single decode() entry point runs over every real still and fixture, and ec-inflate is measured on the zlib stream a real PNG's own IDAT chain already carries.
feat(bench): standing realtime-factor harness across every codec crateAhmet Kaan Gümüş · 4d8621c
feat(bench): standing realtime-factor harness across every codec crate One new bin (tools/ec-bench) that drives each crate's own public one-shot API against real media (h264/h265/av1 video, aac/mp3/opus/vorbis/flac/alac audio via ec-probe's unified reader) and prints a ranked markdown table — the baseline every future optimization lane measures against.