Lines Matching defs:nbits

193 PV_STATUS BitstreamShowBits32(BitstreamDecVideo *stream, int nbits, uint32 *code)
197 if (stream->incnt < nbits)
202 *code = stream->curr_word >> (32 - nbits);
211 /* Purpose: To see the next "nbits"(nbits<=16) bitstream bits */
215 PV_STATUS BitstreamShowBits16(BitstreamDecVideo *stream, int nbits, uint *code)
220 if (stream->incnt < nbits)
226 *code = stream->curr_word >> (32 - nbits);
270 uint BitstreamReadBits16_INLINE(BitstreamDecVideo *stream, int nbits)
275 if (stream->incnt < nbits)
280 code = stream->curr_word >> (32 - nbits);
281 PV_BitstreamFlushBits(stream, nbits);
307 /* Purpose : Read bits (nbits <=16) from bitstream buffer. */
311 uint BitstreamReadBits16(BitstreamDecVideo *stream, int nbits)
315 if (stream->incnt < nbits)
320 code = stream->curr_word >> (32 - nbits);
321 PV_BitstreamFlushBits(stream, nbits);
350 /* Purpose : Flush nbits bits from bitstream buffer. Check for cache */
355 PV_STATUS PV_BitstreamFlushBitsCheck(BitstreamDecVideo *stream, int nbits)
359 stream->bitcnt += nbits;
360 stream->incnt -= nbits;
372 stream->curr_word <<= nbits;
382 uint32 BitstreamReadBits32(BitstreamDecVideo *stream, int nbits)
386 if (stream->incnt < nbits)
391 code = stream->curr_word >> (32 - nbits);
392 PV_BitstreamFlushBits(stream, nbits);
422 PV_STATUS PV_BitstreamShowBitsByteAlign(BitstreamDecVideo *stream, int nbits, uint32 *code)
430 if (stream->incnt < (nbits + n_stuffed))
436 *code = (stream->curr_word << n_stuffed) >> (32 - nbits);
441 PV_STATUS PV_BitstreamShowBitsByteAlignNoForceStuffing(BitstreamDecVideo *stream, int nbits, uint32 *code)
449 if (stream->incnt < (nbits + n_stuffed))
455 *code = (stream->curr_word << n_stuffed) >> (32 - nbits);