Lines Matching refs:byte
37 1. There is a problem when output the last bits(which can not form a byte yet
38 so when you output, you need to stuff to make sure it is a byte
39 2. I now hard coded byte to be 8 bits*/
265 numbyte = bitused >> 3; /* number of byte fully used */
303 // *ptr = (UChar)((word>>shift)&0xFF); /* need to do it for the last fractional byte */
360 /* Question: in MPEG-4 , short_video_header[0]==0 => even already byte aligned, will still stuff 8 bits
437 if (!offset) /* bitstream1 is byte-aligned */
444 /* since bitstream1 doesn't have to be byte-aligned, we have to process byte by byte */
445 /* we read one byte from bitstream2 and use BitstreamPutBits to do the job */
461 numbyte2 = bitstream2->byteCount; /* number of byte to copy from bs2 */
464 byteBS1 = ((UChar) bitstream1->word) << bitleft; /* fraction byte from bs1 */
488 /* output bitstream(bitstream1) knowing that bitstream1 is byte-aligned*/
583 UChar *ptr, byte;
590 ptr = bitstream->bitstreamBuffer + byteCount; /* get fraction of the byte */
595 byte = *ptr++;
596 word = byte | (word << 8);
598 byte = *ptr++;
599 word = byte | (word << 8);
600 byte = *ptr++;
601 word = byte | (word << 8);
643 if (!bitused) /* byte aligned */
655 /* copy for the last byte of ptrSrc, copy extra bits doesn't hurt */
683 UChar *pSrc, *pDst, byte;
686 BitstreamSavePartial(bitstream2, &fraction); /* make sure only fraction of byte left */
716 byte = (bitstream2->word) << leftover;
718 *pDst++ = byte | (pSrc[0] >> bitused);