• Home
  • Raw
  • Download

Lines Matching refs:it_bit_buff

37 VOID ixheaacd_byte_align(ia_bit_buf_struct *it_bit_buff,  in ixheaacd_byte_align()  argument
40 alignment = (WORD)((*align_bits_cnt - it_bit_buff->cnt_bits) & 0x07); in ixheaacd_byte_align()
43 ixheaacd_read_bits_buf(it_bit_buff, (8 - alignment)); in ixheaacd_byte_align()
46 *align_bits_cnt = it_bit_buff->cnt_bits; in ixheaacd_byte_align()
49 WORD32 ixheaacd_skip_bits_buf(ia_bit_buf_struct *it_bit_buff, WORD no_of_bits) { in ixheaacd_skip_bits_buf() argument
50 UWORD8 *ptr_read_next = it_bit_buff->ptr_read_next; in ixheaacd_skip_bits_buf()
51 WORD bit_pos = it_bit_buff->bit_pos; in ixheaacd_skip_bits_buf()
53 if (it_bit_buff->cnt_bits < no_of_bits) in ixheaacd_skip_bits_buf()
54 longjmp(*(it_bit_buff->xaac_jmp_buf), in ixheaacd_skip_bits_buf()
56 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_skip_bits_buf()
66 it_bit_buff->ptr_read_next = ptr_read_next; in ixheaacd_skip_bits_buf()
67 it_bit_buff->bit_pos = (WORD16)bit_pos; in ixheaacd_skip_bits_buf()
71 WORD32 ixheaacd_show_bits_buf(ia_bit_buf_struct *it_bit_buff, WORD no_of_bits) { in ixheaacd_show_bits_buf() argument
73 UWORD8 *ptr_read_next = it_bit_buff->ptr_read_next; in ixheaacd_show_bits_buf()
74 WORD bit_pos = it_bit_buff->bit_pos; in ixheaacd_show_bits_buf()
76 if (it_bit_buff->cnt_bits < no_of_bits) { in ixheaacd_show_bits_buf()
77 longjmp(*(it_bit_buff->xaac_jmp_buf), in ixheaacd_show_bits_buf()
98 WORD32 ixheaacd_read_bits_buf(ia_bit_buf_struct *it_bit_buff, WORD no_of_bits) { in ixheaacd_read_bits_buf() argument
100 UWORD8 *ptr_read_next = it_bit_buff->ptr_read_next; in ixheaacd_read_bits_buf()
101 WORD bit_pos = it_bit_buff->bit_pos; in ixheaacd_read_bits_buf()
107 if (it_bit_buff->cnt_bits < no_of_bits) { in ixheaacd_read_bits_buf()
108 longjmp(*(it_bit_buff->xaac_jmp_buf), in ixheaacd_read_bits_buf()
112 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_read_bits_buf()
116 if (0 == it_bit_buff->cnt_bits) { in ixheaacd_read_bits_buf()
138 it_bit_buff->ptr_read_next = ptr_read_next; in ixheaacd_read_bits_buf()
139 it_bit_buff->bit_pos = (WORD16)bit_pos; in ixheaacd_read_bits_buf()
200 WORD32 ixheaacd_aac_read_bit(ia_bit_buf_struct *it_bit_buff) { in ixheaacd_aac_read_bit() argument
202 UWORD8 *ptr_read_next = it_bit_buff->ptr_read_next; in ixheaacd_aac_read_bit()
203 WORD bit_pos = it_bit_buff->bit_pos; in ixheaacd_aac_read_bit()
212 if (ptr_read_next < it_bit_buff->ptr_bit_buf_base) { in ixheaacd_aac_read_bit()
213 longjmp(*(it_bit_buff->xaac_jmp_buf), in ixheaacd_aac_read_bit()
217 it_bit_buff->cnt_bits += no_of_bits; in ixheaacd_aac_read_bit()
222 it_bit_buff->ptr_read_next = ptr_read_next; in ixheaacd_aac_read_bit()
223 it_bit_buff->bit_pos = (WORD16)bit_pos; in ixheaacd_aac_read_bit()
228 WORD32 ixheaacd_aac_read_bit_rev(ia_bit_buf_struct *it_bit_buff) { in ixheaacd_aac_read_bit_rev() argument
230 UWORD8 *ptr_read_next = it_bit_buff->ptr_read_next; in ixheaacd_aac_read_bit_rev()
231 WORD bit_pos = it_bit_buff->bit_pos; in ixheaacd_aac_read_bit_rev()
235 if (it_bit_buff->cnt_bits < no_of_bits) { in ixheaacd_aac_read_bit_rev()
236 longjmp(*(it_bit_buff->xaac_jmp_buf), in ixheaacd_aac_read_bit_rev()
245 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_aac_read_bit_rev()
250 it_bit_buff->ptr_read_next = ptr_read_next; in ixheaacd_aac_read_bit_rev()
251 it_bit_buff->bit_pos = (WORD16)bit_pos; in ixheaacd_aac_read_bit_rev()
256 VOID ixheaacd_write_bit(ia_bit_buf_struct *it_bit_buff, WORD32 value, in ixheaacd_write_bit() argument
267 it_bit_buff->bit_count += no_of_bits; in ixheaacd_write_bit()
270 while (no_of_bits > 0 && it_bit_buff->valid_bits < 8) { in ixheaacd_write_bit()
271 it_bit_buff->byte <<= 1; in ixheaacd_write_bit()
272 if (value & mask) it_bit_buff->byte |= 0x1; in ixheaacd_write_bit()
275 it_bit_buff->valid_bits++; in ixheaacd_write_bit()
277 if (it_bit_buff->valid_bits == 8) { in ixheaacd_write_bit()
278 *it_bit_buff->byte_ptr++ = it_bit_buff->byte; in ixheaacd_write_bit()
279 it_bit_buff->byte = 0; in ixheaacd_write_bit()
280 it_bit_buff->valid_bits = 0; in ixheaacd_write_bit()
285 WORD32 ixheaacd_read_bit(ia_bit_buf_struct *it_bit_buff, WORD32 no_of_bits) { in ixheaacd_read_bit() argument
287 UWORD8 *ptr_read_next = it_bit_buff->byte_ptr; in ixheaacd_read_bit()
294 ixheaacd_aac_showbits_32(ptr_read_next, it_bit_buff->bit_count, NULL); in ixheaacd_read_bit()
295 it_bit_buff->byte_ptr += (no_of_bits >> 3); in ixheaacd_read_bit()
297 if (it_bit_buff->valid_bits != 8) { in ixheaacd_read_bit()
298 UWORD8 *v = it_bit_buff->byte_ptr; in ixheaacd_read_bit()
299 ret_val = (ret_val << (8 - it_bit_buff->valid_bits)) | in ixheaacd_read_bit()
300 (*v >> it_bit_buff->valid_bits); in ixheaacd_read_bit()
303 it_bit_buff->valid_bits -= (no_of_bits % 8); in ixheaacd_read_bit()