Lines Matching refs:it_bit_buff
86 struct ia_bit_buf_struct *it_bit_buff) { in ixheaacd_latm_au_chunk_length_info() argument
91 UWORD32 tmp = ixheaacd_read_bits_buf(it_bit_buff, 8); in ixheaacd_latm_au_chunk_length_info()
103 WORD32 ixheaacd_latm_payload_length_info(struct ia_bit_buf_struct *it_bit_buff, in ixheaacd_latm_payload_length_info() argument
117 ixheaacd_latm_au_chunk_length_info(it_bit_buff); in ixheaacd_latm_payload_length_info()
125 (it_bit_buff->size - it_bit_buff->cnt_bits) >> 3; in ixheaacd_latm_payload_length_info()
142 static UWORD32 ixheaacd_latm_get_value(ia_bit_buf_struct *it_bit_buff) { in ixheaacd_latm_get_value() argument
145 bytes_read = ixheaacd_read_bits_buf(it_bit_buff, 2) + 1; in ixheaacd_latm_get_value()
148 return ixheaacd_read_bits_buf(it_bit_buff, 8 * bytes_read); in ixheaacd_latm_get_value()
150 return (ixheaacd_read_bits_buf(it_bit_buff, 24) << 8) + in ixheaacd_latm_get_value()
151 ixheaacd_read_bits_buf(it_bit_buff, 8); in ixheaacd_latm_get_value()
155 struct ia_bit_buf_struct *it_bit_buff, ixheaacd_latm_struct *latm_element, in ixheaacd_latm_stream_mux_config() argument
166 latm_element->audio_mux_version = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_stream_mux_config()
169 audio_mux_version_a = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_stream_mux_config()
175 tara_buf_fullness = ixheaacd_latm_get_value(it_bit_buff); in ixheaacd_latm_stream_mux_config()
178 ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_stream_mux_config()
180 latm_element->num_sub_frames = ixheaacd_read_bits_buf(it_bit_buff, 6) + 1; in ixheaacd_latm_stream_mux_config()
185 latm_element->num_program = ixheaacd_read_bits_buf(it_bit_buff, 4) + 1; in ixheaacd_latm_stream_mux_config()
190 latm_element->num_layer = ixheaacd_read_bits_buf(it_bit_buff, 3) + 1; in ixheaacd_latm_stream_mux_config()
202 ? ixheaacd_latm_get_value(it_bit_buff) in ixheaacd_latm_stream_mux_config()
204 pos = it_bit_buff->size - it_bit_buff->cnt_bits; in ixheaacd_latm_stream_mux_config()
206 if (asc_len > it_bit_buff->size - 106 || asc_len > 2592 || in ixheaacd_latm_stream_mux_config()
212 aac_state_struct, it_bit_buff->cnt_bits, &bytes_consumed, in ixheaacd_latm_stream_mux_config()
213 sample_rate_info, it_bit_buff))) in ixheaacd_latm_stream_mux_config()
217 asc_len -= (it_bit_buff->size - it_bit_buff->cnt_bits) - pos; in ixheaacd_latm_stream_mux_config()
218 ixheaacd_read_bidirection(it_bit_buff, asc_len); in ixheaacd_latm_stream_mux_config()
228 ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_stream_mux_config()
234 aac_state_struct, it_bit_buff->cnt_bits, &bytes_consumed, in ixheaacd_latm_stream_mux_config()
235 sample_rate_info, it_bit_buff))) in ixheaacd_latm_stream_mux_config()
240 layer_info->frame_len_type = ixheaacd_read_bits_buf(it_bit_buff, 3); in ixheaacd_latm_stream_mux_config()
245 ixheaacd_read_bits_buf(it_bit_buff, 8); in ixheaacd_latm_stream_mux_config()
259 latm_element->other_data_present = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_stream_mux_config()
263 latm_element->other_data_length = ixheaacd_latm_get_value(it_bit_buff); in ixheaacd_latm_stream_mux_config()
268 other_data_len = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_stream_mux_config()
271 ixheaacd_read_bits_buf(it_bit_buff, 8); in ixheaacd_latm_stream_mux_config()
272 if (latm_element->other_data_length > (UWORD32)it_bit_buff->cnt_bits) in ixheaacd_latm_stream_mux_config()
278 latm_element->crc_check_present = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_stream_mux_config()
281 latm_element->crc_check_sum = ixheaacd_read_bits_buf(it_bit_buff, 8); in ixheaacd_latm_stream_mux_config()
290 struct ia_bit_buf_struct *it_bit_buff, ixheaacd_latm_struct *latm_element, in ixheaacd_latm_audio_mux_element() argument
296 ixheaacd_read_bits_buf(it_bit_buff, 13); in ixheaacd_latm_audio_mux_element()
298 latm_element->use_same_stream_mux = ixheaacd_read_bits_buf(it_bit_buff, 1); in ixheaacd_latm_audio_mux_element()
302 it_bit_buff, latm_element, aac_state_struct, sample_rate_info))) { in ixheaacd_latm_audio_mux_element()
309 ixheaacd_latm_payload_length_info(it_bit_buff, latm_element))) { in ixheaacd_latm_audio_mux_element()