Commits
2026-10-23
🚚 edith moves to git.tahinli.comAhmet Kaan Gümüş · b02f499
🚚 edith moves to git.tahinli.com The working tree as of 2026-10-23, as one commit on top of the last one here. It carries the work up to that date plus the test-slimming work: integration tests merged into one binary per crate, nextest config, doctest = false, debug line tables only, perf tests behind --ignored, and faster generators, reverse, undo, subtitle-export, hevc, stabilise and hear tests.
2026-09-12
♻️ refactor(engine): the software H.264 export seat encodes with ec-h264Ahmet Kaan Gümüş · 0bc3a6b
♻️ refactor(engine): the software H.264 export seat encodes with ec-h264 The last rusty_h264 seat in the tree moves to the project's own encoder: Enc::Sw drives ec_h264::Encoder (CABAC Main/High, 8x8 transform, threaded slices) where it drove rusty's Constrained-Baseline CAVLC encoder, and the export's second decode site (SwDecoder) follows the playback seat onto ec_h264::H264Decoder in true display order, flushed at end of stream. Feature mapping: same fps/bitrate/GOP knobs (the level the seat used to compute by hand the encoder now derives from the same Table A-1); Fast stays the preset; intra-only exports stay all-IDR through gop_size 1. Named gaps: odd dimensions are now refused by name like the HEVC seat (4:2:0 cannot crop back to an odd picture; the old encoder silently coded them); the seat no longer forces level_idc. One honest flag rise: the Matroska-facing key mark is now what the bitstream says, not a constant false. One contract tightening, held rather than papered over: ec-h264 buffers nothing, so drain is structurally empty and the old lookahead corner-cut note is closed. tests/sw_backends' independent witness becomes ffmpeg byte-for-byte (the rusty oracle retired with the crate); hw_encode and the mp4 repack test decode through ec-h264; caps and the card label say ec-h264. Quality, same 300-frame 720p window at the seat's own ~2.76 Mbps CBR, both seats driven directly on identical frames and the outputs decoded by ffmpeg (reviewer-reproduced numbers; an earlier in-lane harness measured rusty at 25 dB through a stale-plane A/B bug -- frame-0 luma riding under fresh chroma, which rate control hides in the byte count -- so its rusty row was noise, while the ec row reproduced to the digit): rusty PSNR-Y 40.51 / SSIM 0.9842 at 3.46 MB against ec-h264 PSNR-Y 41.58 / SSIM 0.9903 at 3.39 MB -- about +1.1 dB-Y and +0.006 SSIM for ~2% fewer bits, with tighter rate fidelity (rusty overshot to 3.0 Mbps on hard content).
♻️ refactor(engine): the software H.264 seat decodes with ec-h264Ahmet Kaan Gümüş · e24fe61
♻️ refactor(engine): the software H.264 seat decodes with ec-h264
decode::run leaves `rusty_h264` for `ec_h264::H264Decoder` (path dep on
../../edith_codecs, `ec_core` beside it for the registry contract):
packets in over the demuxer's Annex-B access units, frames out through
send_packet/receive_frame with a flush at end of stream so the reorder
delay releases its tail.
Semantics: the old loop emitted pictures in decode order and counted
access units -- a corner-cut that only held for Baseline, and scrambled
exactly the B-picture streams it could not reorder. ec-h264 bumps the
DPB (clause C.4.5.3) and hands pictures back in display order, so the
landing index the demuxer's seek reports and the label each frame ships
with now count the same thing: timeline positions, which the transport,
skip_for_speed and the hardware backend already assumed. Witnessed on
test_high.mp4 (B pictures): the seat delivers 0..150 in order where the
old seat delivered the same frames reshuffled and mislabelled.
Tests: tests/sw_backends.rs is the byte-exactness witness -- ec-h264
against rusty_h264 (kept as the independent oracle) on CAVLC Baseline
and CABAC High fixtures, decode order per position and display order as
a multiset, with the reorder engaged only where the stream reorders;
hw_decode's software halves (seek_matches_linear, range_stops_at_end,
hardware_matches_software_on_frame_30) pass against the VA-API backend.
Throughput (raw demux+decode, idle machine, best of three): 1.52x
rusty_h264 on a 1080p Main export and 1.57x on a 4K Main render, 1.02x
on a 1440p High screen recording, 1.17x on CAVLC Baseline; 0.80-0.81x
on the two B-picture CABAC streams measured -- the measured price of
the full DPB the old seat skipped. cargo check -p engine: 0 warnings.
rusty_h264 stays linked for the export encode seat (Encoder,
EncoderConfig, Preset, YuvFrame) and export's own SwDecoder, so the
dep, the rusty_h264-common vendored patch (the rusty_alloc
global_allocator landmine) and their Cargo.lock entries are load-bearing
until that seat moves to ec_h264::Encoder; caps names the split honestly
('ec-h264 / rusty_h264').