Lines Matching defs:ps_bitstrm

79 *  @param[in]   ps_bitstrm
95 IH264E_ERROR_T ih264e_bitstrm_init(bitstrm_t *ps_bitstrm,
99 ps_bitstrm->pu1_strm_buffer = pu1_bitstrm_buf;
100 ps_bitstrm->u4_max_strm_size = u4_max_bitstrm_size;
103 ps_bitstrm->u4_strm_buf_offset = 0;
104 ps_bitstrm->u4_cur_word = 0;
105 ps_bitstrm->i4_bits_left_in_cw = WORD_SIZE;
106 ps_bitstrm->i4_zero_bytes_run = 0;
123 * @param[in] ps_bitstrm
140 IH264E_ERROR_T ih264e_put_bits(bitstrm_t *ps_bitstrm,
144 UWORD32 u4_cur_word = ps_bitstrm->u4_cur_word;
145 WORD32 bits_left_in_cw = ps_bitstrm->i4_bits_left_in_cw;
157 ASSERT(ps_bitstrm->i4_zero_bytes_run <= EPB_ZERO_BYTES);
159 ASSERT(ps_bitstrm->pu1_strm_buffer != NULL);
171 ps_bitstrm->u4_cur_word = u4_cur_word;
172 ps_bitstrm->i4_bits_left_in_cw = bits_left_in_cw;
185 UWORD32 u4_strm_buf_offset = ps_bitstrm->u4_strm_buf_offset;
187 UWORD32 u4_max_strm_size = ps_bitstrm->u4_max_strm_size;
189 WORD32 zero_run = ps_bitstrm->i4_zero_bytes_run;
191 UWORD8* pu1_strm_buf = ps_bitstrm->pu1_strm_buffer;
221 ps_bitstrm->u4_cur_word = u4_cur_word;
222 ps_bitstrm->i4_bits_left_in_cw = WORD_SIZE - rem_bits;
223 ps_bitstrm->i4_zero_bytes_run = zero_run;
224 ps_bitstrm->u4_strm_buf_offset = u4_strm_buf_offset;
241 * @param[in] ps_bitstrm
254 IH264E_ERROR_T ih264e_put_bit(bitstrm_t *ps_bitstrm, UWORD32 u4_code_val)
257 return(ih264e_put_bits(ps_bitstrm, u4_code_val, 1));
271 * @param[in] ps_bitstrm
278 IH264E_ERROR_T ih264e_put_rbsp_trailing_bits(bitstrm_t *ps_bitstrm)
281 UWORD32 u4_cur_word = ps_bitstrm->u4_cur_word;
282 WORD32 bits_left_in_cw = ps_bitstrm->i4_bits_left_in_cw;
285 UWORD32 u4_strm_buf_offset = ps_bitstrm->u4_strm_buf_offset;
286 UWORD32 u4_max_strm_size = ps_bitstrm->u4_max_strm_size;
287 WORD32 zero_run = ps_bitstrm->i4_zero_bytes_run;
288 UWORD8* pu1_strm_buf = ps_bitstrm->pu1_strm_buffer;
316 ps_bitstrm->u4_strm_buf_offset = u4_strm_buf_offset;
319 ps_bitstrm->u4_cur_word = 0;
320 ps_bitstrm->i4_bits_left_in_cw = WORD_SIZE;
321 ps_bitstrm->i4_zero_bytes_run = 0;
335 * @param[in] ps_bitstrm
347 IH264E_ERROR_T ih264e_put_uev(bitstrm_t *ps_bitstrm, UWORD32 u4_code_num)
358 e_error = ih264e_put_bits(ps_bitstrm, u4_bit_str, (2 * u4_range - 1));
372 * @param[in] ps_bitstrm
384 IH264E_ERROR_T ih264e_put_sev(bitstrm_t *ps_bitstrm, WORD32 syntax_elem)
410 e_error = ih264e_put_bits(ps_bitstrm, u4_bit_str, (2 * u4_range - 1));
427 * @param[in] ps_bitstrm
437 IH264E_ERROR_T ih264e_put_nal_start_code_prefix(bitstrm_t *ps_bitstrm,
440 UWORD32 u4_strm_buf_offset = ps_bitstrm->u4_strm_buf_offset;
441 UWORD8* pu1_strm_buf = ps_bitstrm->pu1_strm_buffer;
444 if((u4_strm_buf_offset + 4) >= ps_bitstrm->u4_max_strm_size)
467 ps_bitstrm->u4_strm_buf_offset = u4_strm_buf_offset;