Lines Matching refs:it_bit_buff
84 ixheaacd_aac_showbits_7(ia_bit_buf_struct *it_bit_buff) { in ixheaacd_aac_showbits_7() argument
85 UWORD8 *v = it_bit_buff->ptr_read_next; in ixheaacd_aac_showbits_7()
89 if (it_bit_buff->bit_pos < 6) { in ixheaacd_aac_showbits_7()
92 x = (UWORD32)b << (15 + 8 - it_bit_buff->bit_pos); in ixheaacd_aac_showbits_7()
166 VOID ixheaacd_read_data_stream_element(ia_bit_buf_struct *it_bit_buff, in ixheaacd_read_data_stream_element() argument
170 WORD32 count = ixheaacd_read_bits_buf(it_bit_buff, 13); in ixheaacd_read_data_stream_element()
175 cnt += ixheaacd_read_bits_buf(it_bit_buff, 8); in ixheaacd_read_data_stream_element()
179 ixheaacd_byte_align(it_bit_buff, byte_align_bits); in ixheaacd_read_data_stream_element()
183 memcpy(&temp_bs, it_bit_buff, sizeof(ia_bit_buf_struct)); in ixheaacd_read_data_stream_element()
214 if (it_bit_buff->cnt_bits < (cnt << 3)) { in ixheaacd_read_data_stream_element()
215 longjmp(*(it_bit_buff->xaac_jmp_buf), in ixheaacd_read_data_stream_element()
218 it_bit_buff->ptr_read_next += cnt; in ixheaacd_read_data_stream_element()
219 it_bit_buff->cnt_bits -= ((cnt) << 3); in ixheaacd_read_data_stream_element()
223 VOID ixheaacd_read_fill_element(ia_bit_buf_struct *it_bit_buff, in ixheaacd_read_fill_element() argument
227 count = ixheaacd_read_bits_buf(it_bit_buff, 4); in ixheaacd_read_fill_element()
230 count = ixheaacd_read_bits_buf(it_bit_buff, 8); in ixheaacd_read_fill_element()
237 extension_type = ixheaacd_read_bits_buf(it_bit_buff, 4); in ixheaacd_read_fill_element()
242 ixheaacd_dec_drc_read_element(ptr_drc_dec, drc_dummy, it_bit_buff); in ixheaacd_read_fill_element()
245 ixheaacd_read_bits_buf(it_bit_buff, 4); in ixheaacd_read_fill_element()
247 if (it_bit_buff->cnt_bits < ((count - 1) << 3)) { in ixheaacd_read_fill_element()
248 longjmp(*(it_bit_buff->xaac_jmp_buf), in ixheaacd_read_fill_element()
251 it_bit_buff->ptr_read_next += count - 1; in ixheaacd_read_fill_element()
252 it_bit_buff->cnt_bits -= ((count - 1) << 3); in ixheaacd_read_fill_element()
267 ia_bit_buf_struct *it_bit_buff = p_state_enhaacplus_dec->ptr_bit_stream; in ixheaacd_get_element_index_tag() local
278 ixheaacd_byte_align(it_bit_buff, &aac_dec_handle->byte_align_bits); in ixheaacd_get_element_index_tag()
283 aac_dec_handle->byte_align_bits = it_bit_buff->cnt_bits; in ixheaacd_get_element_index_tag()
287 if (it_bit_buff->cnt_bits < 3) { in ixheaacd_get_element_index_tag()
288 it_bit_buff->cnt_bits = -1; in ixheaacd_get_element_index_tag()
293 element_tag = (WORD)ixheaacd_read_bits_buf(it_bit_buff, 7); in ixheaacd_get_element_index_tag()
294 ixheaacd_read_bidirection(it_bit_buff, -7); in ixheaacd_get_element_index_tag()
300 it_bit_buff->bit_pos; in ixheaacd_get_element_index_tag()
303 WORD type = (WORD)ixheaacd_read_bits_buf(it_bit_buff, 3); in ixheaacd_get_element_index_tag()
305 if (it_bit_buff->cnt_bits < 3) { in ixheaacd_get_element_index_tag()
306 it_bit_buff->cnt_bits = -1; in ixheaacd_get_element_index_tag()
313 it_bit_buff, &aac_dec_handle->byte_align_bits, pstr_drc_dec); in ixheaacd_get_element_index_tag()
318 it_bit_buff, &p_obj_enhaacplus_dec->aac_config.ui_pce_found_in_hdr, in ixheaacd_get_element_index_tag()
326 ixheaacd_read_fill_element(it_bit_buff, drc_dummy, pstr_drc_dec); in ixheaacd_get_element_index_tag()
329 if (it_bit_buff->cnt_bits < 7) { in ixheaacd_get_element_index_tag()
330 it_bit_buff->cnt_bits = -1; in ixheaacd_get_element_index_tag()
335 element_tag = (WORD)ixheaacd_aac_showbits_7(it_bit_buff); in ixheaacd_get_element_index_tag()
361 if (it_bit_buff->cnt_bits < 0) { in ixheaacd_get_element_index_tag()
367 it_bit_buff, (WORD16)(it_bit_buff->cnt_bits - it_bit_buff->size)); in ixheaacd_get_element_index_tag()