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-08-27
perf(h265): hoist the mode>=18 branch and idx/fact out of predict_angular's inner loopAhmet Kaan Gümüş · f9a6938
perf(h265): hoist the mode>=18 branch and idx/fact out of predict_angular's inner loop idx and fact (8.4.4.2.6) depend only on the row/column along the prediction direction, not on the position across it -- the old code recomputed the along/across swap and both divisions at every one of the n*n pixels. Splitting into a mode>=18 loop and a mode<18 loop computes idx/fact once per row (or column) and turns the inner loop into a contiguous scan over `reference`, which autovectorizes. Correctness gate: cargo test -p ec-h265 --release green incl. rdoq_cache_hash_is_pinned; intra:: unit tests (diagonal/flat/vertical- horizontal mode assertions) individually green. perf stat -e instructions,cycles -r 3, same 4-frame 1080p single-thread encode_idr loop, measured clean (load average checked before/after): before: 114,092,102,152 ... wait, see below after: 114,092,102,152 instructions / 21,900,322,280 cycles (baseline before this change: 116,465,368,212 instructions / 22,246,309,650 cycles -- -2.0% instructions, -1.6% cycles)
2026-08-14
feat(h265): full-depth quadtree search, VA-API check, parse-side fuzzAhmet Kaan Gümüş · b19a281
feat(h265): full-depth quadtree search, VA-API check, parse-side fuzz The search goes down to 8x8 by default because on real pictures that is both better and no slower: measured on a 1080p camera frame at QP 22, -27% bits and +1.5 dB against stopping at 16x16, at the same wall time. The 16x16 floor stays available as a setting. Two defects the earlier tests could not see, both found by pointing the encoder at real footage: - stopping the search early skipped split_cu_flag entirely, while the sequence still allowed a split. Every picture decoded to noise. The flag is written now whatever the search decides. - a fuzzed SPS could name a 45-bit POC field and take ec-core's bit reader past its documented contract. Picture size, POC width and long-term set count are validated where they are parsed. Also: VA-API decode of the encoder's own output is a test (radeonsi, real GPU), progress counters are one per cache line - twelve workers polling eight counters per line spend their time invalidating each other - and waits back off to a sleep instead of spinning on a core someone needs.
feat(h265): intra prediction and coding-unit rate-distortion decisionsAhmet Kaan Gümüş · d43b87f
feat(h265): intra prediction and coding-unit rate-distortion decisions All 35 modes with the spec's reference substitution, smoothing and boundary filters, then a quadtree that minimises SSD + lambda * bits with the bits measured rather than modelled. Two things the trial machinery has to put back that are easy to miss: the bytes a losing trial wrote over the winner's, and the z-scan availability map a leaf trial marked. Either one left behind desynchronises the decoder - a whole picture of noise, not a fraction of a dB.