Lines Matching defs:video

80 PV_STATUS DecodeVOLHeader(VideoDecData *video, int layer)
96 currVol = video->vol[layer];
252 video->shortVideoHeader = TRUE;
275 video->shortVideoHeader = 0;
406 video->displayWidth = video->width = (int) BitstreamReadBits16(stream, 13);
409 video->width = (video->width + 15) & -16;
410 // video->displayWidth += (video->displayWidth & 0x1); /* displayed image should be even size */
416 video->displayHeight = video->height = (int) BitstreamReadBits16(stream, 13);
419 video->height = (video->height + 15) & -16;
420 // video->displayHeight += (video->displayHeight & 0x1); /* displayed image should be even size */
428 mp4dec_log("DecodeVOLHeader(): Interlaced video is not supported.\n");
592 video->vlcDecCoeffIntra = &VlcDecTCOEFIntra;
593 video->vlcDecCoeffInter = &VlcDecTCOEFInter;
602 video->vlcDecCoeffIntra = &RvlcDecTCOEFIntra;
603 video->vlcDecCoeffInter = &RvlcDecTCOEFInter;
625 video->intra_acdcPredDisable = 0;
641 if (currVol->refVolID != video->vol[0]->volID) return PV_FAIL;
686 video->nMBPerRow = video->width / MB_SIZE;
687 video->nMBPerCol = video->height / MB_SIZE;
688 video->nTotalMB = video->nMBPerRow * video->nMBPerCol;
689 video->nBitsForMBID = CalcNumBits((uint)video->nTotalMB - 1);
691 video->modified_quant = 0;
692 video->advanced_INTRA = 0;
693 video->deblocking = 0;
694 video->slice_structure = 0;
704 video->shortVideoHeader = TRUE;
802 PV_STATUS DecodeVOPHeader(VideoDecData *video, Vop *currVop, Bool use_ext_timestamp)
805 Vol *currVol = video->vol[video->currLayer];
954 currVop->quantizer = video->prevVop->quantizer;
1012 PV_STATUS DecodeShortHeader(VideoDecData *video, Vop *currVop)
1015 Vol *currVol = video->vol[0];
1039 currVop->timeInc = 0xff & (256 + currVop->temporalRef - video->prevVop->temporalRef);
1061 VideoDecoderErrorDetected(video);
1068 VideoDecoderErrorDetected(video);
1075 VideoDecoderErrorDetected(video);
1081 if (video->size < 128*96)
1086 video->displayWidth = video->width = 128;
1087 video->displayHeight = video->height = 96;
1091 if (video->size < 176*144)
1096 video->displayWidth = video->width = 176;
1097 video->displayHeight = video->height = 144;
1101 if (video->size < 352*288)
1106 video->displayWidth = video->width = 352;
1107 video->displayHeight = video->height = 288;
1111 if (video->size < 704*576)
1116 video->displayWidth = video->width = 704;
1117 video->displayHeight = video->height = 576;
1121 if (video->size < 1408*1152)
1126 video->displayWidth = video->width = 1408;
1127 video->displayHeight = video->height = 1152;
1164 if (video->size < 128*96)
1169 video->displayWidth = video->width = 128;
1170 video->displayHeight = video->height = 96;
1174 if (video->size < 176*144)
1179 video->displayWidth = video->width = 176;
1180 video->displayHeight = video->height = 144;
1184 if (video->size < 352*288)
1189 video->displayWidth = video->width = 352;
1190 video->displayHeight = video->height = 288;
1194 if (video->size < 704*576)
1199 video->displayWidth = video->width = 704;
1200 video->displayHeight = video->height = 576;
1204 if (video->size < 1408*1152)
1209 video->displayWidth = video->width = 1408;
1210 video->displayHeight = video->height = 1152;
1244 video->advanced_INTRA = BitstreamRead1Bits(stream);
1246 video->deblocking = BitstreamRead1Bits(stream);
1248 video->slice_structure = BitstreamRead1Bits(stream);
1256 video->modified_quant = BitstreamRead1Bits(stream);
1266 if (video->advanced_INTRA | video->deblocking | video->modified_quant | video->modified_quant)
1335 video->displayWidth = (tmpvar + 1) << 2;
1336 video->width = (video->displayWidth + 15) & -16;
1349 video->displayHeight = tmpvar << 2;
1350 video->height = (video->displayHeight + 15) & -16;
1352 if (video->height * video->width > video->size)
1358 video->nTotalMB = video->width / MB_SIZE * video->height / MB_SIZE;
1360 if (video->nTotalMB <= 48)
1362 video->nBitsForMBID = 6;
1364 else if (video->nTotalMB <= 99)
1366 video->nBitsForMBID = 7;
1368 else if (video->nTotalMB <= 396)
1370 video->nBitsForMBID = 9;
1372 else if (video->nTotalMB <= 1584)
1374 video->nBitsForMBID = 11;
1376 else if (video->nTotalMB <= 6336)
1378 video->nBitsForMBID = 13 ;
1380 else if (video->nTotalMB <= 9216)
1382 video->nBitsForMBID = 14 ;
1407 if (UFEP == 1 && video->slice_structure == 1)
1421 video->nMBinGOB = video->nMBPerRow = video->width / MB_SIZE;
1422 video->nGOBinVop = video->nMBPerCol = video->height / MB_SIZE;
1423 video->nTotalMB = video->nMBPerRow * video->nMBPerCol;
1426 video->nBitsForMBID = CalcNumBits((uint)video->nTotalMB - 1); /* otherwise calculate above */
1428 size = (int32)video->width * video->height;
1429 if (video->currVop->predictionType == P_VOP && size > video->videoDecControls->size)
1434 video->videoDecControls->size = size;
1435 video->currVop->uChan = video->currVop->yChan + size;
1436 video->currVop->vChan = video->currVop->uChan + (size >> 2);
1437 video->prevVop->uChan = video->prevVop->yChan + size;
1438 video->prevVop->vChan = video->prevVop->uChan + (size >> 2);
1445 currVop->quantizer = video->prevVop->quantizer;
1470 if (video->slice_structure) /* ANNEX_K */
1479 if (BitstreamReadBits16(stream, video->nBitsForMBID))
1523 PV_STATUS PV_DecodeVop(VideoDecData *video)
1525 Vol *currVol = video->vol[video->currLayer];
1538 status = DecodeFrameDataPartMode(video);
1543 /* and short video header comes here. */
1544 status = DecodeFrameCombinedMode(video);
1555 status = DecodeFrameDataPartMode(video);
1560 /* and short video header comes here. */
1561 status = DecodeFrameCombinedMode(video);
1564 status = DecodeFrameCombinedMode(video);
1569 if (!video->shortVideoHeader)
1585 if (video->deblocking)
1587 H263_Deblock(video->currVop->yChan, video->width, video->height, video->QPMB, video->headerInfo.Mode, 0, 0);
1588 H263_Deblock(video->currVop->uChan, video->width >> 1, video->height >> 1, video->QPMB, video->headerInfo.Mode, 1, video->modified_quant);
1589 H263_Deblock(video->currVop->vChan, video->width >> 1, video->height >> 1, video->QPMB, video->headerInfo.Mode, 1, video->modified_quant);