State of MACE compression/decompression. More...
Public Member Functions | |
void | Clear (void) |
Reset the state. | |
int32_t | CoefficientStep (uint_t uTableOffset, uint_t bUse3Bits) |
Perform a decompression step. | |
Public Attributes | |
int32_t | m_iSample1 |
Last running samples. | |
int32_t | m_iSample2 |
Second temp sample. | |
int32_t | m_iLastStep |
Mask with 0x8000 for + or - direction. | |
int32_t | m_iTableIndex |
Index to the slope table. | |
int32_t | m_iLastAmplitude |
m_iLastSlope * m_iLastStep | |
int32_t | m_iLastSlope |
Last Slope value. | |
Static Public Attributes | |
static const int16_t | g_Table4Small [4] |
Base coefficients for 2 bit samples. | |
static const int16_t | g_Table4Big [512] |
Log table for 2 bit samples. | |
static const int16_t | g_Table8Small [8] |
Base coefficients for 3 bit samples. | |
static const int16_t | g_Table8Big [1024] |
Log table for 3 bit samples. | |
State of MACE compression/decompression.
To initialize this structure, fill all members with zero
void BURGER_API Burger::MACEState_t::Clear | ( | void | ) |
int32_t BURGER_API Burger::MACEState_t::CoefficientStep | ( | uint_t | uTableOffset, |
uint_t | bUse3Bits ) |
Perform a decompression step.
Given a 2 or 3 bit number from the MACE compressed stream, look up in the coefficient tables that currently active slope and determine the value of the next audio sample.
|
static |
Log table for 2 bit samples.
|
static |
Base coefficients for 2 bit samples.
|
static |
Log table for 3 bit samples.
|
static |
Base coefficients for 3 bit samples.
int32_t Burger::MACEState_t::m_iLastAmplitude |
m_iLastSlope * m_iLastStep
int32_t Burger::MACEState_t::m_iLastSlope |
Last Slope value.
int32_t Burger::MACEState_t::m_iLastStep |
Mask with 0x8000 for + or - direction.
int32_t Burger::MACEState_t::m_iSample1 |
Last running samples.
int32_t Burger::MACEState_t::m_iSample2 |
Second temp sample.
int32_t Burger::MACEState_t::m_iTableIndex |
Index to the slope table.