Lines Matching defs:currVol

85     Vol *currVol;
98 currVol = video->vol[layer];
99 stream = currVol->bitstream;
100 currVol->moduloTimeBase = 0;
140 currVol->profile_level_id = (uint)tmpvar; // 6/10/04
284 currVol->volID = (int) BitstreamReadBits16(stream, 4);
391 currVol->timeIncrementResolution = BitstreamReadBits16(stream, 16);
392 if (currVol->timeIncrementResolution == 0) return PV_FAIL;
396 currVol->nbitsTimeIncRes = CalcNumBits((uint)currVol->timeIncrementResolution - 1);
401 currVol->fixedVopRate = (int) BitstreamRead1Bits(stream);
402 if (currVol->fixedVopRate)
405 tmpvar = BitstreamReadBits16(stream, currVol->nbitsTimeIncRes);
468 currVol->quantPrecision = BitstreamReadBits16(stream, 4);
470 currVol->bitsPerPixel = BitstreamReadBits16(stream, 4);
477 currVol->quantPrecision = 5;
478 currVol->bitsPerPixel = 8;
482 currVol->quantType = BitstreamRead1Bits(stream);
483 if (currVol->quantType)
488 qmat = currVol->iqmat;
489 currVol->loadIntraQuantMat = BitstreamRead1Bits(stream);
490 if (currVol->loadIntraQuantMat)
511 qmat = currVol->niqmat;
512 currVol->loadNonIntraQuantMat = BitstreamRead1Bits(stream);
513 if (currVol->loadNonIntraQuantMat)
543 currVol->complexity_estDisable = BitstreamRead1Bits(stream);
544 if (currVol->complexity_estDisable == 0)
546 currVol->complexity_estMethod = BitstreamReadBits16(stream, 2);
548 if (currVol->complexity_estMethod < 2)
561 currVol->complexity.text_1 = BitstreamReadBits16(stream, 4);
569 currVol->complexity.text_2 = BitstreamReadBits16(stream, 4);
575 currVol->complexity.mc = BitstreamReadBits16(stream, 6);
580 if (currVol->complexity_estMethod == 1)
594 currVol->errorResDisable = (int) BitstreamRead1Bits(stream);
596 currVol->dataPartitioning = (int) BitstreamRead1Bits(stream);
601 if (currVol->dataPartitioning)
605 currVol->useReverseVLC = (int)BitstreamRead1Bits(stream);
606 if (currVol->useReverseVLC)
611 currVol->errorResDisable = 0;
615 currVol->useReverseVLC = 0;
633 currVol->scalability = (int) BitstreamRead1Bits(stream);
635 if (currVol->scalability)
640 currVol->scalType = (int) BitstreamRead1Bits(stream); /* */
641 if (!currVol->scalType) return PV_FAIL;
644 currVol->refVolID = (int) BitstreamReadBits16(stream, 4);
647 if (currVol->refVolID != video->vol[0]->volID) return PV_FAIL;
652 currVol->refSampDir = (int) BitstreamRead1Bits(stream);
653 if (currVol->refSampDir) return PV_FAIL;
656 currVol->horSamp_n = (int) BitstreamReadBits16(stream, 5);
659 currVol->horSamp_m = (int) BitstreamReadBits16(stream, 5);
661 if (currVol->horSamp_m == 0) return PV_FAIL;
662 if (currVol->horSamp_n != currVol->horSamp_m) return PV_FAIL;
665 currVol->verSamp_n = (int) BitstreamReadBits16(stream, 5);
668 currVol->verSamp_m = (int) BitstreamReadBits16(stream, 5);
670 if (currVol->verSamp_m == 0) return PV_FAIL;
671 if (currVol->verSamp_n != currVol->verSamp_m) return PV_FAIL;
811 Vol *currVol = video->vol[video->currLayer];
812 BitstreamDecVideo *stream = currVol->bitstream;
867 currVol->moduloTimeBase += 1000 * time_base; /* milliseconds based MTB 11/12/01 */
879 currVop->timeInc = BitstreamReadBits16(stream, currVol->nbitsTimeIncRes);
910 if (currVol->complexity_estDisable == 0)
912 if (currVol->complexity_estMethod < 2) /* OCT 2002 */
914 if ((currVol->complexity.text_1 >> 3) & 0x1) /* intra */
916 if (currVol->complexity.text_1 & 0x1) /* not_coded */
918 if ((currVol->complexity.text_2 >> 3) & 0x1) /* dct_coefs */
920 if ((currVol->complexity.text_2 >> 2) & 0x1) /* dct_lines */
922 if ((currVol->complexity.text_2 >> 1) & 0x1) /* vlc_symbols */
924 if (currVol->complexity.text_2 & 0x1) /* vlc_bits */
929 if ((currVol->complexity.text_1 >> 2) & 0x1) /* inter */
931 if ((currVol->complexity.text_1 >> 1) & 0x1) /* inter_4v */
933 if ((currVol->complexity.mc >> 5) & 0x1) /* apm */
935 if ((currVol->complexity.mc >> 4) & 0x1) /* npm */
938 if ((currVol->complexity.mc >> 2) & 0x1) /* forw_back_mc_q */
940 if ((currVol->complexity.mc >> 1) & 0x1) /* halfpel2 */
942 if (currVol->complexity.mc & 0x1) /* halfpel4 */
947 if ((currVol->complexity.mc >> 3) & 0x1) /* interpolate_mc_q */
956 /* read vop_quant (currVol->quantPrecision bits) */
957 currVop->quantizer = (int16) BitstreamReadBits16(stream, currVol->quantPrecision);
1000 if (currVol->scalability)
1021 Vol *currVol = video->vol[0];
1022 BitstreamDecVideo *stream = currVol->bitstream;
1046 currVol->moduloTimeBase += currVop->timeInc; /* mseconds 11/12/01 */
1490 // if (currVol->nBitsForMBID //
1510 currVol->errorResDisable = 0;
1537 Vol *currVol = video->vol[video->currLayer];
1545 if (!currVol->scalability)
1547 if (currVol->dataPartitioning)
1564 if (currVol->dataPartitioning)
1584 BitstreamByteAlignNoForceStuffing(currVol->bitstream);
1586 status = BitstreamShowBits32HC(currVol->bitstream, &tmpvar); /* 07/07/01 */
1589 PV_BitstreamFlushBits(currVol->bitstream, 16);
1590 PV_BitstreamFlushBits(currVol->bitstream, 16);
1605 status = BitstreamShowBits32(currVol->bitstream, 22, &tmpvar);
1608 PV_BitstreamFlushBits(currVol->bitstream, 22);
1612 status = PV_BitstreamShowBitsByteAlign(currVol->bitstream, 22, &tmpvar);
1615 PV_BitstreamByteAlign(currVol->bitstream);
1616 PV_BitstreamFlushBits(currVol->bitstream, 22);
1631 uint32 CalcVopDisplayTime(Vol *currVol, Vop *currVop, int shortVideoHeader)
1642 display_time = (uint32)(currVol->moduloTimeBase + (((int32)currVop->timeInc - (int32)currVol->timeInc_offset) * 1000) / ((int32)currVol->timeIncrementResolution)); /* 11/12/2001 */
1650 display_time = (uint32)(currVol->moduloTimeBase * 33 + (currVol->moduloTimeBase * 11) / 30); /* 11/12/2001 */