Lines Matching defs:video

82 PV_STATUS DecodeVOLHeader(VideoDecData *video, int layer)
98 currVol = video->vol[layer];
258 video->shortVideoHeader = TRUE;
281 video->shortVideoHeader = 0;
412 video->displayWidth = video->width = (int) BitstreamReadBits16(stream, 13);
415 video->width = (video->width + 15) & -16;
416 // video->displayWidth += (video->displayWidth & 0x1); /* displayed image should be even size */
422 video->displayHeight = video->height = (int) BitstreamReadBits16(stream, 13);
425 video->height = (video->height + 15) & -16;
426 // video->displayHeight += (video->displayHeight & 0x1); /* displayed image should be even size */
434 mp4dec_log("DecodeVOLHeader(): Interlaced video is not supported.\n");
598 video->vlcDecCoeffIntra = &VlcDecTCOEFIntra;
599 video->vlcDecCoeffInter = &VlcDecTCOEFInter;
608 video->vlcDecCoeffIntra = &RvlcDecTCOEFIntra;
609 video->vlcDecCoeffInter = &RvlcDecTCOEFInter;
631 video->intra_acdcPredDisable = 0;
647 if (currVol->refVolID != video->vol[0]->volID) return PV_FAIL;
692 video->nMBPerRow = video->width / MB_SIZE;
693 video->nMBPerCol = video->height / MB_SIZE;
694 video->nTotalMB = video->nMBPerRow * video->nMBPerCol;
695 video->nBitsForMBID = CalcNumBits((uint)video->nTotalMB - 1);
697 video->modified_quant = 0;
698 video->advanced_INTRA = 0;
699 video->deblocking = 0;
700 video->slice_structure = 0;
710 video->shortVideoHeader = TRUE;
808 PV_STATUS DecodeVOPHeader(VideoDecData *video, Vop *currVop, Bool use_ext_timestamp)
811 Vol *currVol = video->vol[video->currLayer];
960 currVop->quantizer = video->prevVop->quantizer;
1018 PV_STATUS DecodeShortHeader(VideoDecData *video, Vop *currVop)
1021 Vol *currVol = video->vol[0];
1045 currVop->timeInc = 0xff & (256 + currVop->temporalRef - video->prevVop->temporalRef);
1067 VideoDecoderErrorDetected(video);
1074 VideoDecoderErrorDetected(video);
1081 VideoDecoderErrorDetected(video);
1087 if (video->size < 128*96)
1092 video->displayWidth = video->width = 128;
1093 video->displayHeight = video->height = 96;
1097 if (video->size < 176*144)
1102 video->displayWidth = video->width = 176;
1103 video->displayHeight = video->height = 144;
1107 if (video->size < 352*288)
1112 video->displayWidth = video->width = 352;
1113 video->displayHeight = video->height = 288;
1117 if (video->size < 704*576)
1122 video->displayWidth = video->width = 704;
1123 video->displayHeight = video->height = 576;
1127 if (video->size < 1408*1152)
1132 video->displayWidth = video->width = 1408;
1133 video->displayHeight = video->height = 1152;
1170 if (video->size < 128*96)
1175 video->displayWidth = video->width = 128;
1176 video->displayHeight = video->height = 96;
1180 if (video->size < 176*144)
1185 video->displayWidth = video->width = 176;
1186 video->displayHeight = video->height = 144;
1190 if (video->size < 352*288)
1195 video->displayWidth = video->width = 352;
1196 video->displayHeight = video->height = 288;
1200 if (video->size < 704*576)
1205 video->displayWidth = video->width = 704;
1206 video->displayHeight = video->height = 576;
1210 if (video->size < 1408*1152)
1215 video->displayWidth = video->width = 1408;
1216 video->displayHeight = video->height = 1152;
1250 video->advanced_INTRA = BitstreamRead1Bits(stream);
1252 video->deblocking = BitstreamRead1Bits(stream);
1254 video->slice_structure = BitstreamRead1Bits(stream);
1262 video->modified_quant = BitstreamRead1Bits(stream);
1272 if (video->advanced_INTRA | video->deblocking | video->modified_quant | video->modified_quant)
1358 if (tmpHeight * tmpWidth > video->size)
1365 video->displayWidth = tmpDisplayWidth;
1366 video->width = tmpWidth;
1367 video->displayHeight = tmpDisplayHeight;
1368 video->height = tmpHeight;
1370 video->nTotalMB = video->width / MB_SIZE * video->height / MB_SIZE;
1372 if (video->nTotalMB <= 48)
1374 video->nBitsForMBID = 6;
1376 else if (video->nTotalMB <= 99)
1378 video->nBitsForMBID = 7;
1380 else if (video->nTotalMB <= 396)
1382 video->nBitsForMBID = 9;
1384 else if (video->nTotalMB <= 1584)
1386 video->nBitsForMBID = 11;
1388 else if (video->nTotalMB <= 6336)
1390 video->nBitsForMBID = 13 ;
1392 else if (video->nTotalMB <= 9216)
1394 video->nBitsForMBID = 14 ;
1419 if (UFEP == 1 && video->slice_structure == 1)
1433 video->nMBinGOB = video->nMBPerRow = video->width / MB_SIZE;
1434 video->nGOBinVop = video->nMBPerCol = video->height / MB_SIZE;
1435 video->nTotalMB = video->nMBPerRow * video->nMBPerCol;
1438 video->nBitsForMBID = CalcNumBits((uint)video->nTotalMB - 1); /* otherwise calculate above */
1440 size = (int32)video->width * video->height;
1441 if (currVop->predictionType == P_VOP && size > video->videoDecControls->size)
1446 video->videoDecControls->size = size;
1447 video->currVop->uChan = video->currVop->yChan + size;
1448 video->currVop->vChan = video->currVop->uChan + (size >> 2);
1449 video->prevVop->uChan = video->prevVop->yChan + size;
1450 video->prevVop->vChan = video->prevVop->uChan + (size >> 2);
1457 currVop->quantizer = video->prevVop->quantizer;
1482 if (video->slice_structure) /* ANNEX_K */
1491 if (BitstreamReadBits16(stream, video->nBitsForMBID))
1535 PV_STATUS PV_DecodeVop(VideoDecData *video)
1537 Vol *currVol = video->vol[video->currLayer];
1550 status = DecodeFrameDataPartMode(video);
1555 /* and short video header comes here. */
1556 status = DecodeFrameCombinedMode(video);
1567 status = DecodeFrameDataPartMode(video);
1572 /* and short video header comes here. */
1573 status = DecodeFrameCombinedMode(video);
1576 status = DecodeFrameCombinedMode(video);
1581 if (!video->shortVideoHeader)
1597 if (video->deblocking)
1599 H263_Deblock(video->currVop->yChan, video->width, video->height, video->QPMB, video->headerInfo.Mode, 0, 0);
1600 H263_Deblock(video->currVop->uChan, video->width >> 1, video->height >> 1, video->QPMB, video->headerInfo.Mode, 1, video->modified_quant);
1601 H263_Deblock(video->currVop->vChan, video->width >> 1, video->height >> 1, video->QPMB, video->headerInfo.Mode, 1, video->modified_quant);