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-07
feat(av1): a speed preset axis (0..=10), preset 0 the search we shipAhmet Kaan Gümüş · 597c1a3
feat(av1): a speed preset axis (0..=10), preset 0 the search we ship
Every search lever this crate already has an EC_AV1_* knob for reads its
default from a per-speed table in the new `speed` module, indexed by one
process-global preset (`Av1Encoder::with_speed`, `EC_AV1_SPEED`). Index 0
of every table IS the shipped constant, so preset 0 is byte-identical by
construction; `speed::levers` names what each preset switches off, and
ec-bench codes one row per preset {0,3,6,10}.test(ec-hw): exercise the two 10-bit refusals; bench 10-bit row off the black leaderAhmet Kaan Gümüş · b19cdc4
test(ec-hw): exercise the two 10-bit refusals; bench 10-bit row off the black leader The refusals are claims, so they are driven: a 10-bit HEVC config must fail to build (High and Main are 8-bit profiles) and 8-bit pixels handed to a 10-bit encoder must be refused. ec-bench's 10-bit row seeks a minute in -- frame 0 of a film is its black leader, which coded to 1 kB for 30 frames and benchmarked nothing (101 kB now).
feat(ec-hw): 10-bit BD row, 10-bit fps, ec-bench 10-bit row, docsAhmet Kaan Gümüş · ebea85e
feat(ec-hw): 10-bit BD row, 10-bit fps, ec-bench 10-bit row, docs The 10-bit BD row is film B's own 1920x1024 native crop, every arm in the 10-bit domain: hw AV1 10-bit is +36.7% BD-rate against librav1e speed 6 10-bit and +52.9% against libaom cpu-used 6 10-bit, with all three ladders asserted monotone. av1_encode_speed gains a 3840x1608 10-bit row, and ec-bench an 'ec-hw av1 10-bit' encode row that skips as a row without a VA device.
feat(ec-hw): AV1 encode on by default, and an ec-bench hardware rowAhmet Kaan Gümüş · 24f4e5c
feat(ec-hw): AV1 encode on by default, and an ec-bench hardware row The opt-in existed because a 2026-08-14 submission crashed the GPU; on mesa 26.1.8 the path encodes streams two decoders agree on, so the refusal goes rather than outliving its evidence. ec-bench gains an 'ec-hw av1 encode' row that skips as a row when there is no VA device.
2026-09-06
feat(bench): the av1 encode row names the pyramid it coded under, hidden frames beside itAhmet Kaan Gümüş · 5ad5e5cBrowse files
feat(av1): encode_sequence codes the content-gated pyramid by defaultAhmet Kaan Gümüş · 534fad0
feat(av1): encode_sequence codes the content-gated pyramid by default The mini-GOP driver is the facade's own (Av1Encoder::encode_sequence_pyramid), so the two paths cannot drift: encode_sequence hands its pictures to the facade under Pyramid::from_env() (default 4:-16:8, EC_AV1_PYRAMID=0 for the flat A/B) unless the content gate reads the first picture as screen, and returns the frames in display order. The identity gate now pins both content classes -- film-like (reordered, hidden ALTREF) and screen-like (gated flat, identical frame by frame).
feat(av1): a frame's tiles are written in parallel on the crate's own poolAhmet Kaan Gümüş · 1878642
feat(av1): a frame's tiles are written in parallel on the crate's own pool EC_AV1_TILE_THREADS workers (default 1) take bands of the frame's tiles; each tile is written from the frame's own starting tables into its own slot, so the bytes never depend on the thread count -- pinned by tile_bytes_do_not_depend_on_the_thread_count at 2x1/1x2/2x2/4x2.
wip(av1): multi-tile writer, snapshot at the agent cap (may not compile)Ahmet Kaan Gümüş · 252b2d1Browse files
feat(av1): target-bitrate rate mode, per-level rate loop and an EC_AV1_PYRAMID knob on ec-benchAhmet Kaan Gümüş · 4d40670Browse files
test(av1): BD-rate + wall-clock baseline gate for the encoder vs libaom and rav1eAhmet Kaan Gümüş · 0930a1c
test(av1): BD-rate + wall-clock baseline gate for the encoder vs libaom and rav1e Both reference ladders and ours are measured on ffmpeg-decoded pixels only, all-plane PSNR; our own decode is asserted sample-exact against the encoder's reconstruction. ec-bench's av1 encode row gains fps and bytes/frame.
2026-08-30
Merge branch 'lane-hbd': Picture carries u16 samples; the encoder stays 8-bit at its own boundaryAhmet Kaan Gümüş · 8d71aab
Merge branch 'lane-hbd': Picture carries u16 samples; the encoder stays 8-bit at its own boundary This was the blocker the previous round found: Picture.y/u/v are shared by the encoder AND by decode_stream's return value and the DPB reference slots that motion compensation reads back on frame 2+, so the bit_depth != 8 refusal could not lift honestly until this type widened. Boundaries chosen deliberately: the encoder narrows its caller's Picture to local u8 at entry and widens its reconstruction back on the way out; motion::search stays 8-bit (SAD math) with a locally narrowed reference; film_grain and superres narrow at their own edges. Each of those is a place a future 10-bit path will have to earn, and each is now visible instead of implicit. The lane checked -p ec-av1 only, so it did not see that tools/ec-bench builds a Picture from 8-bit y4m; widened those three planes at the call site. 8-bit output bit-exact: 264 passed / 0 failed. Workspace --all-targets clean. Still owed before the refusal can lift: decode::set_bit_depth is written but never called, so the BIT_DEPTH thread-local is dead code defaulting to 8.
2026-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.