forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/ec-h265/Cargo.tomlClear filter

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): SIMD quantize_offset with the wide-crate idiomAhmet Kaan Gümüş · 44291e4
perf(h265): SIMD quantize_offset with the wide-crate idiom

Coefficients are bounded to +/-32768 and qp is clamped to 0..=51, so
abs(c)*scale+offset never overflows i32 -- the whole quantiser loop runs
in i32x8 lanes and is the exact same integer as the scalar i64 path,
just batched 8 coefficients at a time with a scalar tail.

Correctness gate: cargo test -p ec-h265 --release green incl.
rdoq_cache_hash_is_pinned (bit-identity pin unaffected).

perf stat -e instructions,cycles -r 3 over a 4-frame 1080p single-thread
encode_idr loop (examples/profile_encode.rs, not committed):
  before: 117,195,791,981 instructions / 23,255,778,501 cycles
  after:  116,465,368,212 instructions / 22,246,309,650 cycles
  (-0.63% instructions, -4.3% cycles)

2026-08-14

test(h265): the bit-target mode and the batch helperAhmet Kaan Gümüş · 4a55700
test(h265): the bit-target mode and the batch helper

Both are surface a caller reaches for and neither had a test. The target
mode is asserted on the contract it can keep - monotonic in the target
and within a factor either side - rather than on a bitrate to the byte,
which no single-picture encoder can promise.
feat(h265): integer transforms, quantiser and the CABAC coderAhmet Kaan Gümüş · 990d3ac
feat(h265): integer transforms, quantiser and the CABAC coder

The inverse transform and the dequantiser are the normative ones, so the
encoder's reconstruction is what a decoder produces. Only the first 16
columns of the 32x32 matrix are typed in; the rest follow from the
matrix's own symmetry, and tests check both the printed second half and
orthogonality, because a mistyped column is the classic defect here.

The CABAC coder can run in counting mode - identical context updates, no
bytes kept - which is how rate-distortion decisions are priced at the
rate they actually cost. A spec-derived decoder in the tests reads back
what the encoder writes.