FFmpeg
Data Fields
SubStream Struct Reference

Data Fields

uint8_t restart_seen
 Set if a valid restart header has been read. Otherwise the substream cannot be decoded. More...
 
uint8_t end_of_stream
 Set if end of stream is encountered. More...
 
uint16_t noise_type
 restart header data More...
 
uint8_t min_channel
 The index of the first channel coded in this substream. More...
 
uint8_t max_channel
 The index of the last channel coded in this substream. More...
 
uint8_t max_matrix_channel
 The number of channels input into the rematrix stage. More...
 
uint8_t ch_assign [MAX_CHANNELS]
 For each channel output by the matrix, the output channel to map it to. More...
 
uint64_t mask
 The channel layout for this substream. More...
 
enum AVMatrixEncoding matrix_encoding
 The matrix encoding mode for this substream. More...
 
enum AVMatrixEncoding prev_matrix_encoding
 
ChannelParams channel_params [MAX_CHANNELS]
 Channel coding parameters for channels in the substream. More...
 
uint8_t noise_shift
 The left shift applied to random noise in 0x31ea substreams. More...
 
uint32_t noisegen_seed
 The current seed value for the pseudorandom noise generator(s). More...
 
uint8_t data_check_present
 Set if the substream contains extra info to check the size of VLC blocks. More...
 
uint8_t param_presence_flags
 Bitmask of which parameter sets are conveyed in a decoding parameter block. More...
 
uint8_t num_primitive_matrices
 matrix data More...
 
uint8_t matrix_out_ch [MAX_MATRICES]
 matrix output channel More...
 
uint8_t lsb_bypass [MAX_MATRICES]
 Whether the LSBs of the matrix output are encoded in the bitstream. More...
 
int32_t matrix_coeff [MAX_MATRICES][MAX_CHANNELS]
 Matrix coefficients, stored as 2.14 fixed point. More...
 
uint8_t matrix_noise_shift [MAX_MATRICES]
 Left shift to apply to noise values in 0x31eb substreams. More...
 
uint8_t quant_step_size [MAX_CHANNELS]
 Left shift to apply to Huffman-decoded residuals. More...
 
uint16_t blocksize
 number of PCM samples in current audio block More...
 
uint16_t blockpos
 Number of PCM samples decoded so far in this frame. More...
 
int8_t output_shift [MAX_CHANNELS]
 Left shift to apply to decoded PCM values to get final 24-bit output. More...
 
int32_t lossless_check_data
 Running XOR of all output samples. More...
 

Detailed Description

Definition at line 53 of file mlpdec.c.

Field Documentation

◆ restart_seen

uint8_t SubStream::restart_seen

Set if a valid restart header has been read. Otherwise the substream cannot be decoded.

Definition at line 55 of file mlpdec.c.

Referenced by read_major_sync().

◆ end_of_stream

uint8_t SubStream::end_of_stream

Set if end of stream is encountered.

Definition at line 57 of file mlpdec.c.

◆ noise_type

uint16_t SubStream::noise_type

restart header data

The type of noise to be used in the rematrix stage.

Definition at line 62 of file mlpdec.c.

◆ min_channel

uint8_t SubStream::min_channel

The index of the first channel coded in this substream.

Definition at line 65 of file mlpdec.c.

Referenced by read_access_unit().

◆ max_channel

uint8_t SubStream::max_channel

The index of the last channel coded in this substream.

Definition at line 67 of file mlpdec.c.

Referenced by read_access_unit().

◆ max_matrix_channel

uint8_t SubStream::max_matrix_channel

The number of channels input into the rematrix stage.

Definition at line 69 of file mlpdec.c.

Referenced by read_major_sync().

◆ ch_assign

uint8_t SubStream::ch_assign[MAX_CHANNELS]

For each channel output by the matrix, the output channel to map it to.

Definition at line 71 of file mlpdec.c.

Referenced by read_major_sync().

◆ mask

uint64_t SubStream::mask

The channel layout for this substream.

Definition at line 73 of file mlpdec.c.

Referenced by read_major_sync().

◆ matrix_encoding

enum AVMatrixEncoding SubStream::matrix_encoding

The matrix encoding mode for this substream.

Definition at line 75 of file mlpdec.c.

Referenced by read_major_sync().

◆ prev_matrix_encoding

enum AVMatrixEncoding SubStream::prev_matrix_encoding

Definition at line 76 of file mlpdec.c.

◆ channel_params

ChannelParams SubStream::channel_params[MAX_CHANNELS]

Channel coding parameters for channels in the substream.

Definition at line 79 of file mlpdec.c.

◆ noise_shift

uint8_t SubStream::noise_shift

The left shift applied to random noise in 0x31ea substreams.

Definition at line 82 of file mlpdec.c.

◆ noisegen_seed

uint32_t SubStream::noisegen_seed

The current seed value for the pseudorandom noise generator(s).

Definition at line 84 of file mlpdec.c.

◆ data_check_present

uint8_t SubStream::data_check_present

Set if the substream contains extra info to check the size of VLC blocks.

Definition at line 87 of file mlpdec.c.

◆ param_presence_flags

uint8_t SubStream::param_presence_flags

Bitmask of which parameter sets are conveyed in a decoding parameter block.

Definition at line 90 of file mlpdec.c.

◆ num_primitive_matrices

uint8_t SubStream::num_primitive_matrices

matrix data

Number of matrices to be applied.

Definition at line 105 of file mlpdec.c.

◆ matrix_out_ch

uint8_t SubStream::matrix_out_ch[MAX_MATRICES]

matrix output channel

Definition at line 108 of file mlpdec.c.

◆ lsb_bypass

uint8_t SubStream::lsb_bypass[MAX_MATRICES]

Whether the LSBs of the matrix output are encoded in the bitstream.

Definition at line 111 of file mlpdec.c.

◆ matrix_coeff

int32_t SubStream::matrix_coeff[MAX_MATRICES][MAX_CHANNELS]

Matrix coefficients, stored as 2.14 fixed point.

Definition at line 113 of file mlpdec.c.

◆ matrix_noise_shift

uint8_t SubStream::matrix_noise_shift[MAX_MATRICES]

Left shift to apply to noise values in 0x31eb substreams.

Definition at line 115 of file mlpdec.c.

◆ quant_step_size

uint8_t SubStream::quant_step_size[MAX_CHANNELS]

Left shift to apply to Huffman-decoded residuals.

Definition at line 119 of file mlpdec.c.

◆ blocksize

uint16_t SubStream::blocksize

number of PCM samples in current audio block

Definition at line 122 of file mlpdec.c.

◆ blockpos

uint16_t SubStream::blockpos

Number of PCM samples decoded so far in this frame.

Definition at line 124 of file mlpdec.c.

◆ output_shift

int8_t SubStream::output_shift[MAX_CHANNELS]

Left shift to apply to decoded PCM values to get final 24-bit output.

Definition at line 127 of file mlpdec.c.

Referenced by read_major_sync().

◆ lossless_check_data

int32_t SubStream::lossless_check_data

Running XOR of all output samples.

Definition at line 130 of file mlpdec.c.

Referenced by mlp_decode_init().


The documentation for this struct was generated from the following file: