Lines Matching defs:MLPEncodeContext
109 typedef struct MLPEncodeContext { struct
110 AVCodecContext *avctx;
112 int num_substreams; ///< Number of substreams contained within this stream.
114 int num_channels; /**< Number of channels in major_scratch_buffer.
117 int coded_sample_fmt [2]; ///< sample format encoded for MLP
118 int coded_sample_rate[2]; ///< sample rate encoded for MLP
119 int coded_peak_bitrate; ///< peak bitrate for this major sync header
121 int flags; ///< major sync info flags
124 int substream_info;
125 int fs;
126 int wordlength;
127 int channel_occupancy;
128 int summary_info;
130 …nout_buffer; ///< Pointer to data currently being read from lavc or written to bitstream.
131 … *major_inout_buffer; ///< Buffer with all in/out data for one entire major frame interval.
132 … int32_t *write_buffer; ///< Pointer to data currently being written to bitstream.
133 int32_t *sample_buffer; ///< Pointer to current access unit samples.
134 …ratch_buffer; ///< Scratch buffer big enough to fit all data for one entire major frame interval.
135 int32_t last_frames; ///< Signal last frames.
137 int32_t *lpc_sample_buffer;
139 unsigned int major_number_of_frames;
140 unsigned int next_major_number_of_frames;
142 …nsigned int major_frame_size; ///< Number of samples in current major frame being encoded.
143 unsigned int next_major_frame_size; ///< Counter of number of samples for next major frame.
145 … int32_t *lossless_check_data; ///< Array with lossless_check_data for each access unit.
147 unsigned int *max_output_bits; ///< largest output bit-depth
148 unsigned int frame_index; ///< Index of current frame being encoded.
150 unsigned int one_sample_buffer_size; ///< Number of samples*channel for one access unit.
152 …igned int max_restart_interval; ///< Max interval of access units in between two major frames.
153 …igned int min_restart_interval; ///< Min interval of access units in between two major frames.
154 unsigned int restart_intervals; ///< Number of possible major frame sizes.
156 uint16_t timestamp; ///< Timestamp of current access unit.
157 uint16_t dts; ///< Decoding timestamp of current access unit.
159 uint8_t channel_arrangement; ///< channel arrangement for MLP streams
161 uint8_t ch_modifier_thd0; ///< channel modifier for TrueHD stream 0
162 uint8_t ch_modifier_thd1; ///< channel modifier for TrueHD stream 1
163 uint8_t ch_modifier_thd2; ///< channel modifier for TrueHD stream 2
165 unsigned int seq_size [MAJOR_HEADER_INTERVAL];
166 unsigned int seq_offset[MAJOR_HEADER_INTERVAL];
167 unsigned int sequence_size;
169 ChannelParams *channel_params;
171 BestOffset best_offset[MAJOR_HEADER_INTERVAL+1][MAX_CHANNELS][NUM_CODEBOOKS];
173 DecodingParams *decoding_params;
174 RestartHeader restart_header;
176 …params[MAJOR_HEADER_INTERVAL+1][MAX_CHANNELS]; ///< ChannelParams to be written to bitstream.
177 …params[MAJOR_HEADER_INTERVAL+1]; ///< DecodingParams to be written to bitstream.
178 …anged[MAJOR_HEADER_INTERVAL+1]; ///< params_changed to be written to bitstream.
180 unsigned int major_cur_subblock_index;
181 unsigned int major_filter_state_subblock;
182 unsigned int major_number_of_subblocks;
184 BestOffset (*cur_best_offset)[NUM_CODEBOOKS];
185 ChannelParams *cur_channel_params;
186 DecodingParams *cur_decoding_params;
210 } MLPEncodeContext; argument