Lines Matching defs:bitstream
20 /* Change the bitstream parsing algorithm. Use temporary word of 2 or 4 bytes */
21 /* before writing it to the bitstream buffer. */
45 /* Purpose : Create a bitstream to hold one encoded video packet or frame */
47 /* bufferSize : size of the bitstream buffer in bytes */
86 /* Purpose : close a bitstream */
88 stream : the bitstream to be closed */
114 /* stream the bitstream where the bits are put in */
162 /* stream the bitstream where the bits are put in */
200 /* Purpose : save written word into the bitstream buffer. */
202 /* stream the bitstream where the bits are put in */
250 /* Purpose : save unfinished written word into the bitstream buffer. */
252 /* stream the bitstream where the bits are put in */
408 /* Purpose : Append the intermediate bitstream (bitstream2) to the end of */
409 /* output bitstream(bitstream1) */
475 bitstream1->word = byteBS1 >> bitleft; /* bitstream->bitLeft remains the same */
487 /* Purpose : Append the intermediate bitstream (bitstream2) to the end of */
488 /* output bitstream(bitstream1) knowing that bitstream1 is byte-aligned*/
526 /* Purpose : Append the intermediate bitstream (bitstream2) to the end of */
527 /* output bitstream(bitstream1) , for slice-based coding only */
564 /* bitstream2->word and bitstream->bitLeft are unchanged.
573 /* Function : BitstreamRepos( BitstreamEncVideo *bitstream, */
581 PV_STATUS BitstreamRepos(BitstreamEncVideo *bitstream, Int byteCount, Int bitCount)
587 BitstreamSavePartial(bitstream, &fraction);
589 bitstream->byteCount = byteCount;
590 ptr = bitstream->bitstreamBuffer + byteCount; /* get fraction of the byte */
593 bitstream->bitLeft = (WORD_SIZE << 3) - bitCount; /* bitCount should be 0-31 */
603 bitstream->word = word >> (bitstream->bitLeft);
607 bitstream->word = 0;
608 bitstream->bitLeft = (WORD_SIZE << 3);
675 /* Purpose : Prepend the intermediate bitstream (bitstream2) to the beginning of */
676 /* output bitstream(bitstream1) */