Home
last modified time | relevance | path

Searched refs:ps_stream (Results 1 – 13 of 13) sorted by relevance

/external/libmpeg2/decoder/
Dimpeg2d_bitstream.c59 void impeg2d_bit_stream_init(stream_t *ps_stream, in impeg2d_bit_stream_init() argument
70 ps_stream->pv_bs_buf = pu1_byte_buf; in impeg2d_bit_stream_init()
71 ps_stream->u4_offset = 0; in impeg2d_bit_stream_init()
86 ps_stream->u4_offset = 8; in impeg2d_bit_stream_init()
95 ps_stream->u4_offset = 16; in impeg2d_bit_stream_init()
103 ps_stream->u4_offset = 24; in impeg2d_bit_stream_init()
110 ps_stream->u4_offset = 0; in impeg2d_bit_stream_init()
119 ps_stream->u4_buf = u4_temp2; in impeg2d_bit_stream_init()
123 ps_stream->u4_buf_nxt = u4_temp2; in impeg2d_bit_stream_init()
125 ps_stream->pu4_buf_aligned = pu4_word_buf; in impeg2d_bit_stream_init()
[all …]
Dimpeg2d_dec_hdr.c60 stream_t *ps_stream; in impeg2d_next_start_code() local
61 ps_stream = &ps_dec->s_bit_stream; in impeg2d_next_start_code()
62 impeg2d_bit_stream_flush_to_byte_boundary(ps_stream); in impeg2d_next_start_code()
64 while ((impeg2d_bit_stream_nxt(ps_stream,START_CODE_PREFIX_LEN) != START_CODE_PREFIX) in impeg2d_next_start_code()
67 impeg2d_bit_stream_get(ps_stream,8); in impeg2d_next_start_code()
83 stream_t *ps_stream; in impeg2d_next_code() local
84 ps_stream = &ps_dec->s_bit_stream; in impeg2d_next_code()
85 impeg2d_bit_stream_flush_to_byte_boundary(ps_stream); in impeg2d_next_code()
87 while ((impeg2d_bit_stream_nxt(ps_stream,START_CODE_LEN) != u4_start_code_val) && in impeg2d_next_code()
91 if (impeg2d_bit_stream_get(ps_stream,8) != 0) in impeg2d_next_code()
[all …]
Dimpeg2d_d_pic.c66 WORD16 impeg2d_get_luma_dc_diff(stream_t *ps_stream) in impeg2d_get_luma_dc_diff() argument
71 u2_dc_size = impeg2d_dec_vld_symbol(ps_stream,gai2_impeg2d_dct_dc_size[0], in impeg2d_get_luma_dc_diff()
76 i2_dc_diff = impeg2d_bit_stream_get(ps_stream,u2_dc_size); in impeg2d_get_luma_dc_diff()
112 WORD16 impeg2d_get_chroma_dc_diff(stream_t *ps_stream) in impeg2d_get_chroma_dc_diff() argument
116 u2_dc_size = impeg2d_dec_vld_symbol(ps_stream,gai2_impeg2d_dct_dc_size[1], in impeg2d_get_chroma_dc_diff()
121 i2_dc_diff = impeg2d_bit_stream_get(ps_stream,u2_dc_size); in impeg2d_get_chroma_dc_diff()
146 stream_t *ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_d_slice() local
175 while(impeg2d_bit_stream_nxt(ps_stream,MB_STUFFING_CODE_LEN) == MB_STUFFING_CODE && in impeg2d_dec_d_slice()
176 ps_stream->u4_offset < ps_stream->u4_max_offset) in impeg2d_dec_d_slice()
177 impeg2d_bit_stream_flush(ps_stream,MB_STUFFING_CODE_LEN); in impeg2d_dec_d_slice()
[all …]
Dimpeg2d_mv_dec.c63 INLINE void impeg2d_dec_1mv(stream_t *ps_stream, WORD16 ai2_pred_mv[], WORD16 ai2_mv[],UWORD16 au2_… in impeg2d_dec_1mv() argument
83 GET_TEMP_STREAM_DATA(u4_buf,u4_buf_nxt,u4_offset,pu4_buf_aligned,ps_stream) in impeg2d_dec_1mv()
159 PUT_TEMP_STREAM_DATA(u4_buf, u4_buf_nxt, u4_offset, pu4_buf_aligned, ps_stream) in impeg2d_dec_1mv()
177 e_field_t impeg2d_dec_mv(stream_t *ps_stream, WORD16 ai2_pred_mv[], WORD16 ai2_mv[],UWORD16 au2_f_c… in impeg2d_dec_mv() argument
183 e_fld = (e_field_t)impeg2d_bit_stream_get_bit(ps_stream); in impeg2d_dec_mv()
190 impeg2d_dec_1mv(ps_stream,ai2_pred_mv,ai2_mv,au2_f_code,u2_shift,NULL); in impeg2d_dec_mv()
207 stream_t *ps_stream; in impeg2d_dec_1mv_mb() local
214 ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_1mv_mb()
220 e_fld = impeg2d_dec_mv(ps_stream,ps_dec->ai2_pred_mv[e_ref_pic][FIRST],pi2_mv, in impeg2d_dec_1mv_mb()
247 stream_t *ps_stream; in impeg2d_dec_2mv_fw_or_bk_mb() local
[all …]
Dimpeg2d_i_pic.c62 stream_t *ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_i_mb_params() local
72 if(impeg2d_bit_stream_nxt(ps_stream,1) == 1) //Making sure the increment is one. in impeg2d_dec_i_mb_params()
74 impeg2d_bit_stream_flush(ps_stream,1); in impeg2d_dec_i_mb_params()
78 WORD32 i4_mb_add_inc = impeg2d_get_mb_addr_incr(ps_stream); in impeg2d_dec_i_mb_params()
102 u2_next_bits = impeg2d_bit_stream_nxt(ps_stream,8); in impeg2d_dec_i_mb_params()
140 impeg2d_bit_stream_flush(ps_stream,u2_bits_to_flush); in impeg2d_dec_i_mb_params()
147 impeg2d_bit_stream_flush(ps_stream,1); in impeg2d_dec_i_mb_params()
148 impeg2d_dec_mv(ps_stream,ps_dec->ai2_pred_mv[FORW][FIRST],ps_dec->ai2_mv[FORW][FIRST], in impeg2d_dec_i_mb_params()
152 if(0 == (impeg2d_bit_stream_get(ps_stream,1))) in impeg2d_dec_i_mb_params()
Dimpeg2d_pnb_pic.c65 stream_t *ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_p_mb_params() local
72 if(impeg2d_bit_stream_nxt(ps_stream,1) == 1) in impeg2d_dec_p_mb_params()
74 impeg2d_bit_stream_flush(ps_stream,1); in impeg2d_dec_p_mb_params()
79 u2_mb_addr_incr = impeg2d_get_mb_addr_incr(ps_stream); in impeg2d_dec_p_mb_params()
113 u4_next_word = (UWORD16)impeg2d_bit_stream_nxt(ps_stream,16); in impeg2d_dec_p_mb_params()
168 impeg2d_bit_stream_flush(ps_stream,u2_total_len); in impeg2d_dec_p_mb_params()
219 cbpValue = gau2_impeg2d_cbp_code[impeg2d_bit_stream_nxt(ps_stream,MB_CBP_LEN)]; in impeg2d_dec_p_mb_params()
221 impeg2d_bit_stream_flush(ps_stream,(cbpValue >> 8) & 0x0FF); in impeg2d_dec_p_mb_params()
245 stream_t *ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_pnb_mb_params() local
252 if(impeg2d_bit_stream_nxt(ps_stream,1) == 1) in impeg2d_dec_pnb_mb_params()
[all …]
Dimpeg2d_vld.c59 WORD16 impeg2d_dec_vld_symbol(stream_t *ps_stream,const WORD16 ai2_code_table[][2], UWORD16 u2_max… in impeg2d_dec_vld_symbol() argument
67 u2_data = impeg2d_bit_stream_nxt(ps_stream,u2_max_len); in impeg2d_dec_vld_symbol()
79 impeg2d_bit_stream_flush(ps_stream,(UWORD8)(u2_org_max_len - u2_max_len)); in impeg2d_dec_vld_symbol()
96 WORD16 impeg2d_fast_dec_vld_symbol(stream_t *ps_stream, in impeg2d_fast_dec_vld_symbol() argument
111 u2_huffCode = impeg2d_bit_stream_nxt(ps_stream,u2_max_len); in impeg2d_fast_dec_vld_symbol()
129 impeg2d_bit_stream_flush(ps_stream,u2_len); in impeg2d_fast_dec_vld_symbol()
146 UWORD16 impeg2d_dec_ac_coeff_zero(stream_t *ps_stream, UWORD16* pu2_sym_len, UWORD16* pu2_sym_val) in impeg2d_dec_ac_coeff_zero() argument
152 u4_bits_read = (UWORD16)impeg2d_bit_stream_nxt(ps_stream,MPEG2_AC_COEFF_MAX_LEN); in impeg2d_dec_ac_coeff_zero()
222 UWORD16 impeg2d_dec_ac_coeff_one(stream_t *ps_stream, UWORD16* pu2_sym_len, UWORD16* pu2_sym_val) in impeg2d_dec_ac_coeff_one() argument
229 u4_bits_read = (UWORD16)impeg2d_bit_stream_nxt(ps_stream,MPEG2_AC_COEFF_MAX_LEN); in impeg2d_dec_ac_coeff_one()
[all …]
Dimpeg2d_decoder.c174 stream_t *ps_stream; in impeg2d_dec_frm() local
186 ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_frm()
189 impeg2d_bit_stream_init(ps_stream,ps_ip->s_ivd_video_decode_ip_t.pv_stream_buffer,u4_size); in impeg2d_dec_frm()
Dimpeg2d_pic_proc.c223 UWORD16 impeg2d_get_mb_addr_incr(stream_t *ps_stream) in impeg2d_get_mb_addr_incr() argument
226 while (impeg2d_bit_stream_nxt(ps_stream,MB_ESCAPE_CODE_LEN) == MB_ESCAPE_CODE && in impeg2d_get_mb_addr_incr()
227 ps_stream->u4_offset < ps_stream->u4_max_offset) in impeg2d_get_mb_addr_incr()
229 impeg2d_bit_stream_flush(ps_stream,MB_ESCAPE_CODE_LEN); in impeg2d_get_mb_addr_incr()
232 … u2_mb_addr_incr += impeg2d_dec_vld_symbol(ps_stream,gai2_impeg2d_mb_addr_incr,MB_ADDR_INCR_LEN) + in impeg2d_get_mb_addr_incr()
Dimpeg2d_mc.c447 stream_t *ps_stream; in impeg2d_dec_intra_mb() local
449 ps_stream = &ps_dec->s_bit_stream; in impeg2d_dec_intra_mb()
451 impeg2d_dec_mv(ps_stream,ps_dec->ai2_pred_mv[FORW][FIRST],ps_dec->ai2_mv[FORW][FIRST], in impeg2d_dec_intra_mb()
460 if(0 == (impeg2d_bit_stream_get(ps_stream,1))) in impeg2d_dec_intra_mb()
/external/libavc/encoder/
Dih264e_cabac.c249 bitstrm_t *ps_stream = ps_cabac_ctxt->ps_bitstrm; in ih264e_cabac_flush() local
253 UWORD8 *pu1_strm_buf = ps_stream->pu1_strm_buffer; in ih264e_cabac_flush()
254 UWORD32 u4_strm_buf_offset = ps_stream->u4_strm_buf_offset; in ih264e_cabac_flush()
255 WORD32 zero_run = ps_stream->i4_zero_bytes_run; in ih264e_cabac_flush()
321 ps_stream->u4_strm_buf_offset = u4_strm_buf_offset; in ih264e_cabac_flush()
322 ps_stream->i4_zero_bytes_run = 0; in ih264e_cabac_flush()
324 ps_stream->u4_cur_word = 0; in ih264e_cabac_flush()
325 ps_stream->i4_bits_left_in_cw = WORD_SIZE; in ih264e_cabac_flush()
356 bitstrm_t *ps_stream = ps_cabac_ctxt->ps_bitstrm; in ih264e_cabac_put_byte() local
390 UWORD8 *pu1_strm_buf = ps_stream->pu1_strm_buffer; in ih264e_cabac_put_byte()
[all …]
/external/libavc/decoder/
Dih264d_bitstrm.c63 UWORD8 ih264d_get_bit_h264(dec_bit_stream_t *ps_stream) in ih264d_get_bit_h264() argument
67 GETBIT(u4_code, ps_stream->u4_ofst, ps_stream->pu4_buffer); in ih264d_get_bit_h264()
Dih264d_cabac.c314 dec_bit_stream_t * ps_stream) in ih264d_decode_terminate() argument
334 ps_stream->u4_ofst += u4_clz; in ih264d_decode_terminate()
348 pu4_buffer = ps_stream->pu4_buffer; in ih264d_decode_terminate()
349 u4_offset = ps_stream->u4_ofst; in ih264d_decode_terminate()
353 ps_stream->u4_ofst = u4_offset; in ih264d_decode_terminate()