Go to the documentation of this file.
30 #define MAX_MATRIX_CHANNEL_MLP 5
31 #define MAX_MATRIX_CHANNEL_TRUEHD 7
36 #define MAX_CHANNELS 8
41 #define MAX_MATRICES_MLP 6
42 #define MAX_MATRICES_TRUEHD 8
43 #define MAX_MATRICES 8
48 #define MAX_SUBSTREAMS 4
51 #define MAX_RATEFACTOR 4
53 #define MAX_SAMPLERATE (MAX_RATEFACTOR * 48000)
56 #define MAX_BLOCKSIZE (40 * MAX_RATEFACTOR)
58 #define MAX_BLOCKSIZE_POW2 (64 * MAX_RATEFACTOR)
64 #define MAX_FIR_ORDER 8
65 #define MAX_IIR_ORDER 4
68 #define END_OF_STREAM 0xd234d234
@ THD_CH_MODIFIER_NOTINDICATED
const uint8_t ff_mlp_huffman_tables[3][18][2]
Tables defining the Huffman codes.
uint8_t codebook
Which VLC codebook to use to read residuals.
static uint8_t xor_32_to_8(uint32_t value)
XOR four bytes into one.
@ THD_CH_MODIFIER_SURROUNDEX
uint8_t ff_mlp_checksum8(const uint8_t *buf, unsigned int buf_size)
MLP uses checksums that seem to be based on the standard CRC algorithm, but are not (in implementatio...
const ChannelInformation ff_mlp_ch_info[21]
Tables defining channel information.
FilterParams filter_params[NUM_FILTERS]
uint8_t huff_lsbs
Size of residual suffix not encoded using VLC.
uint16_t ff_mlp_checksum16(const uint8_t *buf, unsigned int buf_size)
void ff_mlp_init_crc(void)
int32_t coeff[NUM_FILTERS][MAX_FIR_ORDER]
@ THD_CH_MODIFIER_LBINRBIN
#define NUM_FILTERS
number of allowed filters
uint8_t order
number of taps in filter
int16_t huff_offset
Offset to apply to residual values.
#define MAX_FIR_ORDER
The maximum number of taps in IIR and FIR filters.
const uint64_t ff_mlp_channel_layouts[12]
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default value
sample data coding information
int32_t sign_huff_offset
sign/rounding-corrected version of huff_offset
int32_t state[MAX_FIR_ORDER]
@ THD_CH_MODIFIER_NOTSURROUNDEX
uint8_t ff_mlp_calculate_parity(const uint8_t *buf, unsigned int buf_size)
XOR together all the bytes of a buffer.
uint8_t shift
Right shift to apply to output of filter.
uint8_t ff_mlp_restart_checksum(const uint8_t *buf, unsigned int bit_size)
Calculate an 8-bit checksum over a restart header – a non-multiple-of-8 number of bits,...