Lines Matching refs:currVol
40 Vol *currVol = video->vol[video->currLayer];
70 if (currVol->quantType == 0)
88 if (currVol->shortVideoHeader)
91 else if (currVol->useReverseVLC)
101 if (currVol->shortVideoHeader && currVop->gobFrameID != currVop->predictionType)
107 for (ind_y = 0; ind_y < currVol->nMBPerCol; ind_y++) /* Col MB Loop */
112 if (currVol->shortVideoHeader) /* ShortVideoHeader Mode */
118 video->header_bits -= BitstreamGetPos(currVol->stream); /* Header Bits */
120 video->header_bits += BitstreamGetPos(currVol->stream); /* Header Bits */
125 for (ind_x = 0; ind_x < currVol->nMBPerRow; ind_x++) /* Row MB Loop */
173 if (!currVol->shortVideoHeader) /* Not in ShortVideoHeader mode */
175 if (!currVol->ResyncMarkerDisable) /* RESYNC MARKER MODE */
182 status = BitstreamAppendPacket(currVol->stream, bs1); /* Put Packet to Buffer */
192 status = BitstreamAppendEnc(currVol->stream, bs1); /* Initialize to 0 */
201 status = BitstreamAppendEnc(currVol->stream, bs1); /* Initialize to 0 */
211 if (currVol->shortVideoHeader) /* ShortVideoHeader = 1 */
219 if (currVol->shortVideoHeader) /* ShortVideoHeader = 1 */
222 video->header_bits += BitstreamShortHeaderByteAlignStuffing(currVol->stream); /* Byte Align */
227 if (!currVol->ResyncMarkerDisable) /* Resync Markers */
234 status = BitstreamAppendPacket(currVol->stream, bs1); /* Put Packet to Buffer */
242 video->header_bits += BitstreamMpeg4ByteAlignStuffing(currVol->stream); /* Byte Align */
265 Vol *currVol = video->vol[video->currLayer];
270 Int nTotalMB = currVol->nTotalMB;
283 Int resync_marker = ((!currVol->shortVideoHeader) && (!currVol->ResyncMarkerDisable));
303 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);
327 if (currVol->quantType == 0)
345 if (currVol->shortVideoHeader)
348 else if (currVol->useReverseVLC)
358 if (currVol->shortVideoHeader && currVop->gobFrameID != currVop->predictionType)
364 if (currVol->shortVideoHeader)
378 else if (currVol->ResyncMarkerDisable)
389 for (ind_y = 0; ind_y < currVol->nMBPerCol; ind_y++) /* Col MB Loop */
394 for (ind_x = 0; ind_x < currVol->nMBPerRow; ind_x++) /* Row MB Loop */
457 if (!currVol->shortVideoHeader)
459 if (!currVol->ResyncMarkerDisable)
473 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1); /* Put Packet to Buffer */
506 if (mbnum < nTotalMB - 1 && currVol->stream->byteCount + bs1->byteCount + 1 >= currVol->stream->bufferSize)
509 byteCount = currVol->stream->bufferSize - currVol->stream->byteCount - 1;
513 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);
520 if (video->outputMB->mb_x >= currVol->nMBPerRow)
541 if (currVol->shortVideoHeader) /* ShortVideoHeader = 1 */
550 if (currVol->stream->byteCount + bs1->byteCount > currVol->stream->bufferSize)
554 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);
565 // k = currVol->stream->byteCount; /* save state before appending */
566 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);
568 // if(mbnum == nTotalMB || k + bs1->byteCount >= currVol->stream->bufferSize){
607 if (!currVol->shortVideoHeader) /* Combined Mode*/
609 if (!currVol->ResyncMarkerDisable) /* Resync Markers */
617 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1); /* Put Packet to Buffer */
631 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1); /* Initialize to 0 */
648 status = BitstreamAppendPacketNoOffset(currVol->stream, bs1);