Lines Matching defs:bs1

53     BitstreamEncVideo *bs1 = video->bitstream1;
66 numHeaderBits = BitstreamGetPos(bs1);
146 video->header_bits -= BitstreamGetPos(bs1); /* Header Bits */
149 video->header_bits += BitstreamGetPos(bs1); /* Header Bits */
150 numHeaderBits = BitstreamGetPos(bs1);
177 num_bits = BitstreamGetPos(bs1) - numHeaderBits;
180 video->header_bits += BitstreamMpeg4ByteAlignStuffing(bs1); /* Byte align Packet */
182 status = BitstreamAppendPacket(currVol->stream, bs1); /* Put Packet to Buffer */
185 BitstreamEncReset(bs1);
192 status = BitstreamAppendEnc(currVol->stream, bs1); /* Initialize to 0 */
195 BitstreamEncReset(bs1);
201 status = BitstreamAppendEnc(currVol->stream, bs1); /* Initialize to 0 */
204 BitstreamEncReset(bs1);
232 video->header_bits += BitstreamMpeg4ByteAlignStuffing(bs1);/* Byte Align */
234 status = BitstreamAppendPacket(currVol->stream, bs1); /* Put Packet to Buffer */
237 BitstreamEncReset(bs1);
284 BitstreamEncVideo *bs1 = video->bitstream1;
303 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);
306 BitstreamEncReset(bs1);
318 numHeaderBits = BitstreamGetPos(bs1);
367 bitCount = BitstreamGetPos(bs1);
372 video->header_bits -= BitstreamGetPos(bs1); /* Header Bits */
374 video->header_bits += BitstreamGetPos(bs1); /* Header Bits */
414 num_bits = BitstreamGetPos(bs1);
416 numHeaderBits = BitstreamGetPos(bs1) - num_bits;
437 bitCount = BitstreamGetPos(bs1);
463 num_bits = BitstreamGetPos(bs1) ;//- numHeaderBits; // include header
469 BitstreamRepos(bs1, byteCount, bitCount); /* rewind one MB */
471 video->header_bits += BitstreamMpeg4ByteAlignStuffing(bs1); /* Byte align Packet */
473 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1); /* Put Packet to Buffer */
481 BitstreamEncReset(bs1);
506 if (mbnum < nTotalMB - 1 && currVol->stream->byteCount + bs1->byteCount + 1 >= currVol->stream->bufferSize)
511 num_bits = BitstreamGetPos(bs1) - (byteCount << 3);
512 BitstreamRepos(bs1, byteCount, 0);
513 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);
514 BitstreamFlushBits(bs1, num_bits);
545 video->header_bits += BitstreamShortHeaderByteAlignStuffing(bs1);
547 //video->header_bits+=BitstreamShortHeaderByteAlignStuffing(bs1);
550 if (currVol->stream->byteCount + bs1->byteCount > currVol->stream->bufferSize)
554 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);
561 num_bits = ((bs1->byteCount - byteCount) << 3);
562 //num_bits = ((bs1->byteCount<<3) + bs1->bitCount) - ((byteCount<<3) + bitCount);
563 BitstreamRepos(bs1, byteCount, 0);
564 //BitstreamRepos(bs1,byteCount,bitCount);
566 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);
567 BitstreamFlushBits(bs1, num_bits);
568 // if(mbnum == nTotalMB || k + bs1->byteCount >= currVol->stream->bufferSize){
594 bitCount = BitstreamGetPos(bs1);
598 video->header_bits -= BitstreamGetPos(bs1); /* Header Bits */
600 video->header_bits += BitstreamGetPos(bs1); /* Header Bits */
615 video->header_bits += BitstreamMpeg4ByteAlignStuffing(bs1);/* Byte Align */
617 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1); /* Put Packet to Buffer */
624 BitstreamEncReset(bs1);
630 video->header_bits += BitstreamMpeg4ByteAlignStuffing(bs1); /* Byte Align */
631 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1); /* Initialize to 0 */
638 BitstreamEncReset(bs1);
647 video->header_bits += BitstreamShortHeaderByteAlignStuffing(bs1);
648 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);
655 BitstreamEncReset(bs1);