Value | Metadata block type |
---|---|
0 | Streaminfo |
1 | Padding |
2 | Application |
3 | Seektable |
4 | Vorbis comment |
5 | Cuesheet |
6 | Picture |
7 - 126 | reserved |
127 | invalid, to avoid confusion with a frame sync code |
Data | Description |
---|---|
u(16) | The minimum block size (in samples) used in the stream, excluding the last block. |
u(16) | The maximum block size (in samples) used in the stream. |
u(24) | The minimum frame size (in bytes) used in the stream. A value of 0 signifies that the value is not known. |
u(24) | The maximum frame size (in bytes) used in the stream. A value of 0 signifies that the value is not known. |
u(20) | Sample rate in Hz. A value of 0 is invalid. |
u(3) | (number of channels)-1. FLAC supports from 1 to 8 channels |
u(5) | (bits per sample)-1. FLAC supports from 4 to 32 bits per sample. Currently the reference encoder and decoders only support up to 24 bits per sample. |
u(36) | Total samples in stream. 'Samples' means inter-channel sample, i.e. one second of 44.1 kHz audio will have 44100 samples regardless of the number of channels. A value of zero here means the number of total samples is unknown. |
u(128) | MD5 signature of the unencoded audio data. This allows the decoder to determine if an error exists in the audio data even when the error does not result in an invalid bitstream. A value of 0 signifies that the value is not known. |
Data | Description |
---|---|
u(n) | n '0' bits (n MUST be a multiple of 8) |
Data | Description |
---|---|
u(32) | Registered application ID. (Visit the |
u(n) | Application data (n MUST be a multiple of 8) |
Data | Description |
---|---|
SEEKPOINT+ | One or more seek points. |
Data | Description |
---|---|
u(64) | Sample number of first sample in the target frame, or 0xFFFFFFFFFFFFFFFF for a placeholder point. |
u(64) | Offset (in bytes) from the first byte of the first frame header to the first byte of the target frame's header. |
u(16) | Number of samples in the target frame. |
Bit number | Channel description |
---|---|
0 | Front left |
1 | Front right |
2 | Front center |
3 | Low-frequency effects (LFE) |
4 | Back left |
5 | Back right |
6 | Front left of center |
7 | Front right of center |
8 | Back center |
9 | Side left |
10 | Side right |
11 | Top center |
12 | Top front left |
13 | Top front center |
14 | Top front right |
15 | Top rear left |
16 | Top rear center |
17 | Top rear right |
Data | Description |
---|---|
u(128*8) | Media catalog number, in ASCII printable characters 0x20-0x7E. |
u(64) | Number of lead-in samples. |
u(1) | 1 if the cuesheet corresponds to a Compact Disc, else 0. |
u(7+258*8) | Reserved. All bits MUST be set to zero. |
u(8) | Number of tracks in this cuesheet. |
Cuesheet tracks | A number of structures as specified in the |
Data | Description |
---|---|
u(64) | Track offset of first index point in samples, relative to the beginning of the FLAC audio stream. |
u(8) | Track number. |
u(12*8) | Track ISRC. |
u(1) | The track type: 0 for audio, 1 for non-audio. This corresponds to the CD-DA Q-channel control bit 3. |
u(1) | The pre-emphasis flag: 0 for no pre-emphasis, 1 for pre-emphasis. This corresponds to the CD-DA Q-channel control bit 5. |
u(6+13*8) | Reserved. All bits MUST be set to zero. |
u(8) | The number of track index points. |
Cuesheet track index points | For all tracks except the lead-out track, a number of structures as specified in the |
Data | Description |
---|---|
u(64) | Offset in samples, relative to the track offset, of the index point. |
u(8) | The track index point number. |
u(3*8) | Reserved. All bits MUST be set to zero. |
Data | Description |
---|---|
u(32) | The picture type according to next table |
u(32) | The length of the MIME type string in bytes. |
u(n*8) | The MIME type string, in printable ASCII characters 0x20-0x7E. The MIME type MAY also be --> to signify that the data part is a URL of the picture instead of the picture data itself. |
u(32) | The length of the description string in bytes. |
u(n*8) | The description of the picture, in UTF-8. |
u(32) | The width of the picture in pixels. |
u(32) | The height of the picture in pixels. |
u(32) | The color depth of the picture in bits-per-pixel. |
u(32) | For indexed-color pictures (e.g. GIF), the number of colors used, or 0 for non-indexed pictures. |
u(32) | The length of the picture data in bytes. |
u(n*8) | The binary picture data. |
Value | Picture type |
---|---|
0 | Other |
1 | PNG file icon of 32x32 pixels |
2 | General file icon |
3 | Front cover |
4 | Back cover |
5 | Liner notes page |
6 | Media label (e.g. CD, Vinyl or Cassette label) |
7 | Lead artist, lead performer or soloist |
8 | Artist or performer |
9 | Conductor |
10 | Band or orchestra |
11 | Composer |
12 | Lyricist or text writer |
13 | Recording location |
14 | During recording |
15 | During performance |
16 | Movie or video screen capture |
17 | A bright colored fish |
18 | Illustration |
19 | Band or artist logotype |
20 | Publisher or studio logotype |
Value | Blocksize |
---|---|
0b0000 | reserved |
0b0001 | 192 |
0b0010 - 0b0101 | 144 * (2^v), i.e. 576, 1152, 2304 or 4608 |
0b0110 | uncommon blocksize minus 1 stored as an 8-bit number |
0b0111 | uncommon blocksize minus 1 stored as a 16-bit number |
0b1000 - 0b1111 | 2^v, i.e. 256, 512, 1024, 2048, 4096, 8192, 16384 or 32768 |
Value | Sample rate |
---|---|
0b0000 | sample rate only stored in streaminfo metadata block |
0b0001 | 88.2 kHz |
0b0010 | 176.4 kHz |
0b0011 | 192 kHz |
0b0100 | 8 kHz |
0b0101 | 16 kHz |
0b0110 | 22.05 kHz |
0b0111 | 24 kHz |
0b1000 | 32 kHz |
0b1001 | 44.1 kHz |
0b1010 | 48 kHz |
0b1011 | 96 kHz |
0b1100 | uncommon sample rate in kHz stored as an 8-bit number |
0b1101 | uncommon sample rate in Hz stored as a 16-bit number |
0b1110 | uncommon sample rate in Hz divided by 10, stored as a 16-bit number |
0b1111 | invalid |
Value | Channels |
---|---|
0b0000 | 1 channel: mono |
0b0001 | 2 channels: left, right |
0b0010 | 3 channels: left, right, center |
0b0011 | 4 channels: front left, front right, back left, back right |
0b0100 | 5 channels: front left, front right, front center, back/surround left, back/surround right |
0b0101 | 6 channels: front left, front right, front center, LFE, back/surround left, back/surround right |
0b0110 | 7 channels: front left, front right, front center, LFE, back center, side left, side right |
0b0111 | 8 channels: front left, front right, front center, LFE, back left, back right, side left, side right |
0b1000 | 2 channels, stored as left/side stereo |
0b1001 | 2 channels, stored as right/side stereo |
0b1010 | 2 channels, stored as mid/side stereo |
0b1011 - 0b1111 | reserved |
Value | Bit depth |
---|---|
0b000 | bit depth only stored in streaminfo metadata block |
0b001 | 8 bits per sample |
0b010 | 12 bits per sample |
0b011 | reserved |
0b100 | 16 bits per sample |
0b101 | 20 bits per sample |
0b110 | 24 bits per sample |
0b111 | reserved |
Value | Subframe type |
---|---|
0b000000 | Constant subframe |
0b000001 | Verbatim subframe |
0b000010 - 0b000111 | reserved |
0b001000 - 0b001100 | Subframe with a fixed predictor of order v-8, i.e. 0, 1, 2, 3 or 4 |
0b001101 - 0b011111 | reserved |
0b100000 - 0b111111 | Subframe with a linear predictor of order v-31, i.e. 1 through 32 (inclusive) |
Order | Prediction | Derivation |
---|---|---|
0 | 0 | N/A |
1 | s(n-1) | N/A |
2 | 2 * s(n-1) - s(n-2) | s(n-1) + s'(n-1) |
3 | 3 * s(n-1) - 3 * s(n-2) + s(n-3) | s(n-1) + s'(n-1) + s''(n-1) |
4 | 4 * s(n-1) - 6 * s(n-2) + 4 * s(n-3) - s(n-4) | s(n-1) + s'(n-1) + s''(n-1) + s'''(n-1) |
Data | Description |
---|---|
s(n) | Unencoded warm-up samples (n = frame's bits-per-sample * lpc order). |
u(4) | (Predictor coefficient precision in bits)-1 (NOTE: 0b1111 is invalid). |
s(5) | Prediction right shift needed in bits. |
s(n) | Unencoded predictor coefficients (n = predictor coefficient precision * lpc order). |
Coded residual | Encoded residual |
Value | Description |
---|---|
0b00 | partitioned Rice code with 4-bit parameters |
0b01 | partitioned Rice code with 5-bit parameters |
0b10 - 0b11 | reserved |
Order | Calculation of residual | Sample values summed | Extra bits |
---|---|---|---|
0 | s(n) | 1 | 0 |
1 | s(n) - s(n-1) | 2 | 1 |
2 | s(n) - 2 * s(n-1) + s(n-2) | 4 | 2 |
3 | s(n) - 3 * s(n-1) + 3 * s(n-2) - s(n-3) | 8 | 3 |
4 | s(n) - 4 * s(n-1) + 6 * s(n-2) - 4 * s(n-3) + s(n-4) | 16 | 4 |
Start | Length | Contents | Description |
---|---|---|---|
0x00+0 | 4 byte | 0x664C6143 | fLaC |
0x04+0 | 1 bit | 0b1 | Last metadata block |
0x04+1 | 7 bit | 0b0000000 | Streaminfo metadata block |
0x05+0 | 3 byte | 0x000022 | Length 34 byte |
Start | Length | Contents | Description |
---|---|---|---|
0x08+0 | 2 byte | 0x1000 | Min. blocksize 4096 |
0x0a+0 | 2 byte | 0x1000 | Max. blocksize 4096 |
0x0c+0 | 3 byte | 0x00000f | Min. frame size 15 byte |
0x0f+0 | 3 byte | 0x00000f | Max. frame size 15 byte |
0x12+0 | 20 bit | 0x0ac4, 0b0100 | Sample rate 44100 Hertz |
0x14+4 | 3 bit | 0b001 | 2 channels |
0x14+7 | 5 bit | 0b01111 | Sample bit depth 16 |
0x15+4 | 36 bit | 0b0000, 0x00000001 | Total no. of samples 1 |
0x1a | 16 byte | (...) | MD5 signature |
Start | Length | Contents | Description |
---|---|---|---|
0x2a+0 | 15 bit | 0xff, 0b1111100 | frame sync |
0x2b+7 | 1 bit | 0b0 | blocksize strategy |
0x2c+0 | 4 bit | 0b0110 | 8-bit blocksize further down |
0x2c+4 | 4 bit | 0b1001 | sample rate 44.1kHz |
0x2d+0 | 4 bit | 0b0001 | stereo, no decorrelation |
0x2d+4 | 3 bit | 0b100 | bit depth 16 bit |
0x2d+7 | 1 bit | 0b0 | mandatory 0 bit |
0x2e+0 | 1 byte | 0x00 | frame number 0 |
0x2f+0 | 1 byte | 0x00 | blocksize 1 |
0x30+0 | 1 byte | 0xbf | frame header CRC |
Start | Length | Contents | Description |
---|---|---|---|
0x31+0 | 1 bit | 0b0 | mandatory 0 bit |
0x31+1 | 6 bit | 0b000001 | verbatim subframe |
0x31+7 | 1 bit | 0b1 | wasted bits present |
0x32+0 | 2 bit | 0b01 | 2 wasted bits |
0x32+2 | 14 bit | 0b011000, 0xfd | 14-bit unencoded sample |
Start | Length | Contents | Description |
---|---|---|---|
0x34+0 | 1 bit | 0b0 | mandatory 0 bit |
0x34+1 | 6 bit | 0b000001 | verbatim subframe |
0x34+7 | 1 bit | 0b1 | wasted bits present |
0x35+0 | 4 bit | 0b0001 | 4 wasted bits |
0x35+4 | 12 bit | 0b0010, 0x8b | 12-bit unencoded sample |
Start | Length | Contents | Description |
---|---|---|---|
0x04+0 | 1 bit | 0b0 | Not the last metadata block |
0x08+0 | 2 byte | 0x0010 | Min. blocksize 16 |
0x0a+0 | 2 byte | 0x0010 | Max. blocksize 16 |
0x0c+0 | 3 byte | 0x000017 | Min. frame size 23 byte |
0x0f+0 | 3 byte | 0x000044 | Max. frame size 68 byte |
0x15+4 | 36 bit | 0b0000, 0x00000013 | Total no. of samples 19 |
0x1a | 16 byte | (...) | MD5 signature |
Start | Length | Contents | Description |
---|---|---|---|
0x2a+0 | 1 bit | 0b0 | Not the last metadata block |
0x2a+1 | 7 bit | 0b0000011 | Seektable metadata block |
0x2b+0 | 3 byte | 0x000012 | Length 18 byte |
0x2e+0 | 8 byte | 0x0000000000000000 | Seekpoint to sample 0 |
0x36+0 | 8 byte | 0x0000000000000000 | Seekpoint to offset 0 |
0x3e+0 | 2 byte | 0x0010 | Seekpoint to blocksize 16 |
Start | Length | Contents | Description |
---|---|---|---|
0x40+0 | 1 bit | 0b0 | Not the last metadata block |
0x40+1 | 7 bit | 0b0000100 | Vorbis comment metadata block |
0x41+0 | 3 byte | 0x00003a | Length 58 byte |
0x44+0 | 4 byte | 0x20000000 | Vendor string length 32 byte |
0x48+0 | 32 byte | (...) | Vendor string |
0x68+0 | 4 byte | 0x01000000 | Number of fields 1 |
0x6c+0 | 4 byte | 0x0e000000 | Field length 14 byte |
0x70+0 | 14 byte | (...) | Field contents |
Start | Length | Contents | Description |
---|---|---|---|
0x7e+0 | 1 bit | 0b1 | Last metadata block |
0x7e+1 | 7 bit | 0b0000001 | Padding metadata block |
0x7f+0 | 3 byte | 0x000006 | Length 6 byte |
0x82+0 | 6 byte | 0x000000000000 | Padding bytes |
Start | Length | Contents | Description |
---|---|---|---|
0x88+0 | 15 bit | 0xff, 0b1111100 | frame sync |
0x89+7 | 1 bit | 0b0 | blocksize strategy |
0x8a+0 | 4 bit | 0b0110 | 8-bit blocksize further down |
0x8a+4 | 4 bit | 0b1001 | sample rate 44.1kHz |
0x8b+0 | 4 bit | 0b1001 | right-side stereo |
0x8b+4 | 3 bit | 0b100 | bit depth 16 bit |
0x8b+7 | 1 bit | 0b0 | mandatory 0 bit |
0x8c+0 | 1 byte | 0x00 | frame number 0 |
0x8d+0 | 1 byte | 0x0f | blocksize 16 |
0x8e+0 | 1 byte | 0x99 | frame header CRC |
Start | Length | Contents | Description |
---|---|---|---|
0x8f+0 | 1 bit | 0b0 | mandatory 0 bit |
0x8f+1 | 6 bit | 0b001001 | fixed subframe, 1st order |
0x8f+7 | 1 bit | 0b0 | no wasted bits present |
0x90+0 | 17 bit | 0x0867, 0b0 | unencoded warm-up sample |
Start | Length | Contents | Description |
---|---|---|---|
0x92+1 | 2 bit | 0b00 | Rice code with 4-bit parameter |
0x92+3 | 4 bit | 0b0000 | Partition order 0 |
0x92+7 | 4 bit | 0b1011 | Rice parameter 11 |
0x93+3 | 4 bit | 0b0001 | Quotient 3 |
0x93+7 | 11 bit | 0b00011110100 | Remainder 244 |
0x95+2 | 2 bit | 0b01 | Quotient 1 |
0x95+4 | 11 bit | 0b01000100001 | Remainder 545 |
0x96+7 | 2 bit | 0b01 | Quotient 1 |
0x97+1 | 11 bit | 0b00110011000 | Remainder 408 |
0x98+4 | 1 bit | 0b1 | Quotient 0 |
0x98+5 | 11 bit | 0b11101011101 | Remainder 1885 |
0x9a+0 | 1 bit | 0b1 | Quotient 0 |
0x9a+1 | 11 bit | 0b11101110000 | Remainder 1904 |
0x9b+4 | 1 bit | 0b1 | Quotient 0 |
0x9b+5 | 11 bit | 0b10101101111 | Remainder 1391 |
0x9d+0 | 1 bit | 0b1 | Quotient 0 |
0x9d+1 | 11 bit | 0b11000000000 | Remainder 1536 |
0x9e+4 | 1 bit | 0b1 | Quotient 0 |
0x9e+5 | 11 bit | 0b10000010111 | Remainder 1047 |
0xa0+0 | 1 bit | 0b1 | Quotient 0 |
0xa0+1 | 11 bit | 0b10010101110 | Remainder 1198 |
0xa1+4 | 1 bit | 0b1 | Quotient 0 |
0xa1+5 | 11 bit | 0b01100100001 | Remainder 801 |
0xa3+0 | 13 bit | 0b0000000000001 | Quotient 12 |
0xa4+5 | 11 bit | 0b11011100111 | Remainder 1767 |
0xa6+0 | 1 bit | 0b1 | Quotient 0 |
0xa6+1 | 11 bit | 0b01001110111 | Remainder 631 |
0xa7+4 | 1 bit | 0b1 | Quotient 0 |
0xa7+5 | 11 bit | 0b01000100100 | Remainder 548 |
0xa9+0 | 1 bit | 0b1 | Quotient 0 |
0xa9+1 | 11 bit | 0b01000010101 | Remainder 533 |
0xaa+4 | 1 bit | 0b1 | Quotient 0 |
0xaa+5 | 11 bit | 0b00100001100 | Remainder 268 |
Quotient | Remainder | Zig-zag encoded | Residual sample value |
---|---|---|---|
3 | 244 | 6388 | 3194 |
1 | 545 | 2593 | -1297 |
1 | 408 | 2456 | 1228 |
0 | 1885 | 1885 | -943 |
0 | 1904 | 1904 | 952 |
0 | 1391 | 1391 | -696 |
0 | 1536 | 1536 | 768 |
0 | 1047 | 1047 | -524 |
0 | 1198 | 1198 | 599 |
0 | 801 | 801 | -401 |
12 | 1767 | 26343 | -13172 |
0 | 631 | 631 | -316 |
0 | 548 | 548 | 274 |
0 | 533 | 533 | -267 |
0 | 268 | 268 | 134 |
Residual | Sample value |
---|---|
(warm-up) | 4302 |
3194 | 7496 |
-1297 | 6199 |
1228 | 7427 |
-943 | 6484 |
952 | 7436 |
-696 | 6740 |
768 | 7508 |
-524 | 6984 |
599 | 7583 |
-401 | 7182 |
-13172 | -5990 |
-316 | -6306 |
274 | -6032 |
-267 | -6299 |
134 | -6165 |
Subframe 1 | Subframe 2 | Left | Right |
---|---|---|---|
4302 | 6070 | 10372 | 6070 |
7496 | 10545 | 18041 | 10545 |
6199 | 8743 | 14942 | 8743 |
7427 | 10449 | 17876 | 10449 |
6484 | 9143 | 15627 | 9143 |
7436 | 10463 | 17899 | 10463 |
6740 | 9502 | 16242 | 9502 |
7508 | 10569 | 18077 | 10569 |
6984 | 9840 | 16824 | 9840 |
7583 | 10680 | 18263 | 10680 |
7182 | 10113 | 17295 | 10113 |
-5990 | -8428 | -14418 | -8428 |
-6306 | -8895 | -15201 | -8895 |
-6032 | -8476 | -14508 | -8476 |
-6299 | -8896 | -15195 | -8896 |
-6165 | -8653 | -14818 | -8653 |
Start | Length | Contents | Description |
---|---|---|---|
0xcc+0 | 15 bit | 0xff, 0b1111100 | frame sync |
0xcd+7 | 1 bit | 0b0 | blocksize strategy |
0xce+0 | 4 bit | 0b0110 | 8-bit blocksize further down |
0xce+4 | 4 bit | 0b1001 | sample rate 44.1kHz |
0xcf+0 | 4 bit | 0b0001 | stereo, no decorrelation |
0xcf+4 | 3 bit | 0b100 | bit depth 16 bit |
0xcf+7 | 1 bit | 0b0 | mandatory 0 bit |
0xd0+0 | 1 byte | 0x01 | frame number 1 |
0xd1+0 | 1 byte | 0x02 | blocksize 3 |
0xd2+0 | 1 byte | 0xa4 | frame header CRC |
Start | Length | Contents | Description |
---|---|---|---|
0xd3+0 | 1 bit | 0b0 | mandatory 0 bit |
0xd3+1 | 6 bit | 0b000001 | verbatim subframe |
0xd3+7 | 1 bit | 0b0 | no wasted bits present |
0xd4+0 | 16 bit | 0xc382 | 16-bit unencoded sample |
0xd6+0 | 16 bit | 0xc40b | 16-bit unencoded sample |
0xd8+0 | 16 bit | 0xc14a | 16-bit unencoded sample |
Start | Length | Contents | Description |
---|---|---|---|
0xda+0 | 1 bit | 0b0 | mandatory 0 bit |
0xda+1 | 6 bit | 0b000001 | verbatim subframe |
0xda+7 | 1 bit | 0b1 | wasted bits present |
0xdb+0 | 1 bit | 0b1 | 1 wasted bit |
0xdb+1 | 15 bit | 0b110111001001000 | 15-bit unencoded sample |
0xdd+0 | 15 bit | 0b110111010000001 | 15-bit unencoded sample |
0xde+7 | 15 bit | 0b110110110011111 | 15-bit unencoded sample |
Start | Length | Contents | Description |
---|---|---|---|
0x0c+0 | 3 byte | 0x00001f | Min. frame size 31 byte |
0x0f+0 | 3 byte | 0x00001f | Max. frame size 31 byte |
0x12+0 | 20 bit | 0x07d0, 0x0000 | Sample rate 32000 Hertz |
0x14+4 | 3 bit | 0b000 | 1 channel |
0x14+7 | 5 bit | 0b00111 | Sample bit depth 8 bit |
0x15+4 | 36 bit | 0b0000, 0x00000018 | Total no. of samples 24 |
0x1a | 16 byte | (...) | MD5 signature |
Start | Length | Contents | Description |
---|---|---|---|
0x2a+0 | 15 bit | 0xff, 0b1111100 | Frame sync |
0x2b+7 | 1 bit | 0b0 | Blocksize strategy |
0x2c+0 | 4 bit | 0b0110 | 8-bit blocksize further down |
0x2c+4 | 4 bit | 0b1000 | Sample rate 32kHz |
0x2d+0 | 4 bit | 0b0000 | Mono audio (1 channel) |
0x2d+4 | 3 bit | 0b001 | Bit depth 8 bit |
0x2d+7 | 1 bit | 0b0 | Mandatory 0 bit |
0x2e+0 | 1 byte | 0x00 | Frame number 0 |
0x2f+0 | 1 byte | 0x17 | Blocksize 24 |
0x30+0 | 1 byte | 0xe9 | Frame header CRC |
Start | Length | Contents | Description |
---|---|---|---|
0x31+0 | 1 bit | 0b0 | Mandatory 0 bit |
0x31+1 | 6 bit | 0b100010 | Linear prediction subframe, 3rd order |
0x31+7 | 1 bit | 0b0 | No wasted bits present |
0x32+0 | 8 bit | 0x00 | Unencoded warm-up sample 0 |
0x33+0 | 8 bit | 0x4f | Unencoded warm-up sample 79 |
0x34+0 | 8 bit | 0x6f | Unencoded warm-up sample 111 |
0x35+0 | 4 bit | 0b0011 | Coefficient precision 4 bit |
0x35+4 | 5 bit | 0b00010 | Prediction right shift 2 |
0x36+1 | 4 bit | 0b0111 | Predictor coefficient 7 |
0x36+5 | 4 bit | 0b1010 | Predictor coefficient -6 |
0x37+1 | 4 bit | 0b0010 | Predictor coefficient 2 |
Start | Length | Contents | Description |
---|---|---|---|
0x37+5 | 2 bit | 0b00 | Rice-coded residual, 4-bit parameter |
0x37+7 | 4 bit | 0b0010 | Partition order 2 |
0x38+3 | 4 bit | 0b0011 | Rice parameter 3 |
0x38+7 | 1 bit | 0b1 | Quotient 0 |
0x39+0 | 3 bit | 0b110 | Remainder 6 |
0x39+3 | 1 bit | 0b1 | Quotient 0 |
0x39+4 | 3 bit | 0b001 | Remainder 1 |
0x39+7 | 4 bit | 0b0001 | Quotient 3 |
0x3a+3 | 3 bit | 0b001 | Remainder 1 |
0x3a+6 | 4 bit | 0b1111 | No rice parameter, escape code |
0x3b+2 | 5 bit | 0b00101 | Partition encoded with 5 bits |
0x3b+7 | 5 bit | 0b10110 | Residual -10 |
0x3c+4 | 5 bit | 0b11010 | Residual -6 |
0x3d+1 | 5 bit | 0b00010 | Residual 2 |
0x3d+6 | 5 bit | 0b01000 | Residual 8 |
0x3e+3 | 5 bit | 0b01000 | Residual 8 |
0x3f+0 | 5 bit | 0b00110 | Residual 6 |
0x3f+5 | 4 bit | 0b0010 | Rice parameter 2 |
0x40+1 | 22 bit | (...) | Residual partition 3 |
0x42+7 | 4 bit | 0b0001 | Rice parameter 1 |
0x43+3 | 23 bit | (...) | Residual partition 4 |
Residual | Predictor w/o shift | Predictor | Sample value |
---|---|---|---|
(warm-up) | N/A | N/A | 0 |
(warm-up) | N/A | N/A | 79 |
(warm-up) | N/A | N/A | 111 |
3 | 303 | 75 | 78 |
-1 | 38 | 9 | 8 |
-13 | -190 | -48 | -61 |
-10 | -319 | -80 | -90 |
-6 | -248 | -62 | -68 |
2 | -58 | -15 | -13 |
8 | 137 | 34 | 42 |
8 | 236 | 59 | 67 |
6 | 191 | 47 | 53 |
0 | 53 | 13 | 13 |
-3 | -93 | -24 | -27 |
-5 | -161 | -41 | -46 |
-4 | -134 | -34 | -38 |
-1 | -44 | -11 | -12 |
1 | 52 | 13 | 14 |
1 | 94 | 23 | 24 |
4 | 60 | 15 | 19 |
2 | 17 | 4 | 6 |
2 | -24 | -6 | -4 |
2 | -26 | -7 | -5 |
0 | 1 | 0 | 0 |