Commits
Commits on
ea554628a66e3b27d72ca2b3f44d41ad3efa8421Filtered to crates/ec-truehd/src/encode.rsClear filter2026-08-27
feat(truehd): a lossless stereo encoder, foreign-decoder verifiedAhmet Kaan Gümüş · c3703cb
feat(truehd): a lossless stereo encoder, foreign-decoder verified Adds TrueHdEncoder: single-substream stereo, one restart header per access unit, no matrixing or FIR/IIR prediction — every sample is a raw 24-bit offset-binary residual, which the crate's own decoder reconstructs exactly. Round-trips bit-exact through both this crate's own decoder and, decisively, ffmpeg's independent TrueHD/MLP decoder (the major sync's CRC-16 and the AU-header/directory parity nibble, neither validated by our own decoder, had to be derived from ffmpeg's mlp.c/mlp_parse.c/mlpdec.c source to satisfy a foreign decoder).