forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/ec-flac/tests/xiph_vectors.rsClear filter

2026-09-29

ec-flac: a missing xiph corpus FAILS under EC_REQUIRE_FIXTURESAhmet Kaan Gümüş · 62abc01
ec-flac: a missing xiph corpus FAILS under EC_REQUIRE_FIXTURES

`corpus()` returned `None` on an absent `fixtures/vectors/flac-xiph` tree
and all four gates skipped green, decoding nothing. The assert lives in
`corpus()` itself -- the one place that knows the path -- so all four gates
are covered by one hunk, and each of them still pixel-compares when the
corpus is there.

Red: EC_REQUIRE_FIXTURES=1 with `fixtures/` unlinked fails
subset_vectors_decode_bit_exact_against_ffmpeg ("the FLAC xiph subset
corpus is missing at .../subset -- these gates would prove nothing").
Green: 4 passed / 0 failed with `fixtures/` linked (32.0s).

2026-08-14

feat(flac): ec-flac decoder + encoder and the flacenc shimAhmet Kaan Gümüş · 339321d
feat(flac): ec-flac decoder + encoder and the flacenc shim

Decoder: metadata blocks, frame headers (fixed and variable blocking),
constant/verbatim/fixed/LPC subframes to order 32, escaped and
Rice-coded partitions, all three stereo decorrelations, 8..32-bit,
CRC-8 + CRC-16 verified per frame, STREAMINFO MD5 check, seek-table
positioning, and frame-sync resynchronisation for streams that start
mid-file. Malformed input errors, never panics.

Encoder: fixed block size, wasted-bit detection, fixed predictors,
LPC (Tukey window, Levinson-Durbin, error-feedback quantisation),
exact-cost Rice partition search, per-block stereo decision, 1..8
channels and 4..32 bits, with the input MD5 in STREAMINFO.

shims/flacenc carries package flacenc 0.5.1 over ec-flac for the exact
surface the replica calls (component::BitRepr, error::Verify,
config::Encoder, source::MemSource, encode_with_fixed_block_size,
bitsink::ByteSink).

Verified: 64/64 Xiph subset vectors decode bit-exact vs ffmpeg,
6/6 decodable uncommon vectors bit-exact, faulty vectors error out;
14/14 fixture encodes decode back bit-exact through ffmpeg at 0.961x
the size of ffmpeg's default FLAC.