Simplified logic of parsing sizes of rice-partitionsmaster
commit37e675b777d4e0de53ac9ff69e2aea10d92e729c
authorUlrik Mikaelsson <ulrik.mikaelsson@gmail.com>
Sun, 2 Feb 2020 20:03:37 +0000 (2 21:03 +0100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 3 May 2020 07:16:19 +0000 (3 17:16 +1000)
tree13fb269576e56d8e78f5c62f2e4c1f962450745a
parent4fbb6d4f2ecf2a96c17ea9880108409f852c08a9
Simplified logic of parsing sizes of rice-partitions

> if the partition order is zero, n = frame's blocksize - predictor order
> else if this is not the first partition of the subframe,
>   n = (frame's blocksize / (2^partition order))
> else n = (frame's blocksize / (2^partition order)) - predictor order

if the partition order is zero, then partition_number can only be zero
if the partition order is zero, then
  (frame's blocksize / (2^partition order))
  is (frame's blocksize / 1) == frame's blocksize
doc/html/format.html
src/libFLAC/stream_decoder.c