[flac-dev] [Cellar] FLAC Markdown
Erik de Castro Lopo
mle+la at mega-nerd.com
Wed Jun 7 08:29:45 UTC 2017
Ruud van Asseldonk wrote:
> I'm jumping in on this thread to make a few remarks about the spec. I
> implemented a FLAC decoder by only looking at the spec, and I have a few
> notes that would have saved me a lot of time if the spec had mentioned
> them. They are obvious in hindsight, of course.
>
> * If the channel assignment includes a difference channel, then the
> subframe for that channel has one extra bit per sample in order to
> encode the difference.
>
> * The number of bits per sample for a subframe, is the number of bits
> per sample of the frame, minus the number of wasted bits per sample of
> the subframe (and possibly plus one for a difference channel).
>
> I hope this helps future implementers.
I would love to see a patch against the documentation for this.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the flac-dev
mailing list