Lines Matching defs:currVol

83     Vol *currVol;
96 currVol = video->vol[layer];
97 stream = currVol->bitstream;
98 currVol->moduloTimeBase = 0;
138 currVol->profile_level_id = (uint)tmpvar; // 6/10/04
282 currVol->volID = (int) BitstreamReadBits16(stream, 4);
389 currVol->timeIncrementResolution = BitstreamReadBits16(stream, 16);
390 if (currVol->timeIncrementResolution == 0) return PV_FAIL;
394 currVol->nbitsTimeIncRes = CalcNumBits((uint)currVol->timeIncrementResolution - 1);
399 currVol->fixedVopRate = (int) BitstreamRead1Bits(stream);
400 if (currVol->fixedVopRate)
403 tmpvar = BitstreamReadBits16(stream, currVol->nbitsTimeIncRes);
466 currVol->quantPrecision = BitstreamReadBits16(stream, 4);
468 currVol->bitsPerPixel = BitstreamReadBits16(stream, 4);
475 currVol->quantPrecision = 5;
476 currVol->bitsPerPixel = 8;
480 currVol->quantType = BitstreamRead1Bits(stream);
481 if (currVol->quantType)
486 qmat = currVol->iqmat;
487 currVol->loadIntraQuantMat = BitstreamRead1Bits(stream);
488 if (currVol->loadIntraQuantMat)
509 qmat = currVol->niqmat;
510 currVol->loadNonIntraQuantMat = BitstreamRead1Bits(stream);
511 if (currVol->loadNonIntraQuantMat)
541 currVol->complexity_estDisable = BitstreamRead1Bits(stream);
542 if (currVol->complexity_estDisable == 0)
544 currVol->complexity_estMethod = BitstreamReadBits16(stream, 2);
546 if (currVol->complexity_estMethod < 2)
559 currVol->complexity.text_1 = BitstreamReadBits16(stream, 4);
567 currVol->complexity.text_2 = BitstreamReadBits16(stream, 4);
573 currVol->complexity.mc = BitstreamReadBits16(stream, 6);
578 if (currVol->complexity_estMethod == 1)
592 currVol->errorResDisable = (int) BitstreamRead1Bits(stream);
594 currVol->dataPartitioning = (int) BitstreamRead1Bits(stream);
599 if (currVol->dataPartitioning)
603 currVol->useReverseVLC = (int)BitstreamRead1Bits(stream);
604 if (currVol->useReverseVLC)
609 currVol->errorResDisable = 0;
613 currVol->useReverseVLC = 0;
631 currVol->scalability = (int) BitstreamRead1Bits(stream);
633 if (currVol->scalability)
638 currVol->scalType = (int) BitstreamRead1Bits(stream); /* */
639 if (!currVol->scalType) return PV_FAIL;
642 currVol->refVolID = (int) BitstreamReadBits16(stream, 4);
645 if (currVol->refVolID != video->vol[0]->volID) return PV_FAIL;
650 currVol->refSampDir = (int) BitstreamRead1Bits(stream);
651 if (currVol->refSampDir) return PV_FAIL;
654 currVol->horSamp_n = (int) BitstreamReadBits16(stream, 5);
657 currVol->horSamp_m = (int) BitstreamReadBits16(stream, 5);
659 if (currVol->horSamp_m == 0) return PV_FAIL;
660 if (currVol->horSamp_n != currVol->horSamp_m) return PV_FAIL;
663 currVol->verSamp_n = (int) BitstreamReadBits16(stream, 5);
666 currVol->verSamp_m = (int) BitstreamReadBits16(stream, 5);
668 if (currVol->verSamp_m == 0) return PV_FAIL;
669 if (currVol->verSamp_n != currVol->verSamp_m) return PV_FAIL;
809 Vol *currVol = video->vol[video->currLayer];
810 BitstreamDecVideo *stream = currVol->bitstream;
865 currVol->moduloTimeBase += 1000 * time_base; /* milliseconds based MTB 11/12/01 */
877 currVop->timeInc = BitstreamReadBits16(stream, currVol->nbitsTimeIncRes);
908 if (currVol->complexity_estDisable == 0)
910 if (currVol->complexity_estMethod < 2) /* OCT 2002 */
912 if ((currVol->complexity.text_1 >> 3) & 0x1) /* intra */
914 if (currVol->complexity.text_1 & 0x1) /* not_coded */
916 if ((currVol->complexity.text_2 >> 3) & 0x1) /* dct_coefs */
918 if ((currVol->complexity.text_2 >> 2) & 0x1) /* dct_lines */
920 if ((currVol->complexity.text_2 >> 1) & 0x1) /* vlc_symbols */
922 if (currVol->complexity.text_2 & 0x1) /* vlc_bits */
927 if ((currVol->complexity.text_1 >> 2) & 0x1) /* inter */
929 if ((currVol->complexity.text_1 >> 1) & 0x1) /* inter_4v */
931 if ((currVol->complexity.mc >> 5) & 0x1) /* apm */
933 if ((currVol->complexity.mc >> 4) & 0x1) /* npm */
936 if ((currVol->complexity.mc >> 2) & 0x1) /* forw_back_mc_q */
938 if ((currVol->complexity.mc >> 1) & 0x1) /* halfpel2 */
940 if (currVol->complexity.mc & 0x1) /* halfpel4 */
945 if ((currVol->complexity.mc >> 3) & 0x1) /* interpolate_mc_q */
954 /* read vop_quant (currVol->quantPrecision bits) */
955 currVop->quantizer = (int16) BitstreamReadBits16(stream, currVol->quantPrecision);
998 if (currVol->scalability)
1019 Vol *currVol = video->vol[0];
1020 BitstreamDecVideo *stream = currVol->bitstream;
1044 currVol->moduloTimeBase += currVop->timeInc; /* mseconds 11/12/01 */
1482 // if (currVol->nBitsForMBID //
1502 currVol->errorResDisable = 0;
1529 Vol *currVol = video->vol[video->currLayer];
1537 if (!currVol->scalability)
1539 if (currVol->dataPartitioning)
1556 if (currVol->dataPartitioning)
1576 BitstreamByteAlignNoForceStuffing(currVol->bitstream);
1578 status = BitstreamShowBits32HC(currVol->bitstream, &tmpvar); /* 07/07/01 */
1581 PV_BitstreamFlushBits(currVol->bitstream, 16);
1582 PV_BitstreamFlushBits(currVol->bitstream, 16);
1597 status = BitstreamShowBits32(currVol->bitstream, 22, &tmpvar);
1600 PV_BitstreamFlushBits(currVol->bitstream, 22);
1604 status = PV_BitstreamShowBitsByteAlign(currVol->bitstream, 22, &tmpvar);
1607 PV_BitstreamByteAlign(currVol->bitstream);
1608 PV_BitstreamFlushBits(currVol->bitstream, 22);
1623 uint32 CalcVopDisplayTime(Vol *currVol, Vop *currVop, int shortVideoHeader)
1634 display_time = (uint32)(currVol->moduloTimeBase + (((int32)currVop->timeInc - (int32)currVol->timeInc_offset) * 1000) / ((int32)currVol->timeIncrementResolution)); /* 11/12/2001 */
1642 display_time = (uint32)(currVol->moduloTimeBase * 33 + (currVol->moduloTimeBase * 11) / 30); /* 11/12/2001 */