Commits
Commits on
682c080551bbe0ebee106d55c19fcc95b260a4f9Filtered to crates/ec-vorbis/src/decode.rsClear filter2026-08-22
test(vorbis): bit split oracle — floor vs residue bits per coded value (cherry-pick 107b096)Ahmet Kaan Gümüş · a4a1e96
test(vorbis): bit split oracle — floor vs residue bits per coded value (cherry-pick 107b096) Decoder captures (floor bits, residue bits, packet bits) per block; histogram report prints residue bits per non-zero for ours vs ref. Output stays lanes/vorbis-psy-r1.histogram.txt.
test(vorbis): decoder-side residue reference — valid histogram oracle (cherry-pick 5ede0ed)Ahmet Kaan Gümüş · 454cb75
test(vorbis): decoder-side residue reference — valid histogram oracle (cherry-pick 5ede0ed) Resolve add/add conflicts in oracle.rs: keep both residue_histogram_vs_reference (theirs) and real_library_sweep_vs_reference (ours); git auto-merged identical ffmpeg_decode_limited/shellexpand bodies. Adapt capture hook to main's BlockConfig (main has no residue_end field — codes full half*channels region, so coded=half).
2026-08-20
fix(vorbis): flush() delivers the terminal block's un-overlapped tailAhmet Kaan Gümüş · 750facc
fix(vorbis): flush() delivers the terminal block's un-overlapped tail VorbisDecoder::flush() set drained=true and returned without emitting self.lap, the accumulator holding the last decoded block's samples past the final centre that had not yet been overlap-added into an output frame. Per Vorbis I §1.3.2 those samples, up to the stream's final granule position, are valid output the decoder must deliver — dropping them left every decode exactly one hop (1024 samples at typical rates) short of the encoded length at true EOS. flush() now emits any non-empty self.lap as one final Frame::Audio, permuted through the same to_ec channel map decode_audio uses, before marking drained. Also converts encode.rs's debug_tail_granule_44100_mono from a panic-driven probe into a real assertion (packets==45, last granule==44100), and adds oracle.rs::flush_delivers_the_terminal_hop, a decoder-trait (send_packet/receive_frame/flush) round trip over a sample count that is deliberately not a multiple of the hop, checking exact output length and tail correlation against the source.
2026-08-14
feat(vorbis): Vorbis I decoder and encoderAhmet Kaan Gümüş · c0023ff
feat(vorbis): Vorbis I decoder and encoder Decode is the whole format: codebooks with the entry-order codeword rule (not sorted-canonical - a Laplacian book assigns differently and every packet desynchronises silently), floor 0 and floor 1, residues 0/1/2, square-polar coupling, every blocksize and the four long-window shapes. Encode writes its own codebooks and a setup header per channel layout, centres the first block on input sample 0 so no caller pre-roll is needed, and states the input's own sample count as the last granule.