diff options
author | Ruud van Asseldonk <dev@veniogames.com> | 2017-06-11 13:16:27 +0200 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2017-06-12 20:09:03 +1000 |
commit | 1ab8a51c24d17db373eb76ee2b806836716629e6 (patch) | |
tree | 60b881cb9e07ca161e58a571f939703e8ce51988 /doc/html | |
parent | bb750734287a4079ca3de9ff85c71cc62160ac46 (diff) | |
download | flac-1ab8a51c24d17db373eb76ee2b806836716629e6.tar.gz |
doc: Add notes about subframe sample size
Diffstat (limited to 'doc/html')
-rw-r--r-- | doc/html/format.html | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/html/format.html b/doc/html/format.html index bce3c453..1047092a 100644 --- a/doc/html/format.html +++ b/doc/html/format.html @@ -1267,7 +1267,7 @@ <3> </td> <td> - Sample size in bits:<br /> + Sample size in bits: <a href="#frame_header_notes">[5]</a><br /> <ul> <li> <tt>000</tt> : get from STREAMINFO metadata block @@ -1367,6 +1367,11 @@ <li> The "UTF-8" coding used for the sample/frame number is the same variable length code used to store compressed UCS-2, extended to handle larger input. </li> + <li> + For subframes that encode a difference channel, + the sample size is one bit larger than the sample size of the frame, + in order to be able to encode the difference between extreme values. + </li> </ol> </td> </tr> @@ -1489,6 +1494,8 @@ <tt>1</tt> : k wasted bits-per-sample in source subblock, k-1 follows, unary coded; e.g. k=3 => 001 follows, k=7 => 0000001 follows. </li> </ul> + The size of the samples stored in the subframe is the subframe sample size reduced by k bits. + Decoded samples must be shifted left by k bits. </td> </tr> </table> |