Lines Matching refs:latm_element

101                                          ixheaacd_latm_struct *latm_element) {  in ixheaacd_latm_payload_length_info()  argument
105 if (latm_element->all_streams_same_time_framing == 1) { in ixheaacd_latm_payload_length_info()
106 for (prog = 0; prog < latm_element->num_program; prog++) { in ixheaacd_latm_payload_length_info()
107 for (lay = 0; lay < latm_element->num_layer; lay++) { in ixheaacd_latm_payload_length_info()
109 &latm_element->layer_info[prog][lay]; in ixheaacd_latm_payload_length_info()
120 latm_element->frame_length = layer_info->frame_len_bits >> 3; in ixheaacd_latm_payload_length_info()
121 latm_element->frame_length += in ixheaacd_latm_payload_length_info()
152 struct ia_bit_buf_struct *it_bit_buff, ixheaacd_latm_struct *latm_element, in ixheaacd_latm_stream_mux_config() argument
163 latm_element->audio_mux_version = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_stream_mux_config()
165 if (latm_element->audio_mux_version == 1) in ixheaacd_latm_stream_mux_config()
171 if (latm_element->audio_mux_version == 1) { in ixheaacd_latm_stream_mux_config()
174 latm_element->all_streams_same_time_framing = in ixheaacd_latm_stream_mux_config()
177 latm_element->num_sub_frames = ixheaacd_read_bits_buf(it_bit_buff, 6) + 1; in ixheaacd_latm_stream_mux_config()
179 if (latm_element->num_sub_frames != 1) in ixheaacd_latm_stream_mux_config()
182 latm_element->num_program = ixheaacd_read_bits_buf(it_bit_buff, 4) + 1; in ixheaacd_latm_stream_mux_config()
184 if (latm_element->num_program > LATM_MAX_PROG) return IA_FATAL_ERROR; in ixheaacd_latm_stream_mux_config()
186 for (prog = 0; prog < latm_element->num_program; prog++) { in ixheaacd_latm_stream_mux_config()
187 latm_element->num_layer = ixheaacd_read_bits_buf(it_bit_buff, 3) + 1; in ixheaacd_latm_stream_mux_config()
189 for (lay = 0; lay < latm_element->num_layer; lay++) { in ixheaacd_latm_stream_mux_config()
190 layer_info = &latm_element->layer_info[prog][lay]; in ixheaacd_latm_stream_mux_config()
196 latm_element->use_same_config = 0; in ixheaacd_latm_stream_mux_config()
198 asc_len = (latm_element->audio_mux_version == 1) in ixheaacd_latm_stream_mux_config()
224 latm_element->use_same_config = in ixheaacd_latm_stream_mux_config()
227 if (latm_element->use_same_config && (lay > 0)) { in ixheaacd_latm_stream_mux_config()
228 layer_info->asc = latm_element->layer_info[prog][lay - 1].asc; in ixheaacd_latm_stream_mux_config()
244 if (!latm_element->all_streams_same_time_framing) { in ixheaacd_latm_stream_mux_config()
256 latm_element->other_data_present = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_stream_mux_config()
258 if (latm_element->other_data_present) { in ixheaacd_latm_stream_mux_config()
259 if (latm_element->audio_mux_version == 1) { in ixheaacd_latm_stream_mux_config()
260 latm_element->other_data_length = ixheaacd_latm_get_value(it_bit_buff); in ixheaacd_latm_stream_mux_config()
263 latm_element->other_data_length = 0; in ixheaacd_latm_stream_mux_config()
266 latm_element->other_data_length <<= 8; in ixheaacd_latm_stream_mux_config()
267 latm_element->other_data_length += in ixheaacd_latm_stream_mux_config()
269 if (latm_element->other_data_length > (UWORD32)it_bit_buff->cnt_bits) in ixheaacd_latm_stream_mux_config()
275 latm_element->crc_check_present = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_stream_mux_config()
277 if (latm_element->crc_check_present) { in ixheaacd_latm_stream_mux_config()
278 latm_element->crc_check_sum = ixheaacd_read_bits_buf(it_bit_buff, 8); in ixheaacd_latm_stream_mux_config()
287 struct ia_bit_buf_struct *it_bit_buff, ixheaacd_latm_struct *latm_element, in ixheaacd_latm_audio_mux_element() argument
295 latm_element->use_same_stream_mux = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_audio_mux_element()
297 if (!latm_element->use_same_stream_mux) { in ixheaacd_latm_audio_mux_element()
299 it_bit_buff, latm_element, aac_state_struct, sample_rate_info))) { in ixheaacd_latm_audio_mux_element()
304 for (i = 0; i < latm_element->num_sub_frames; i++) { in ixheaacd_latm_audio_mux_element()
306 ixheaacd_latm_payload_length_info(it_bit_buff, latm_element))) { in ixheaacd_latm_audio_mux_element()