xoreos
0.0.5
|
Public Member Functions | |
WMACodec (int version, uint32 sampleRate, uint8 channels, uint32 bitRate, uint32 blockAlign, Common::SeekableReadStream *extraData=0) | |
~WMACodec () | |
int | getChannels () const |
Return the number channels in this stream. More... | |
int | getRate () const |
Sample rate of the stream. More... | |
bool | endOfData () const |
End of data reached? If this returns true, it means that at this time there is no data available in the stream. More... | |
bool | endOfStream () const |
End of stream reached? If this returns true, it means that all data in this stream is used up and no additional data will appear in it in the future. More... | |
size_t | readBuffer (int16 *buffer, const size_t numSamples) |
Fill the given buffer with up to numSamples samples. More... | |
void | finish () |
Mark this stream as finished. More... | |
bool | isFinished () const |
Is the stream marked as finished? More... | |
void | queuePacket (Common::SeekableReadStream *data) |
Queue the next packet to be decoded. More... | |
Public Member Functions inherited from Sound::PacketizedAudioStream | |
virtual | ~PacketizedAudioStream () |
Public Member Functions inherited from Sound::AudioStream | |
virtual | ~AudioStream () |
Private Member Functions | |
void | init (Common::SeekableReadStream *extraData) |
uint16 | getFlags (Common::SeekableReadStream *extraData) |
void | evalFlags (uint16 flags, Common::SeekableReadStream *extraData) |
int | getFrameBitLength () |
int | getBlockSizeCount (uint16 flags) |
uint32 | getNormalizedSampleRate () |
bool | useNoiseCoding (float &highFreq, float &bps) |
void | evalMDCTScales (float highFreq) |
void | initNoise () |
void | initCoefHuffman (float bps) |
void | initMDCT () |
void | initExponents () |
Common::Huffman * | initCoefHuffman (Common::ScopedArray< uint16 > &runTable, Common::ScopedArray< float > &levelTable, Common::ScopedArray< uint16 > &intTable, const WMACoefHuffmanParam ¶ms) |
void | initLSPToCurve () |
Common::SeekableReadStream * | decodeSuperFrame (Common::SeekableReadStream &data) |
bool | decodeFrame (Common::BitStream &bits, int16 *outputData) |
int | decodeBlock (Common::BitStream &bits) |
AudioStream * | decodeFrame (Common::SeekableReadStream &data) |
bool | evalBlockLength (Common::BitStream &bits) |
bool | decodeChannels (Common::BitStream &bits, int bSize, bool msStereo, bool *hasChannel) |
bool | calculateIMDCT (int bSize, bool msStereo, bool *hasChannel) |
void | calculateCoefCount (int *coefCount, int bSize) const |
bool | decodeNoise (Common::BitStream &bits, int bSize, bool *hasChannel, int *coefCount) |
bool | decodeExponents (Common::BitStream &bits, int bSize, bool *hasChannel) |
bool | decodeSpectralCoef (Common::BitStream &bits, bool msStereo, bool *hasChannel, int *coefCount, int coefBitCount) |
float | getNormalizedMDCTLength () const |
void | calculateMDCTCoefficients (int bSize, bool *hasChannel, int *coefCount, int totalGain, float mdctNorm) |
bool | decodeExpHuffman (Common::BitStream &bits, int ch) |
bool | decodeExpLSP (Common::BitStream &bits, int ch) |
bool | decodeRunLevel (Common::BitStream &bits, const Common::Huffman &huffman, const float *levelTable, const uint16 *runTable, int version, float *ptr, int offset, int numCoefs, int blockLen, int frameLenBits, int coefNbBits) |
void | lspToCurve (float *out, float *val_max_ptr, int n, float *lsp) |
void | window (float *out) const |
Apply MDCT window and add into output. More... | |
float | pow_m1_4 (float x) const |
Static Private Member Functions | |
static int | readTotalGain (Common::BitStream &bits) |
static int | totalGainToBits (int totalGain) |
static uint32 | getLargeVal (Common::BitStream &bits) |
Static Private Attributes | |
static const int | kChannelsMax = 2 |
Max number of channels we support. More... | |
static const int | kBlockBitsMin = 7 |
Min number of bits in a block. More... | |
static const int | kBlockBitsMax = 11 |
Max number of bits in a block. More... | |
static const int | kBlockSizeMax = (1 << kBlockBitsMax) |
Max number of bytes in a block. More... | |
static const int | kBlockNBSizes = (kBlockBitsMax - kBlockBitsMin + 1) |
static const int | kSuperframeSizeMax = 16384 |
Max size of a superframe. More... | |
static const int | kHighBandSizeMax = 16 |
Max size of a high band. More... | |
static const int | kNoiseTabSize = 8192 |
Size of the noise table. More... | |
static const int | kLSPPowBits = 7 |
Number of bits for the LSP power value. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Sound::AudioStream | |
static const size_t | kSizeInvalid = SIZE_MAX |
Sound::WMACodec::WMACodec | ( | int | version, |
uint32 | sampleRate, | ||
uint8 | channels, | ||
uint32 | bitRate, | ||
uint32 | blockAlign, | ||
Common::SeekableReadStream * | extraData = 0 |
||
) |
Definition at line 296 of file wma.cpp.
References _audioFlags, _audStream, _channels, _coefHuffmanParam, _sampleRate, _version, Sound::FLAG_16BITS, Sound::FLAG_LITTLE_ENDIAN, getChannels(), getRate(), init(), kChannelsMax, and Sound::makeQueuingAudioStream().
|
private |
Definition at line 1100 of file wma.cpp.
References _channels, _coefsEnd, and _coefsStart.
Referenced by decodeChannels().
|
private |
|
private |
Definition at line 1217 of file wma.cpp.
References _blockLen, _blockLenBits, _channels, _coefs, _coefs1, _coefsEnd, _coefsStart, _exponentHighBands, _exponentHighSizes, _exponents, _exponentsBSize, _frameLenBits, _highBandCoded, _highBandStart, _highBandValues, _maxExponent, _noiseIndex, _noiseMult, _noiseTable, _useNoiseCoding, kHighBandSizeMax, and kNoiseTabSize.
Referenced by decodeChannels().
|
private |
Definition at line 922 of file wma.cpp.
References _blockLen, _blockLenBits, _blockSizeCount, _channels, _curBlock, _frameLen, _frameLenBits, _framePos, calculateIMDCT(), decodeChannels(), evalBlockLength(), Common::BitStream::getBit(), and kChannelsMax.
Referenced by decodeFrame().
|
private |
Definition at line 975 of file wma.cpp.
References _blockLen, _coefs, Sound::butterflyFloats(), calculateCoefCount(), calculateMDCTCoefficients(), decodeExponents(), decodeNoise(), decodeSpectralCoef(), getNormalizedMDCTLength(), kChannelsMax, readTotalGain(), and totalGainToBits().
Referenced by decodeBlock().
|
private |
Definition at line 1423 of file wma.cpp.
References _blockLen, _blockLenBits, _expHuffman, _exponentBands, _exponents, _frameLenBits, _maxExponent, _version, ARRAYSIZE, Common::BitStream::getBits(), Sound::powTab, warning(), and XOREOS_FALLTHROUGH.
Referenced by decodeExponents().
|
private |
Definition at line 1523 of file wma.cpp.
References _blockLen, _exponents, _maxExponent, Common::BitStream::getBits(), Sound::kLSPCoefCount, Sound::lspCodebook, and lspToCurve().
Referenced by decodeExponents().
|
private |
Definition at line 1158 of file wma.cpp.
References _blockLenBits, _channels, _exponentsBSize, _frameLenBits, _useExpHuffman, decodeExpHuffman(), decodeExpLSP(), and Common::BitStream::getBit().
Referenced by decodeChannels().
|
private |
Definition at line 892 of file wma.cpp.
References _channels, _curBlock, _curFrame, _frameLen, _frameOut, _framePos, decodeBlock(), Sound::floatToInt16Interleave(), and kChannelsMax.
Referenced by decodeSuperFrame(), and queuePacket().
|
private |
Definition at line 751 of file wma.cpp.
References _audioFlags, _channels, _sampleRate, decodeSuperFrame(), and Sound::makePCMStream().
|
private |
Definition at line 1107 of file wma.cpp.
References _channels, _exponentHighBands, _exponentHighSizes, _hgainHuffman, _highBandCoded, _highBandValues, _useNoiseCoding, Common::BitStream::getBit(), Common::BitStream::getBits(), and warning().
Referenced by decodeChannels().
|
private |
Definition at line 1541 of file wma.cpp.
References Common::BitStream::getBit(), Common::BitStream::getBits(), getLargeVal(), Common::Huffman::getSymbol(), and warning().
Referenced by decodeSpectralCoef().
|
private |
Definition at line 1181 of file wma.cpp.
References _blockLen, _channels, _coefHuffman, _coefHuffmanLevelTable, _coefHuffmanRunTable, _coefs1, _frameLenBits, _version, decodeRunLevel(), Common::BitStream::pos(), and Common::BitStream::skip().
Referenced by decodeChannels().
|
private |
Definition at line 759 of file wma.cpp.
References _blockAlign, _byteOffsetBits, _channels, _curFrame, _frameLen, _lastBitoffset, _lastSuperframe, _lastSuperframeLen, _resetBlockLengths, _useBitReservoir, debugC(), decodeFrame(), Common::ScopedPtrBase< T, Deallocator >::get(), Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::getBits(), Common::kDebugSound, Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::pos(), Common::ReadStream::read(), Common::ScopedPtrBase< T, Deallocator >::release(), Common::ScopedPtrBase< T, Deallocator >::reset(), Common::SeekableReadStream::seek(), Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::size(), Common::SeekableReadStream::size(), Common::BitStreamImpl< valueBits, isLE, isMSB2LSB >::skip(), and warning().
Referenced by decodeFrame().
|
inlinevirtual |
End of data reached? If this returns true, it means that at this time there is no data available in the stream.
However there may be more data in the future. This is used by e.g. a rate converter to decide whether to keep on converting data or stop.
Implements Sound::AudioStream.
Definition at line 112 of file wma.cpp.
References _audStream.
|
inlinevirtual |
End of stream reached? If this returns true, it means that all data in this stream is used up and no additional data will appear in it in the future.
This is used by the mixer to decide whether a given stream shall be removed from the list of active streams (and thus be destroyed). By default this maps to endOfData()
Reimplemented from Sound::AudioStream.
Definition at line 113 of file wma.cpp.
References _audStream.
|
private |
Definition at line 1031 of file wma.cpp.
References _blockLen, _blockLenBits, _blockSizeCount, _frameLen, _frameLenBits, _framePos, _nextBlockLenBits, _prevBlockLenBits, _resetBlockLengths, _useVariableBlockLen, Common::BitStream::getBits(), Common::intLog2(), and warning().
Referenced by decodeBlock().
|
private |
Definition at line 385 of file wma.cpp.
References _useBitReservoir, _useExpHuffman, _useVariableBlockLen, _version, Common::ReadStream::readUint16LE(), Common::SeekableReadStream::seek(), and Common::SeekableReadStream::size().
Referenced by init().
|
private |
Definition at line 519 of file wma.cpp.
References _blockSizeCount, _coefsEnd, _coefsStart, _exponentBands, _exponentHighBands, _exponentHighSizes, _exponentSizes, _frameLen, _frameLenBits, _highBandStart, _sampleRate, _version, Sound::exponentBand22050, Sound::exponentBand32000, Sound::exponentBand44100, kBlockBitsMin, and Sound::wmaCriticalFreqs.
Referenced by init().
|
inlinevirtual |
Mark this stream as finished.
That is, signal that no further data will be queued to it. Only after this has been done can this stream ever 'end'.
Implements Sound::PacketizedAudioStream.
Definition at line 117 of file wma.cpp.
References _audStream.
|
private |
Definition at line 416 of file wma.cpp.
References _bitRate, _channels, _frameLenBits, _useVariableBlockLen, kBlockBitsMin, and MIN().
Referenced by init().
|
inlinevirtual |
Return the number channels in this stream.
Implements Sound::AudioStream.
Definition at line 110 of file wma.cpp.
References _channels.
Referenced by WMACodec().
|
private |
Definition at line 371 of file wma.cpp.
References _version, Common::ReadStream::readUint16LE(), Common::SeekableReadStream::seek(), and Common::SeekableReadStream::size().
Referenced by init().
|
private |
Definition at line 400 of file wma.cpp.
References _sampleRate, and _version.
Referenced by init().
|
staticprivate |
Definition at line 1701 of file wma.cpp.
References Common::BitStream::getBit(), and Common::BitStream::getBits().
Referenced by decodeRunLevel().
|
private |
Definition at line 1207 of file wma.cpp.
References _blockLen, and _version.
Referenced by decodeChannels().
|
private |
Definition at line 430 of file wma.cpp.
References _sampleRate, and _version.
Referenced by useNoiseCoding().
|
inlinevirtual |
Sample rate of the stream.
Implements Sound::AudioStream.
Definition at line 111 of file wma.cpp.
References _sampleRate.
Referenced by WMACodec().
|
private |
Definition at line 331 of file wma.cpp.
References _bitRate, _blockSizeCount, _byteOffsetBits, _channels, _frameLen, _frameLenBits, _frameOut, _output, _sampleRate, _useNoiseCoding, evalFlags(), evalMDCTScales(), getBlockSizeCount(), getFlags(), getFrameBitLength(), initCoefHuffman(), initExponents(), initMDCT(), initNoise(), Common::intLog2(), and useNoiseCoding().
Referenced by WMACodec().
|
private |
Definition at line 648 of file wma.cpp.
References _coefHuffman, _coefHuffmanIntTable, _coefHuffmanLevelTable, _coefHuffmanParam, _coefHuffmanRunTable, _sampleRate, Sound::coefHuffmanParam, and Common::ScopedPtrBase< T, Deallocator >::reset().
Referenced by init().
|
private |
Definition at line 686 of file wma.cpp.
References Sound::WMACoefHuffmanParam::huffBits, Sound::WMACoefHuffmanParam::huffCodes, Sound::WMACoefHuffmanParam::levels, Sound::WMACoefHuffmanParam::n, and Common::ScopedPtrBase< T, Deallocator >::reset().
|
private |
Definition at line 679 of file wma.cpp.
References _expHuffman, _useExpHuffman, ARRAYSIZE, initLSPToCurve(), Common::ScopedPtrBase< T, Deallocator >::reset(), Sound::scaleHuffBits, and Sound::scaleHuffCodes.
Referenced by init().
|
private |
Definition at line 723 of file wma.cpp.
References _frameLen, _lspCosTable, _lspPowETable, _lspPowMTable1, _lspPowMTable2, kLSPPowBits, and M_PI.
Referenced by initExponents().
|
private |
Definition at line 668 of file wma.cpp.
References _blockSizeCount, _frameLenBits, _mdct, _mdctWindow, and Common::getSineWindow().
Referenced by init().
|
private |
Definition at line 629 of file wma.cpp.
References _hgainHuffman, _noiseIndex, _noiseMult, _noiseTable, _useExpHuffman, _useNoiseCoding, ARRAYSIZE, Sound::hgainHuffBits, Sound::hgainHuffCodes, kNoiseTabSize, and Common::ScopedPtrBase< T, Deallocator >::reset().
Referenced by init().
|
inlinevirtual |
Is the stream marked as finished?
Implements Sound::PacketizedAudioStream.
Definition at line 118 of file wma.cpp.
References _audStream.
|
private |
Definition at line 1494 of file wma.cpp.
References _lspCosTable, Sound::kLSPCoefCount, and pow_m1_4().
Referenced by decodeExpLSP().
|
private |
Definition at line 1660 of file wma.cpp.
References _lspPowETable, _lspPowMTable1, _lspPowMTable2, and kLSPPowBits.
Referenced by lspToCurve().
|
virtual |
Queue the next packet to be decoded.
Implements Sound::PacketizedAudioStream.
Definition at line 1719 of file wma.cpp.
References _audStream, and decodeFrame().
|
inlinevirtual |
Fill the given buffer with up to numSamples samples.
Returns the actual number of samples read, or kSizeInvalid if a critical error occurred (note: you must check if this value is less than what you requested, this can happen when the stream is fully used up).
Data has to be in native endianness, 16 bit per sample, signed. For stereo stream, buffer will be filled with interleaved left and right channel samples, starting with a left sample. Furthermore, the samples in the left and right are summed up. So if you request 4 samples from a stereo stream, you will get a total of two left channel and two right channel samples.
The same holds true for more channels. Channel configurations recognized:
Implements Sound::AudioStream.
Definition at line 114 of file wma.cpp.
References _audStream.
|
staticprivate |
Definition at line 1680 of file wma.cpp.
References Common::BitStream::getBits().
Referenced by decodeChannels().
|
staticprivate |
Definition at line 1693 of file wma.cpp.
Referenced by decodeChannels().
|
private |
Definition at line 453 of file wma.cpp.
References _channels, _sampleRate, and getNormalizedSampleRate().
Referenced by init().
|
private |
Apply MDCT window and add into output.
We ensure that when the windows overlap their squared sum is always 1 (MDCT reconstruction rule).
Definition at line 1613 of file wma.cpp.
References _blockLen, _blockLenBits, _frameLenBits, _mdctWindow, _nextBlockLenBits, _output, _prevBlockLenBits, Sound::vectorFMulAdd(), and Sound::vectorFMulReverse().
Referenced by calculateIMDCT().
|
private |
|
private |
Definition at line 232 of file wma.cpp.
Referenced by endOfData(), endOfStream(), finish(), isFinished(), queuePacket(), readBuffer(), and WMACodec().
|
private |
Input bit rate.
Definition at line 148 of file wma.cpp.
Referenced by getBlockSizeCount(), and init().
|
private |
|
private |
Current block length.
Definition at line 166 of file wma.cpp.
Referenced by calculateIMDCT(), calculateMDCTCoefficients(), decodeBlock(), decodeChannels(), decodeExpHuffman(), decodeExpLSP(), decodeSpectralCoef(), evalBlockLength(), getNormalizedMDCTLength(), and window().
|
private |
log2 of current block length.
Definition at line 167 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), decodeBlock(), decodeExpHuffman(), decodeExponents(), evalBlockLength(), and window().
|
private |
Number of block sizes.
Definition at line 162 of file wma.cpp.
Referenced by decodeBlock(), evalBlockLength(), evalMDCTScales(), init(), and initMDCT().
|
private |
Definition at line 171 of file wma.cpp.
Referenced by decodeSuperFrame(), and init().
|
private |
Output channel count.
Definition at line 147 of file wma.cpp.
Referenced by calculateCoefCount(), calculateIMDCT(), calculateMDCTCoefficients(), decodeBlock(), decodeExponents(), decodeFrame(), decodeNoise(), decodeSpectralCoef(), decodeSuperFrame(), getBlockSizeCount(), getChannels(), init(), useNoiseCoding(), and WMACodec().
|
private |
Coefficients Huffman codes.
Definition at line 182 of file wma.cpp.
Referenced by decodeSpectralCoef(), and initCoefHuffman().
|
private |
Int table for the coef Huffman.
Definition at line 188 of file wma.cpp.
Referenced by initCoefHuffman().
|
private |
Level table for the coef Huffman.
Definition at line 187 of file wma.cpp.
Referenced by decodeSpectralCoef(), and initCoefHuffman().
|
private |
Params for coef Huffman codes.
Definition at line 184 of file wma.cpp.
Referenced by initCoefHuffman(), and WMACodec().
|
private |
Run table for the coef Huffman.
Definition at line 186 of file wma.cpp.
Referenced by decodeSpectralCoef(), and initCoefHuffman().
|
private |
Definition at line 210 of file wma.cpp.
Referenced by calculateIMDCT(), calculateMDCTCoefficients(), and decodeChannels().
|
private |
Definition at line 209 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), and decodeSpectralCoef().
|
private |
Max number of coded coefficients.
Definition at line 175 of file wma.cpp.
Referenced by calculateCoefCount(), calculateMDCTCoefficients(), and evalMDCTScales().
|
private |
First coded coef.
Definition at line 174 of file wma.cpp.
Referenced by calculateCoefCount(), calculateMDCTCoefficients(), and evalMDCTScales().
|
private |
The number of the block we're currently in.
Definition at line 165 of file wma.cpp.
Referenced by decodeBlock(), and decodeFrame().
|
private |
The number of the frame we're currently in.
Definition at line 159 of file wma.cpp.
Referenced by decodeFrame(), and decodeSuperFrame().
|
private |
Exponents Huffman code.
Definition at line 202 of file wma.cpp.
Referenced by decodeExpHuffman(), and initExponents().
|
private |
Definition at line 177 of file wma.cpp.
Referenced by decodeExpHuffman(), and evalMDCTScales().
|
private |
Definition at line 180 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), decodeNoise(), and evalMDCTScales().
|
private |
Definition at line 179 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), decodeNoise(), and evalMDCTScales().
|
private |
Definition at line 199 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), decodeExpHuffman(), and decodeExpLSP().
|
private |
Definition at line 198 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), and decodeExponents().
|
private |
Definition at line 176 of file wma.cpp.
Referenced by evalMDCTScales().
|
private |
The frame length.
Definition at line 160 of file wma.cpp.
Referenced by calculateIMDCT(), decodeBlock(), decodeFrame(), decodeSuperFrame(), evalBlockLength(), evalMDCTScales(), init(), and initLSPToCurve().
|
private |
log2 of the frame length.
Definition at line 161 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), decodeBlock(), decodeExpHuffman(), decodeExponents(), decodeSpectralCoef(), evalBlockLength(), evalMDCTScales(), getBlockSizeCount(), init(), initMDCT(), and window().
|
private |
Definition at line 229 of file wma.cpp.
Referenced by calculateIMDCT(), decodeFrame(), and init().
|
private |
The position within the frame we're currently in.
Definition at line 163 of file wma.cpp.
Referenced by calculateIMDCT(), decodeBlock(), decodeFrame(), and evalBlockLength().
|
private |
Perceptual noise Huffman code.
Definition at line 195 of file wma.cpp.
Referenced by decodeNoise(), and initNoise().
|
private |
Definition at line 205 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), and decodeNoise().
|
private |
Index of first coef in high band.
Definition at line 178 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), and evalMDCTScales().
|
private |
Definition at line 206 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), and decodeNoise().
|
private |
Bit position within the overhang.
Definition at line 225 of file wma.cpp.
Referenced by decodeSuperFrame().
|
private |
Overhang from the last superframe.
Definition at line 223 of file wma.cpp.
Referenced by decodeSuperFrame().
|
private |
Size of the overhang data.
Definition at line 224 of file wma.cpp.
Referenced by decodeSuperFrame().
|
private |
Definition at line 213 of file wma.cpp.
Referenced by initLSPToCurve(), and lspToCurve().
|
private |
Definition at line 214 of file wma.cpp.
Referenced by initLSPToCurve(), and pow_m1_4().
|
private |
Definition at line 215 of file wma.cpp.
Referenced by initLSPToCurve(), and pow_m1_4().
|
private |
Definition at line 216 of file wma.cpp.
Referenced by initLSPToCurve(), and pow_m1_4().
|
private |
Definition at line 200 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), decodeExpHuffman(), and decodeExpLSP().
|
private |
MDCT contexts.
Definition at line 219 of file wma.cpp.
Referenced by calculateIMDCT(), and initMDCT().
|
private |
MDCT window functions.
Definition at line 220 of file wma.cpp.
Referenced by initMDCT(), and window().
|
private |
log2 of next block length.
Definition at line 168 of file wma.cpp.
Referenced by evalBlockLength(), and window().
|
private |
Definition at line 193 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), and initNoise().
|
private |
Noise multiplier.
Definition at line 191 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), and initNoise().
|
private |
Noise table.
Definition at line 192 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), and initNoise().
|
private |
Definition at line 228 of file wma.cpp.
Referenced by calculateIMDCT(), init(), and window().
|
private |
log2 of previous block length.
Definition at line 169 of file wma.cpp.
Referenced by evalBlockLength(), and window().
|
private |
Do we need new block lengths?
Definition at line 157 of file wma.cpp.
Referenced by decodeSuperFrame(), and evalBlockLength().
|
private |
Output sample rate.
Definition at line 146 of file wma.cpp.
Referenced by decodeFrame(), evalMDCTScales(), getFrameBitLength(), getNormalizedSampleRate(), getRate(), init(), initCoefHuffman(), useNoiseCoding(), and WMACodec().
|
private |
Is each frame packet a "superframe"?
Definition at line 153 of file wma.cpp.
Referenced by decodeSuperFrame(), and evalFlags().
|
private |
Exponents in Huffman code? Otherwise, in LSP.
Definition at line 152 of file wma.cpp.
Referenced by decodeExponents(), evalFlags(), initExponents(), and initNoise().
|
private |
Should perceptual noise be added?
Definition at line 155 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), decodeNoise(), init(), and initNoise().
|
private |
Are the block lengths variable?
Definition at line 154 of file wma.cpp.
Referenced by evalBlockLength(), evalFlags(), and getBlockSizeCount().
|
private |
WMA version.
Definition at line 144 of file wma.cpp.
Referenced by decodeExpHuffman(), decodeSpectralCoef(), evalFlags(), evalMDCTScales(), getFlags(), getFrameBitLength(), getNormalizedMDCTLength(), getNormalizedSampleRate(), and WMACodec().
|
staticprivate |
|
staticprivate |
Min number of bits in a block.
Definition at line 124 of file wma.cpp.
Referenced by evalMDCTScales(), and getBlockSizeCount().
|
staticprivate |
|
staticprivate |
|
staticprivate |
Max number of channels we support.
Definition at line 122 of file wma.cpp.
Referenced by decodeBlock(), decodeChannels(), decodeFrame(), and WMACodec().
|
staticprivate |
Max size of a high band.
Definition at line 136 of file wma.cpp.
Referenced by calculateMDCTCoefficients().
|
staticprivate |
Number of bits for the LSP power value.
Definition at line 142 of file wma.cpp.
Referenced by initLSPToCurve(), and pow_m1_4().
|
staticprivate |
Size of the noise table.
Definition at line 139 of file wma.cpp.
Referenced by calculateMDCTCoefficients(), and initNoise().
|
staticprivate |