atrac3p:substream_data
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
atrac3p:substream_data [2009/11/25 15:35] – megadiscman | atrac3p:substream_data [2010/08/01 10:05] (current) – joint stereo only if it is stereo. megadiscman | ||
---|---|---|---|
Line 2: | Line 2: | ||
The bytes of the ATRAC3+ frame make up a bitstream. The most significant bit of the input bytes is consumed first. In multi-bit-fields, | The bytes of the ATRAC3+ frame make up a bitstream. The most significant bit of the input bytes is consumed first. In multi-bit-fields, | ||
- | The substream data first contains the number of [[bandlets]] that have to be processed. For some reason, the total number of bandlets | + | The substream data first contains the number of [[ATRAC spectrum anatomy|quantization units]] that are present in this block. For some reason, the total number of quantization units should not be 29, 30 or 31. The maximum number of quantization units, 32, is fine, though. For the quantization units, the quantization precisions |
+ | |||
+ | For each band, joint stereo info, MDCT window shape and and enveloping info is stored next, followed by the non-MDCT encoding tonal component data and finally info about extra dithering noise to be added after synthesis. | ||
===== Encoding ===== | ===== Encoding ===== | ||
- | * 5 bits: Count of bandlets used in this block-1 (should not be 28, 29 or 30). | + | * 5 bits: Count of quantization units in this block-1 (should not be 28, 29 or 30). |
* 1 bit: Mute if set (but frequency-space decoding is still done) | * 1 bit: Mute if set (but frequency-space decoding is still done) | ||
- | * For each channel: [[serialized | + | * For each channel: [[serialized |
- | * If there are bandlets | + | * If there are quantization units with non-zero |
- | * For each channel: [[serialized | + | * For each channel: [[serialized |
- | * 1 bit: Enable full tree access (if clear, only most common trees are accessible) | + | * 1 bit: Enable full spectral data tree access (if clear, only most common trees are accessible) |
- | * For each channel: [[serialized | + | * For each channel: [[serialized |
- | * For each channel: [[serialized | + | * For each channel: [[serialized |
- | * For each channel: [[serialized band joint stereo info]] | + | |
- | * For each channel: [[serialized | + | |
+ | * For each channel: [[serialized | ||
* For each channel: [[serialized band envelopes]] | * For each channel: [[serialized band envelopes]] | ||
- | * [[serialized tone data]] | + | |
+ | * [[serialized tone data]] | ||
* 1 bit: enable time domain dither | * 1 bit: enable time domain dither | ||
* if enabled: 4 bits noise level | * if enabled: 4 bits noise level | ||
* if enabled: 4 bits noise phase | * if enabled: 4 bits noise phase | ||
atrac3p/substream_data.1259163323.txt.gz · Last modified: 2009/11/25 15:35 by megadiscman