FFmpeg
Data Fields
MLPEncodeContext Struct Reference

Data Fields

AVCodecContextavctx
 
int num_substreams
 Number of substreams contained within this stream. More...
 
int num_channels
 Number of channels in major_scratch_buffer. More...
 
int coded_sample_fmt [2]
 sample format encoded for MLP More...
 
int coded_sample_rate [2]
 sample rate encoded for MLP More...
 
int coded_peak_bitrate
 peak bitrate for this major sync header More...
 
int flags
 major sync info flags More...
 
int substream_info
 
int fs
 
int wordlength
 
int channel_occupancy
 
int summary_info
 
int32_tinout_buffer
 Pointer to data currently being read from lavc or written to bitstream. More...
 
int32_tmajor_inout_buffer
 Buffer with all in/out data for one entire major frame interval. More...
 
int32_twrite_buffer
 Pointer to data currently being written to bitstream. More...
 
int32_tsample_buffer
 Pointer to current access unit samples. More...
 
int32_tmajor_scratch_buffer
 Scratch buffer big enough to fit all data for one entire major frame interval. More...
 
int32_tlast_frame
 Pointer to last frame with data to encode. More...
 
int32_tlpc_sample_buffer
 
unsigned int major_number_of_frames
 
unsigned int next_major_number_of_frames
 
unsigned int major_frame_size
 Number of samples in current major frame being encoded. More...
 
unsigned int next_major_frame_size
 Counter of number of samples for next major frame. More...
 
int32_tlossless_check_data
 Array with lossless_check_data for each access unit. More...
 
unsigned intmax_output_bits
 largest output bit-depth More...
 
unsigned intframe_size
 Array with number of samples/channel in each access unit. More...
 
unsigned int frame_index
 Index of current frame being encoded. More...
 
unsigned int one_sample_buffer_size
 Number of samples*channel for one access unit. More...
 
unsigned int max_restart_interval
 Max interval of access units in between two major frames. More...
 
unsigned int min_restart_interval
 Min interval of access units in between two major frames. More...
 
unsigned int restart_intervals
 Number of possible major frame sizes. More...
 
uint16_t timestamp
 Timestamp of current access unit. More...
 
uint16_t dts
 Decoding timestamp of current access unit. More...
 
uint8_t channel_arrangement
 channel arrangement for MLP streams More...
 
uint8_t ch_modifier_thd0
 channel modifier for TrueHD stream 0 More...
 
uint8_t ch_modifier_thd1
 channel modifier for TrueHD stream 1 More...
 
uint8_t ch_modifier_thd2
 channel modifier for TrueHD stream 2 More...
 
unsigned int seq_size [MAJOR_HEADER_INTERVAL]
 
unsigned int seq_offset [MAJOR_HEADER_INTERVAL]
 
unsigned int sequence_size
 
ChannelParamschannel_params
 
BestOffset best_offset [MAJOR_HEADER_INTERVAL+1][MAX_CHANNELS][NUM_CODEBOOKS]
 
DecodingParamsdecoding_params
 
RestartHeader restart_header [MAX_SUBSTREAMS]
 
ChannelParams major_channel_params [MAJOR_HEADER_INTERVAL+1][MAX_CHANNELS]
 ChannelParams to be written to bitstream. More...
 
DecodingParams major_decoding_params [MAJOR_HEADER_INTERVAL+1][MAX_SUBSTREAMS]
 DecodingParams to be written to bitstream. More...
 
int major_params_changed [MAJOR_HEADER_INTERVAL+1][MAX_SUBSTREAMS]
 params_changed to be written to bitstream. More...
 
unsigned int major_cur_subblock_index
 
unsigned int major_filter_state_subblock
 
unsigned int major_number_of_subblocks
 
BestOffset(* cur_best_offset )[NUM_CODEBOOKS]
 
ChannelParamscur_channel_params
 
DecodingParamscur_decoding_params
 
RestartHeadercur_restart_header
 
AudioFrameQueue afq
 
unsigned int starting_frame_index
 
unsigned int number_of_frames
 
unsigned int number_of_samples
 
unsigned int number_of_subblocks
 
unsigned int seq_index
 Sequence index for high compression levels. More...
 
ChannelParamsprev_channel_params
 
DecodingParamsprev_decoding_params
 
ChannelParamsseq_channel_params
 
DecodingParamsseq_decoding_params
 
unsigned int max_codebook_search
 
LPCContext lpc_ctx
 

Detailed Description

Definition at line 102 of file mlpenc.c.

Field Documentation

AVCodecContext* MLPEncodeContext::avctx
int MLPEncodeContext::num_substreams
int MLPEncodeContext::num_channels
int MLPEncodeContext::coded_sample_fmt[2]

sample format encoded for MLP

Definition at line 110 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

int MLPEncodeContext::coded_sample_rate[2]

sample rate encoded for MLP

Definition at line 111 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

int MLPEncodeContext::coded_peak_bitrate

peak bitrate for this major sync header

Definition at line 112 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

int MLPEncodeContext::flags

major sync info flags

Definition at line 114 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

int MLPEncodeContext::substream_info

Definition at line 117 of file mlpenc.c.

Referenced by mlp_encode_init(), set_filter_params(), and write_major_sync().

int MLPEncodeContext::fs

Definition at line 118 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

int MLPEncodeContext::wordlength

Definition at line 119 of file mlpenc.c.

Referenced by apply_filter(), mlp_encode_init(), and write_major_sync().

int MLPEncodeContext::channel_occupancy

Definition at line 120 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

int MLPEncodeContext::summary_info

Definition at line 121 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

int32_t* MLPEncodeContext::inout_buffer

Pointer to data currently being read from lavc or written to bitstream.

Definition at line 123 of file mlpenc.c.

Referenced by input_data_internal(), input_to_sample_buffer(), mlp_encode_frame(), and write_substrs().

int32_t* MLPEncodeContext::major_inout_buffer

Buffer with all in/out data for one entire major frame interval.

Definition at line 124 of file mlpenc.c.

Referenced by mlp_encode_close(), mlp_encode_frame(), mlp_encode_init(), and process_major_frame().

int32_t* MLPEncodeContext::write_buffer

Pointer to data currently being written to bitstream.

Definition at line 125 of file mlpenc.c.

Referenced by mlp_encode_frame(), and write_block_data().

int32_t* MLPEncodeContext::sample_buffer
int32_t* MLPEncodeContext::major_scratch_buffer

Scratch buffer big enough to fit all data for one entire major frame interval.

Definition at line 127 of file mlpenc.c.

Referenced by mlp_encode_close(), mlp_encode_frame(), and mlp_encode_init().

int32_t* MLPEncodeContext::last_frame

Pointer to last frame with data to encode.

Definition at line 128 of file mlpenc.c.

Referenced by mlp_encode_frame(), and write_substrs().

int32_t* MLPEncodeContext::lpc_sample_buffer

Definition at line 130 of file mlpenc.c.

Referenced by mlp_encode_close(), mlp_encode_init(), and set_filter_params().

unsigned int MLPEncodeContext::major_number_of_frames

Definition at line 132 of file mlpenc.c.

Referenced by mlp_encode_frame(), and process_major_frame().

unsigned int MLPEncodeContext::next_major_number_of_frames

Definition at line 133 of file mlpenc.c.

Referenced by mlp_encode_frame().

unsigned int MLPEncodeContext::major_frame_size

Number of samples in current major frame being encoded.

Definition at line 135 of file mlpenc.c.

Referenced by mlp_encode_frame(), and process_major_frame().

unsigned int MLPEncodeContext::next_major_frame_size

Counter of number of samples for next major frame.

Definition at line 136 of file mlpenc.c.

Referenced by mlp_encode_frame().

int32_t* MLPEncodeContext::lossless_check_data

Array with lossless_check_data for each access unit.

Definition at line 138 of file mlpenc.c.

Referenced by input_data_internal(), mlp_encode_close(), mlp_encode_init(), and write_substrs().

unsigned int* MLPEncodeContext::max_output_bits

largest output bit-depth

Definition at line 140 of file mlpenc.c.

Referenced by input_data_internal(), mlp_encode_init(), and set_major_params().

unsigned int* MLPEncodeContext::frame_size

Array with number of samples/channel in each access unit.

Definition at line 141 of file mlpenc.c.

Referenced by analyze_sample_buffer(), input_data_internal(), input_to_sample_buffer(), mlp_encode_close(), mlp_encode_frame(), and mlp_encode_init().

unsigned int MLPEncodeContext::frame_index

Index of current frame being encoded.

Definition at line 142 of file mlpenc.c.

Referenced by input_data_internal(), mlp_encode_frame(), and write_substrs().

unsigned int MLPEncodeContext::one_sample_buffer_size

Number of samples*channel for one access unit.

Definition at line 144 of file mlpenc.c.

Referenced by input_to_sample_buffer(), mlp_encode_frame(), and mlp_encode_init().

unsigned int MLPEncodeContext::max_restart_interval

Max interval of access units in between two major frames.

Definition at line 146 of file mlpenc.c.

Referenced by input_to_sample_buffer(), mlp_encode_frame(), and mlp_encode_init().

unsigned int MLPEncodeContext::min_restart_interval

Min interval of access units in between two major frames.

Definition at line 147 of file mlpenc.c.

Referenced by mlp_encode_frame(), and mlp_encode_init().

unsigned int MLPEncodeContext::restart_intervals

Number of possible major frame sizes.

Definition at line 148 of file mlpenc.c.

Referenced by mlp_encode_frame(), mlp_encode_init(), and set_major_params().

uint16_t MLPEncodeContext::timestamp

Timestamp of current access unit.

Definition at line 150 of file mlpenc.c.

Referenced by mlp_encode_frame(), and write_restart_header().

uint16_t MLPEncodeContext::dts

Decoding timestamp of current access unit.

Definition at line 151 of file mlpenc.c.

Referenced by mlp_encode_frame(), mlp_encode_init(), and write_frame_headers().

uint8_t MLPEncodeContext::channel_arrangement

channel arrangement for MLP streams

Definition at line 153 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

uint8_t MLPEncodeContext::ch_modifier_thd0

channel modifier for TrueHD stream 0

Definition at line 155 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

uint8_t MLPEncodeContext::ch_modifier_thd1

channel modifier for TrueHD stream 1

Definition at line 156 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

uint8_t MLPEncodeContext::ch_modifier_thd2

channel modifier for TrueHD stream 2

Definition at line 157 of file mlpenc.c.

Referenced by mlp_encode_init(), and write_major_sync().

unsigned int MLPEncodeContext::seq_size[MAJOR_HEADER_INTERVAL]

Definition at line 159 of file mlpenc.c.

Referenced by mlp_encode_frame(), mlp_encode_init(), and set_major_params().

unsigned int MLPEncodeContext::seq_offset[MAJOR_HEADER_INTERVAL]

Definition at line 160 of file mlpenc.c.

Referenced by mlp_encode_frame(), mlp_encode_init(), and set_major_params().

unsigned int MLPEncodeContext::sequence_size

Definition at line 161 of file mlpenc.c.

Referenced by mlp_encode_frame(), mlp_encode_init(), and set_major_params().

ChannelParams* MLPEncodeContext::channel_params

Definition at line 163 of file mlpenc.c.

Referenced by mlp_encode_close(), mlp_encode_frame(), mlp_encode_init(), and set_major_params().

BestOffset MLPEncodeContext::best_offset[MAJOR_HEADER_INTERVAL+1][MAX_CHANNELS][NUM_CODEBOOKS]

Definition at line 165 of file mlpenc.c.

Referenced by analyze_sample_buffer(), best_codebook_path_cost(), and set_best_codebook().

DecodingParams* MLPEncodeContext::decoding_params

Definition at line 167 of file mlpenc.c.

Referenced by mlp_encode_close(), mlp_encode_frame(), mlp_encode_init(), and set_major_params().

RestartHeader MLPEncodeContext::restart_header[MAX_SUBSTREAMS]
ChannelParams MLPEncodeContext::major_channel_params[MAJOR_HEADER_INTERVAL+1][MAX_CHANNELS]

ChannelParams to be written to bitstream.

Definition at line 170 of file mlpenc.c.

Referenced by process_major_frame(), set_major_params(), and write_substrs().

DecodingParams MLPEncodeContext::major_decoding_params[MAJOR_HEADER_INTERVAL+1][MAX_SUBSTREAMS]

DecodingParams to be written to bitstream.

Definition at line 171 of file mlpenc.c.

Referenced by process_major_frame(), set_major_params(), and write_substrs().

int MLPEncodeContext::major_params_changed[MAJOR_HEADER_INTERVAL+1][MAX_SUBSTREAMS]

params_changed to be written to bitstream.

Definition at line 172 of file mlpenc.c.

Referenced by set_major_params(), and write_substrs().

unsigned int MLPEncodeContext::major_cur_subblock_index

Definition at line 174 of file mlpenc.c.

Referenced by set_major_params(), and write_substrs().

unsigned int MLPEncodeContext::major_filter_state_subblock

Definition at line 175 of file mlpenc.c.

Referenced by set_major_params(), and write_substrs().

unsigned int MLPEncodeContext::major_number_of_subblocks

Definition at line 176 of file mlpenc.c.

Referenced by set_major_params().

BestOffset(* MLPEncodeContext::cur_best_offset)[NUM_CODEBOOKS]

Definition at line 178 of file mlpenc.c.

Referenced by analyze_sample_buffer(), and determine_bits().

ChannelParams* MLPEncodeContext::cur_channel_params
DecodingParams* MLPEncodeContext::cur_decoding_params
RestartHeader* MLPEncodeContext::cur_restart_header
AudioFrameQueue MLPEncodeContext::afq

Definition at line 183 of file mlpenc.c.

Referenced by mlp_encode_close(), mlp_encode_frame(), and mlp_encode_init().

unsigned int MLPEncodeContext::starting_frame_index

Definition at line 186 of file mlpenc.c.

Referenced by input_to_sample_buffer(), mlp_encode_frame(), and process_major_frame().

unsigned int MLPEncodeContext::number_of_frames
unsigned int MLPEncodeContext::number_of_samples
unsigned int MLPEncodeContext::number_of_subblocks
unsigned int MLPEncodeContext::seq_index

Sequence index for high compression levels.

Definition at line 190 of file mlpenc.c.

Referenced by mlp_encode_frame().

ChannelParams* MLPEncodeContext::prev_channel_params

Definition at line 192 of file mlpenc.c.

Referenced by compare_decoding_params(), and set_major_params().

DecodingParams* MLPEncodeContext::prev_decoding_params

Definition at line 193 of file mlpenc.c.

Referenced by compare_decoding_params(), and set_major_params().

ChannelParams* MLPEncodeContext::seq_channel_params
DecodingParams* MLPEncodeContext::seq_decoding_params

Definition at line 196 of file mlpenc.c.

Referenced by analyze_sample_buffer(), copy_restart_frame_params(), and mlp_encode_frame().

unsigned int MLPEncodeContext::max_codebook_search

Definition at line 198 of file mlpenc.c.

Referenced by codebook_bits(), and mlp_encode_init().

LPCContext MLPEncodeContext::lpc_ctx

Definition at line 200 of file mlpenc.c.

Referenced by mlp_encode_close(), mlp_encode_init(), and set_filter_params().


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