Lines Matching refs:no_of_bits
49 WORD32 ixheaacd_skip_bits_buf(ia_bit_buf_struct *it_bit_buff, WORD no_of_bits) { in ixheaacd_skip_bits_buf() argument
53 if (it_bit_buff->cnt_bits < no_of_bits) in ixheaacd_skip_bits_buf()
56 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_skip_bits_buf()
58 ptr_read_next += no_of_bits / 8; in ixheaacd_skip_bits_buf()
59 bit_pos -= (no_of_bits % 8); in ixheaacd_skip_bits_buf()
68 return no_of_bits; 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
76 if (it_bit_buff->cnt_bits < no_of_bits) { in ixheaacd_show_bits_buf()
83 bit_pos -= no_of_bits; in ixheaacd_show_bits_buf()
93 ret_val = ret_val << ((31 - no_of_bits) - bit_pos) >> (32 - no_of_bits); 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
103 if (no_of_bits == 0) { in ixheaacd_read_bits_buf()
107 if (it_bit_buff->cnt_bits < no_of_bits) { in ixheaacd_read_bits_buf()
112 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_read_bits_buf()
115 bit_pos -= no_of_bits; in ixheaacd_read_bits_buf()
137 ret_val = ret_val << ((31 - no_of_bits) - bit_pos) >> (32 - no_of_bits); in ixheaacd_read_bits_buf()
205 WORD no_of_bits = 1; in ixheaacd_aac_read_bit() local
217 it_bit_buff->cnt_bits += no_of_bits; in ixheaacd_aac_read_bit()
219 bit_pos -= no_of_bits; in ixheaacd_aac_read_bit()
221 temp = (ret_val << 24) << (bit_pos + no_of_bits); in ixheaacd_aac_read_bit()
225 return temp >> (32 - no_of_bits); in ixheaacd_aac_read_bit()
233 WORD no_of_bits = 1; in ixheaacd_aac_read_bit_rev() local
235 if (it_bit_buff->cnt_bits < no_of_bits) { in ixheaacd_aac_read_bit_rev()
245 it_bit_buff->cnt_bits -= no_of_bits; in ixheaacd_aac_read_bit_rev()
247 bit_pos += no_of_bits; in ixheaacd_aac_read_bit_rev()
249 temp = (ret_val << 24) << (bit_pos - no_of_bits); in ixheaacd_aac_read_bit_rev()
253 return temp >> (32 - no_of_bits); in ixheaacd_aac_read_bit_rev()
257 WORD32 no_of_bits) in ixheaacd_write_bit() argument
262 if (no_of_bits == 0) return; in ixheaacd_write_bit()
265 mask <<= no_of_bits - 1; in ixheaacd_write_bit()
267 it_bit_buff->bit_count += no_of_bits; in ixheaacd_write_bit()
269 while (no_of_bits > 0) { in ixheaacd_write_bit()
270 while (no_of_bits > 0 && it_bit_buff->valid_bits < 8) { in ixheaacd_write_bit()
274 no_of_bits--; 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
289 if (no_of_bits == 0) { in ixheaacd_read_bit()
295 it_bit_buff->byte_ptr += (no_of_bits >> 3); in ixheaacd_read_bit()
303 it_bit_buff->valid_bits -= (no_of_bits % 8); in ixheaacd_read_bit()
305 ret_val = ret_val >> (32 - no_of_bits); in ixheaacd_read_bit()