atrac3p:substream_data
This is an old revision of the document!
Atrac3+ substream bit stream
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, also the first of the bits that make up the field is the most significant one.
The substream data first contains the number of bandlets that have to be processed. For some reason, the total number of bandlets should not be 29, 30 or 31. The maximum number of bandlets, 32, is fine, though. For the bandlets, the quantizers are encoded. The quantizers may be 0, meaning that no data for that bandlet is present.
Encoding
- 5 bits: Count of bandlets used in this block-1 (should not be 28, 29 or 30).
- 1 bit: Mute if set (but frequency-space decoding is still done)
- For each channel: serialized bandlet quantizers
- If there are bandlets with non-zero quantizer
- For each channel: serialized bandlet levels
- 1 bit: Enable full tree access (if clear, only most common trees are accessible)
- For each channel: serialized bandlet tree choice info
- For each channel: serialized bandlet spectral data and dither noise levels
- For each channel: serialized band joint stereo info
- For each channel: serialized unknown bools per band
- For each channel: serialized band envelopes
- 1 bit: Enable tone data. If that bit is set:
- 1 bit: enable time domain dither
- if enabled: 4 bits noise level
- if enabled: 4 bits noise phase
atrac3p/substream_data.1279743766.txt.gz · Last modified: 2010/07/21 20:22 by megadiscman