Home | History | Annotate | Download | only in decoder

Lines Matching refs:ps_stream

59 void impeg2d_bit_stream_init(stream_t *ps_stream,
70 ps_stream->pv_bs_buf = pu1_byte_buf;
71 ps_stream->u4_offset = 0;
86 ps_stream->u4_offset = 8;
95 ps_stream->u4_offset = 16;
103 ps_stream->u4_offset = 24;
110 ps_stream->u4_offset = 0;
119 ps_stream->u4_buf = u4_temp2;
123 ps_stream->u4_buf_nxt = u4_temp2;
125 ps_stream->pu4_buf_aligned = pu4_word_buf;
128 ps_stream->u4_max_offset = (u4_max_offset << 3) + ps_stream->u4_offset;
147 INLINE UWORD8 impeg2d_bit_stream_get_bit(stream_t *ps_stream)
152 u4_offset = ps_stream->u4_offset;
154 u4_bit = ps_stream->u4_buf;
166 ps_stream->u4_buf = ps_stream->u4_buf_nxt;
168 if (ps_stream->u4_offset < ps_stream->u4_max_offset)
170 u4_temp = *(ps_stream->pu4_buf_aligned)++;
171 CONV_LE_TO_BE(ps_stream->u4_buf_nxt,u4_temp)
174 ps_stream->u4_offset = u4_offset;
193 stream_t *ps_stream = (stream_t *)pv_ctxt;
194 if ((ps_stream->u4_offset + 64) < ps_stream->u4_max_offset)
196 FLUSH_BITS(ps_stream->u4_offset,ps_stream->u4_buf,ps_stream->u4_buf_nxt,u4_no_of_bits,ps_stream->pu4_buf_aligned)
202 if (((ps_stream->u4_offset & 0x1f) + u4_no_of_bits) >= 32)
204 ps_stream->u4_buf = ps_stream->u4_buf_nxt;
205 ps_stream->u4_buf_nxt = 0;
207 ps_stream->u4_offset += u4_no_of_bits;
229 stream_t *ps_stream = (stream_t *)pv_ctxt;
231 u1_bit_offset = (ps_stream->u4_offset) & 0x7;
237 impeg2d_bit_stream_flush(ps_stream,(8 - u1_bit_offset));
264 INLINE UWORD32 impeg2d_bit_stream_nxt( stream_t *ps_stream, WORD32 i4_no_of_bits)
271 u4_offset = ps_stream->u4_offset;
273 u4_bits = ps_stream->u4_buf << u4_bit_ptr;
279 u4_temp = ps_stream->u4_buf_nxt;