Home | History | Annotate | Download | only in src

Lines Matching defs:currVol

83     Vol *currVol;
96 currVol = video->vol[layer];
97 stream = currVol->bitstream;
98 currVol->moduloTimeBase = 0;
134 currVol->profile_level_id = (uint)tmpvar; // 6/10/04
278 currVol->volID = (int) BitstreamReadBits16(stream, 4);
385 currVol->timeIncrementResolution = BitstreamReadBits16(stream, 16);
386 if (currVol->timeIncrementResolution == 0) return PV_FAIL;
390 currVol->nbitsTimeIncRes = CalcNumBits((uint)currVol->timeIncrementResolution - 1);
395 currVol->fixedVopRate = (int) BitstreamRead1Bits(stream);
396 if (currVol->fixedVopRate)
399 tmpvar = BitstreamReadBits16(stream, currVol->nbitsTimeIncRes);
462 currVol->quantPrecision = BitstreamReadBits16(stream, 4);
464 currVol->bitsPerPixel = BitstreamReadBits16(stream, 4);
471 currVol->quantPrecision = 5;
472 currVol->bitsPerPixel = 8;
476 currVol->quantType = BitstreamRead1Bits(stream);
477 if (currVol->quantType)
482 qmat = currVol->iqmat;
483 currVol->loadIntraQuantMat = BitstreamRead1Bits(stream);
484 if (currVol->loadIntraQuantMat)
505 qmat = currVol->niqmat;
506 currVol->loadNonIntraQuantMat = BitstreamRead1Bits(stream);
507 if (currVol->loadNonIntraQuantMat)
537 currVol->complexity_estDisable = BitstreamRead1Bits(stream);
538 if (currVol->complexity_estDisable == 0)
540 currVol->complexity_estMethod = BitstreamReadBits16(stream, 2);
542 if (currVol->complexity_estMethod < 2)
555 currVol->complexity.text_1 = BitstreamReadBits16(stream, 4);
563 currVol->complexity.text_2 = BitstreamReadBits16(stream, 4);
569 currVol->complexity.mc = BitstreamReadBits16(stream, 6);
574 if (currVol->complexity_estMethod == 1)
588 currVol->errorResDisable = (int) BitstreamRead1Bits(stream);
590 currVol->dataPartitioning = (int) BitstreamRead1Bits(stream);
595 if (currVol->dataPartitioning)
599 currVol->useReverseVLC = (int)BitstreamRead1Bits(stream);
600 if (currVol->useReverseVLC)
605 currVol->errorResDisable = 0;
609 currVol->useReverseVLC = 0;
627 currVol->scalability = (int) BitstreamRead1Bits(stream);
629 if (currVol->scalability)
634 currVol->scalType = (int) BitstreamRead1Bits(stream); /* */
635 if (!currVol->scalType) return PV_FAIL;
638 currVol->refVolID = (int) BitstreamReadBits16(stream, 4);
641 if (currVol->refVolID != video->vol[0]->volID) return PV_FAIL;
646 currVol->refSampDir = (int) BitstreamRead1Bits(stream);
647 if (currVol->refSampDir) return PV_FAIL;
650 currVol->horSamp_n = (int) BitstreamReadBits16(stream, 5);
653 currVol->horSamp_m = (int) BitstreamReadBits16(stream, 5);
655 if (currVol->horSamp_m == 0) return PV_FAIL;
656 if (currVol->horSamp_n != currVol->horSamp_m) return PV_FAIL;
659 currVol->verSamp_n = (int) BitstreamReadBits16(stream, 5);
662 currVol->verSamp_m = (int) BitstreamReadBits16(stream, 5);
664 if (currVol->verSamp_m == 0) return PV_FAIL;
665 if (currVol->verSamp_n != currVol->verSamp_m) return PV_FAIL;
805 Vol *currVol = video->vol[video->currLayer];
806 BitstreamDecVideo *stream = currVol->bitstream;
861 currVol->moduloTimeBase += 1000 * time_base; /* milliseconds based MTB 11/12/01 */
873 currVop->timeInc = BitstreamReadBits16(stream, currVol->nbitsTimeIncRes);
904 if (currVol->complexity_estDisable == 0)
906 if (currVol->complexity_estMethod < 2) /* OCT 2002 */
908 if ((currVol->complexity.text_1 >> 3) & 0x1) /* intra */
910 if (currVol->complexity.text_1 & 0x1) /* not_coded */
912 if ((currVol->complexity.text_2 >> 3) & 0x1) /* dct_coefs */
914 if ((currVol->complexity.text_2 >> 2) & 0x1) /* dct_lines */
916 if ((currVol->complexity.text_2 >> 1) & 0x1) /* vlc_symbols */
918 if (currVol->complexity.text_2 & 0x1) /* vlc_bits */
923 if ((currVol->complexity.text_1 >> 2) & 0x1) /* inter */
925 if ((currVol->complexity.text_1 >> 1) & 0x1) /* inter_4v */
927 if ((currVol->complexity.mc >> 5) & 0x1) /* apm */
929 if ((currVol->complexity.mc >> 4) & 0x1) /* npm */
932 if ((currVol->complexity.mc >> 2) & 0x1) /* forw_back_mc_q */
934 if ((currVol->complexity.mc >> 1) & 0x1) /* halfpel2 */
936 if (currVol->complexity.mc & 0x1) /* halfpel4 */
941 if ((currVol->complexity.mc >> 3) & 0x1) /* interpolate_mc_q */
950 /* read vop_quant (currVol->quantPrecision bits) */
951 currVop->quantizer = (int16) BitstreamReadBits16(stream, currVol->quantPrecision);
994 if (currVol->scalability)
1015 Vol *currVol = video->vol[0];
1016 BitstreamDecVideo *stream = currVol->bitstream;
1040 currVol->moduloTimeBase += currVop->timeInc; /* mseconds 11/12/01 */
1478 // if (currVol->nBitsForMBID //
1498 currVol->errorResDisable = 0;
1525 Vol *currVol = video->vol[video->currLayer];
1533 if (!currVol->scalability)
1535 if (currVol->dataPartitioning)
1552 if (currVol->dataPartitioning)
1572 BitstreamByteAlignNoForceStuffing(currVol->bitstream);
1574 status = BitstreamShowBits32HC(currVol->bitstream, &tmpvar); /* 07/07/01 */
1577 PV_BitstreamFlushBits(currVol->bitstream, 16);
1578 PV_BitstreamFlushBits(currVol->bitstream, 16);
1593 status = BitstreamShowBits32(currVol->bitstream, 22, &tmpvar);
1596 PV_BitstreamFlushBits(currVol->bitstream, 22);
1600 status = PV_BitstreamShowBitsByteAlign(currVol->bitstream, 22, &tmpvar);
1603 PV_BitstreamByteAlign(currVol->bitstream);
1604 PV_BitstreamFlushBits(currVol->bitstream, 22);
1619 uint32 CalcVopDisplayTime(Vol *currVol, Vop *currVop, int shortVideoHeader)
1630 display_time = (uint32)(currVol->moduloTimeBase + (((int32)currVop->timeInc - (int32)currVol->timeInc_offset) * 1000) / ((int32)currVol->timeIncrementResolution)); /* 11/12/2001 */
1638 display_time = (uint32)(currVol->moduloTimeBase * 33 + (currVol->moduloTimeBase * 11) / 30); /* 11/12/2001 */