Lines Matching refs:it_bit_buff
127 ia_bit_buf_struct *ixheaacd_create_bit_buf(ia_bit_buf_struct *it_bit_buff, in ixheaacd_create_bit_buf() argument
130 it_bit_buff->ptr_bit_buf_base = ptr_bit_buf_base; in ixheaacd_create_bit_buf()
131 it_bit_buff->ptr_bit_buf_end = ptr_bit_buf_base + bit_buf_size - 1; in ixheaacd_create_bit_buf()
133 it_bit_buff->ptr_read_next = ptr_bit_buf_base; in ixheaacd_create_bit_buf()
134 it_bit_buff->bit_pos = 7; in ixheaacd_create_bit_buf()
136 it_bit_buff->cnt_bits = 0; in ixheaacd_create_bit_buf()
137 it_bit_buff->size = bit_buf_size << 3; in ixheaacd_create_bit_buf()
139 it_bit_buff->adts_header_present = 0; in ixheaacd_create_bit_buf()
140 it_bit_buff->protection_absent = 0; in ixheaacd_create_bit_buf()
141 it_bit_buff->pstr_adts_crc_info = &it_bit_buff->str_adts_crc_info; in ixheaacd_create_bit_buf()
143 it_bit_buff->max_size = it_bit_buff->size; in ixheaacd_create_bit_buf()
145 ixheaacd_adts_crc_open(it_bit_buff->pstr_adts_crc_info); in ixheaacd_create_bit_buf()
147 return it_bit_buff; in ixheaacd_create_bit_buf()
150 ia_bit_buf_struct *ixheaacd_create_init_bit_buf(ia_bit_buf_struct *it_bit_buff, in ixheaacd_create_init_bit_buf() argument
153 ixheaacd_create_bit_buf(it_bit_buff, ptr_bit_buf_base, bit_buf_size); in ixheaacd_create_init_bit_buf()
154 it_bit_buff->cnt_bits = (bit_buf_size << 3); in ixheaacd_create_init_bit_buf()
155 return (it_bit_buff); in ixheaacd_create_init_bit_buf()
158 VOID ixheaacd_read_bidirection(ia_bit_buf_struct *it_bit_buff, in ixheaacd_read_bidirection() argument
163 it_bit_buff->cnt_bits = it_bit_buff->cnt_bits - ixheaacd_drc_offset; in ixheaacd_read_bidirection()
164 it_bit_buff->bit_pos = it_bit_buff->bit_pos - ixheaacd_drc_offset; in ixheaacd_read_bidirection()
165 bit_offset = it_bit_buff->bit_pos >> 3; in ixheaacd_read_bidirection()
166 it_bit_buff->bit_pos = it_bit_buff->bit_pos - (bit_offset << 3); in ixheaacd_read_bidirection()
172 ptr_read_next = it_bit_buff->ptr_read_next; in ixheaacd_read_bidirection()
176 temp = it_bit_buff->ptr_bit_buf_end - it_bit_buff->ptr_bit_buf_base + 1; in ixheaacd_read_bidirection()
178 if (ptr_read_next > it_bit_buff->ptr_bit_buf_end) { in ixheaacd_read_bidirection()
182 if (ptr_read_next < it_bit_buff->ptr_bit_buf_base) { in ixheaacd_read_bidirection()
186 it_bit_buff->ptr_read_next = ptr_read_next; in ixheaacd_read_bidirection()