diff options
author | Ulrik Mikaelsson <ulrik.mikaelsson@gmail.com> | 2020-02-02 21:03:37 +0100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2020-05-03 17:16:19 +1000 |
commit | 37e675b777d4e0de53ac9ff69e2aea10d92e729c (patch) | |
tree | 13fb269576e56d8e78f5c62f2e4c1f962450745a /doc | |
parent | 4fbb6d4f2ecf2a96c17ea9880108409f852c08a9 (diff) | |
download | flac-37e675b777d4e0de53ac9ff69e2aea10d92e729c.tar.gz |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/html/format.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/format.html b/doc/html/format.html index ad2cddf7..ce1e483d 100644 --- a/doc/html/format.html +++ b/doc/html/format.html @@ -1737,13 +1737,13 @@ Encoded residual. The number of samples (n) in the partition is determined as follows:<br /> <ul> <li> - if the partition order is zero, n = frame's blocksize - predictor order + partition size = (frame's blocksize / (2^partition order)) </li> <li> - else if this is not the first partition of the subframe, n = (frame's blocksize / (2^partition order)) + for first partition of the subframe, n = partition size - predictor </li> <li> - else n = (frame's blocksize / (2^partition order)) - predictor order + for remaining partitions, n = partition size </li> </ul> </td> @@ -1816,13 +1816,13 @@ Encoded residual. The number of samples (n) in the partition is determined as follows:<br /> <ul> <li> - if the partition order is zero, n = frame's blocksize - predictor order + partition size = (frame's blocksize / (2^partition order)) </li> <li> - else if this is not the first partition of the subframe, n = (frame's blocksize / (2^partition order)) + for first partition of the subframe, n = partition size - predictor </li> <li> - else n = (frame's blocksize / (2^partition order)) - predictor order + for remaining partitions, n = partition size </li> </ul> </td> |