Home | History | Annotate | Download | only in decoder

Lines Matching refs:ps_bitstrm

86 * @param[in] ps_bitstrm
105 void ihevcd_bits_init(bitstrm_t *ps_bitstrm,
120 ps_bitstrm->u4_bit_ofst = 0;
121 ps_bitstrm->pu1_buf_base = pu1_buf;
122 ps_bitstrm->pu4_buf = pu4_buf;
123 ps_bitstrm->u4_cur_word = u4_cur_word;
124 ps_bitstrm->u4_nxt_word = u4_nxt_word;
126 ps_bitstrm->pu1_buf_max = pu1_buf + u4_numbytes + 8;
142 * @param[in] ps_bitstrm
155 void ihevcd_bits_flush(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits)
158 BITS_FLUSH(ps_bitstrm->pu4_buf,
159 ps_bitstrm->u4_bit_ofst,
160 ps_bitstrm->u4_cur_word,
161 ps_bitstrm->u4_nxt_word,
177 * @param[in] ps_bitstrm
187 void ihevcd_bits_flush_to_byte_boundary(bitstrm_t *ps_bitstrm)
190 u4_numbits = (ps_bitstrm->u4_bit_ofst) & 7;
194 BITS_FLUSH(ps_bitstrm->pu4_buf,
195 ps_bitstrm->u4_bit_ofst,
196 ps_bitstrm->u4_cur_word,
197 ps_bitstrm->u4_nxt_word,
213 * @param[in] ps_bitstrm
227 void ihevcd_bits_seek(bitstrm_t *ps_bitstrm, WORD32 numbits)
236 if(ps_bitstrm->u4_bit_ofst >= abs_numbits)
241 ps_bitstrm->u4_bit_ofst -= abs_numbits;
250 ps_bitstrm->u4_bit_ofst -= abs_numbits;
251 ps_bitstrm->u4_bit_ofst += 32;
252 ps_bitstrm->pu4_buf--;
254 val = *(ps_bitstrm->pu4_buf - 2);
255 ps_bitstrm->u4_nxt_word = ps_bitstrm->u4_cur_word;
256 ps_bitstrm->u4_cur_word = ITT_BIG_ENDIAN(val);
264 BITS_FLUSH(ps_bitstrm->pu4_buf,
265 ps_bitstrm->u4_bit_ofst,
266 ps_bitstrm->u4_cur_word,
267 ps_bitstrm->u4_nxt_word,
285 * @param[in] ps_bitstrm
298 UWORD32 ihevcd_bits_nxt(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits)
303 ps_bitstrm->pu4_buf,
304 ps_bitstrm->u4_bit_ofst,
305 ps_bitstrm->u4_cur_word,
306 ps_bitstrm->u4_nxt_word,
321 * @param[in] ps_bitstrm
334 UWORD32 ihevcd_bits_nxt32(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits)
339 ps_bitstrm->pu4_buf,
340 ps_bitstrm->u4_bit_ofst,
341 ps_bitstrm->u4_cur_word,
342 ps_bitstrm->u4_nxt_word);
357 * @param[in] ps_bitstrm
370 UWORD32 ihevcd_bits_get(bitstrm_t *ps_bitstrm, UWORD32 u4_numbits)
375 ps_bitstrm->pu4_buf,
376 ps_bitstrm->u4_bit_ofst,
377 ps_bitstrm->u4_cur_word,
378 ps_bitstrm->u4_nxt_word,
395 * @param[in] ps_bitstrm
405 UWORD32 ihevcd_bits_num_bits_remaining(bitstrm_t *ps_bitstrm)
412 u4_bits_consumed = (UWORD32)(((UWORD8 *)ps_bitstrm->pu4_buf -
413 (UWORD8 *)ps_bitstrm->pu1_buf_base - 8) <<
414 3) + ps_bitstrm->u4_bit_ofst;
416 u4_size_in_bits = (UWORD32)(ps_bitstrm->pu1_buf_max -
417 ps_bitstrm->pu1_buf_base);
432 * @param[in] ps_bitstrm
442 UWORD32 ihevcd_bits_num_bits_consumed(bitstrm_t *ps_bitstrm)
448 u4_bits_consumed = (UWORD32)(((UWORD8 *)ps_bitstrm->pu4_buf -
449 (UWORD8 *)ps_bitstrm->pu1_buf_base - 8) <<
450 3) + ps_bitstrm->u4_bit_ofst;
465 * @param[in] ps_bitstrm
475 UWORD32 ihevcd_uev(bitstrm_t *ps_bitstrm)
485 ps_bitstrm->pu4_buf,
486 ps_bitstrm->u4_bit_ofst,
487 ps_bitstrm->u4_cur_word,
488 ps_bitstrm->u4_nxt_word);
493 BITS_FLUSH(ps_bitstrm->pu4_buf,
494 ps_bitstrm->u4_bit_ofst,
495 ps_bitstrm->u4_cur_word,
496 ps_bitstrm->u4_nxt_word,
503 ps_bitstrm->pu4_buf,
504 ps_bitstrm->u4_bit_ofst,
505 ps_bitstrm->u4_cur_word,
506 ps_bitstrm->u4_nxt_word,
524 * @param[in] ps_bitstrm
534 WORD32 ihevcd_sev(bitstrm_t *ps_bitstrm)
545 ps_bitstrm->pu4_buf,
546 ps_bitstrm->u4_bit_ofst,
547 ps_bitstrm->u4_cur_word,
548 ps_bitstrm->u4_nxt_word);
553 BITS_FLUSH(ps_bitstrm->pu4_buf,
554 ps_bitstrm->u4_bit_ofst,
555 ps_bitstrm->u4_cur_word,
556 ps_bitstrm->u4_nxt_word,
563 ps_bitstrm->pu4_buf,
564 ps_bitstrm->u4_bit_ofst,
565 ps_bitstrm->u4_cur_word,
566 ps_bitstrm->u4_nxt_word,