Lines Matching refs:video
67 /* Purpose : Initialization of the MPEG-4 video decoder library. */
78 VideoDecData *video = (VideoDecData *) decCtrl->videoDecoderData;
94 video = IMEM_VideoDecData;
96 video = (VideoDecData *) oscl_malloc(sizeof(VideoDecData));
98 if (video != NULL)
100 oscl_memset(video, 0, sizeof(VideoDecData));
101 video->memoryUsage = sizeof(VideoDecData);
102 video->numberOfLayers = nLayers;
104 video->vol = (Vol **) IMEM_VOL;
111 video->vol = (Vol **) oscl_malloc(nLayers * sizeof(Vol *));
113 if (video->vol == NULL) status = PV_FALSE;
114 video->memoryUsage += nLayers * sizeof(Vol *);
119 decCtrl->videoDecoderData = (void *) video;
120 video->videoDecControls = decCtrl; /* yes. we have a cyclic */
126 video->currVop = IMEM_currVop;
127 if (video->currVop == NULL) status = PV_FALSE;
128 else oscl_memset(video->currVop, 0, sizeof(Vop));
129 video->prevVop = IMEM_prevVop;
130 if (video->prevVop == NULL) status = PV_FALSE;
131 else oscl_memset(video->prevVop, 0, sizeof(Vop));
132 video->memoryUsage += (sizeof(Vop) * 2);
133 video->vopHeader = (Vop **) IMEM_vopHEADER;
136 video->currVop = (Vop *) oscl_malloc(sizeof(Vop));
137 if (video->currVop == NULL) status = PV_FALSE;
138 else oscl_memset(video->currVop, 0, sizeof(Vop));
139 video->prevVop = (Vop *) oscl_malloc(sizeof(Vop));
140 if (video->prevVop == NULL) status = PV_FALSE;
141 else oscl_memset(video->prevVop, 0, sizeof(Vop));
142 video->memoryUsage += (sizeof(Vop) * 2);
149 video->vopHeader = (Vop **) oscl_malloc(sizeof(Vop *) * nLayers);
151 if (video->vopHeader == NULL) status = PV_FALSE;
152 else oscl_memset(video->vopHeader, 0, sizeof(Vop *)*nLayers);
153 video->memoryUsage += (sizeof(Vop *) * nLayers);
155 video->initialized = PV_FALSE;
160 video->frame_idx = -1;
167 video->vopHeader[idx] = IMEM_vopHeader[idx];
169 video->vopHeader[idx] = (Vop *) oscl_malloc(sizeof(Vop));
171 if (video->vopHeader[idx] == NULL)
178 oscl_memset(video->vopHeader[idx], 0, sizeof(Vop));
179 video->vopHeader[idx]->timeStamp = 0;
180 video->memoryUsage += (sizeof(Vop));
183 video->vol[idx] = IMEM_vol[idx];
184 video->memoryUsage += sizeof(Vol);
185 oscl_memset(video->vol[idx], 0, sizeof(Vol));
186 if (video->vol[idx] == NULL) status = PV_FALSE;
189 video->vol[idx] = (Vol *) oscl_malloc(sizeof(Vol));
190 if (video->vol[idx] == NULL)
197 video->memoryUsage += sizeof(Vol);
198 oscl_memset(video->vol[idx], 0, sizeof(Vol));
203 video->memoryUsage += sizeof(BitstreamDecVideo);
218 video->memoryUsage += buffer_size;
219 video->vol[idx]->bitstream = stream;
220 video->vol[idx]->volID = idx;
221 video->vol[idx]->timeInc_offset = 0; /* 11/12/01 */
222 video->vlcDecCoeffIntra = &VlcDecTCOEFShortHeader;
223 video->vlcDecCoeffInter = &VlcDecTCOEFShortHeader;
229 switch (DecodeVOLHeader(video, idx))
250 video->shortVideoHeader = PV_TRUE;
253 if (video->shortVideoHeader == PV_TRUE)
259 video->prevVop->temporalRef = 0; /* 11/12/01 */
261 video->vol[idx]->quantType = 0;
262 video->vol[idx]->quantPrecision = 5;
263 video->vol[idx]->errorResDisable = 1;
264 video->vol[idx]->dataPartitioning = 0;
265 video->vol[idx]->useReverseVLC = 0;
266 video->intra_acdcPredDisable = 1;
267 video->vol[idx]->scalability = 0;
269 video->displayWidth = width;
270 video->displayHeight = height;
271 video->width = (width + 15) & -16;
272 video->height = (height + 15) & -16;
273 video->size = (int32)video->width * video->height;
276 video->modified_quant = 0;
277 video->advanced_INTRA = 0;
278 video->deblocking = 0;
279 video->slice_structure = 0;
290 video->initialized = PV_TRUE;
306 VideoDecData *video = (VideoDecData *) decCtrl->videoDecoderData;
312 if (video->shortVideoHeader == PV_TRUE)
314 video->displayWidth = width;
315 video->displayHeight = height;
316 video->width = (width + 15) & -16;
317 video->height = (height + 15) & -16;
319 video->nMBPerRow =
320 video->nMBinGOB = video->width / MB_SIZE;
321 video->nMBPerCol =
322 video->nGOBinVop = video->height / MB_SIZE;
323 video->nTotalMB =
324 video->nMBPerRow * video->nMBPerCol;
327 if (((uint64_t)video->width * video->height) > (uint64_t)INT32_MAX / sizeof(PIXEL)) {
331 size = (int32)sizeof(PIXEL) * video->width * video->height;
336 video->currVop->yChan = IMEM_currVop_yChan; /* Allocate memory for all VOP OKA 3/2/1*/
337 if (video->currVop->yChan == NULL) status = PV_FALSE;
338 video->currVop->uChan = video->currVop->yChan + size;
339 video->currVop->vChan = video->currVop->uChan + (size >> 2);
341 video->prevVop->yChan = IMEM_prevVop_yChan; /* Allocate memory for all VOP OKA 3/2/1*/
342 if (video->prevVop->yChan == NULL) status = PV_FALSE;
343 video->prevVop->uChan = video->prevVop->yChan + size;
344 video->prevVop->vChan = video->prevVop->uChan + (size >> 2);
349 video->currVop->yChan = (PIXEL *) oscl_malloc(size * 3 / 2); /* Allocate memory for all VOP OKA 3/2/1*/
350 if (video->currVop->yChan == NULL) status = PV_FALSE;
352 video->currVop->uChan = video->currVop->yChan + size;
353 video->currVop->vChan = video->currVop->uChan + (size >> 2);
354 video->prevVop->yChan = (PIXEL *) oscl_malloc(size * 3 / 2); /* Allocate memory for all VOP OKA 3/2/1*/
355 if (video->prevVop->yChan == NULL) status = PV_FALSE;
357 video->prevVop->uChan = video->prevVop->yChan + size;
358 video->prevVop->vChan = video->prevVop->uChan + (size >> 2);
360 video->memoryUsage += (size * 3);
366 video->prevEnhcVop = (Vop *) oscl_malloc(sizeof(Vop));
367 video->memoryUsage += (sizeof(Vop));
368 if (video->prevEnhcVop == NULL)
374 oscl_memset(video->prevEnhcVop, 0, sizeof(Vop));
380 video->prevEnhcVop->yChan = (PIXEL *) oscl_malloc(size * 3 / 2); /* Allocate memory for all VOP OKA 3/2/1*/
381 if (video->prevEnhcVop->yChan == NULL) status = PV_FALSE;
382 video->prevEnhcVop->uChan = video->prevEnhcVop->yChan + size;
383 video->prevEnhcVop->vChan = video->prevEnhcVop->uChan + (size >> 2);
384 video->memoryUsage += (3 * size / 2);
391 nTotalMB = video->nTotalMB;
392 nMBPerRow = video->nMBPerRow;
395 video->sliceNo = (uint8 *)(IMEM_sliceNo);
396 if (video->sliceNo == NULL) status = PV_FALSE;
397 video->memoryUsage += nTotalMB;
398 video->acPredFlag = (uint8 *)(IMEM_acPredFlag);
399 if (video->acPredFlag == NULL) status = PV_FALSE;
400 video->memoryUsage += (nTotalMB);
401 video->predDC = (typeDCStore *)(IMEM_predDC);
402 if (video->predDC == NULL) status = PV_FALSE;
403 video->memoryUsage += (nTotalMB * sizeof(typeDCStore));
404 video->predDCAC_col = (typeDCACStore *)(IMEM_predDCAC_col);
405 if (video->predDCAC_col == NULL) status = PV_FALSE;
406 video->memoryUsage += ((nMBPerRow + 1) * sizeof(typeDCACStore));
407 video->predDCAC_row = video->predDCAC_col + 1;
408 video->headerInfo.Mode = (uint8 *)(IMEM_headerInfo_Mode);
409 if (video->headerInfo.Mode == NULL) status = PV_FALSE;
410 video->memoryUsage += nTotalMB;
411 video->headerInfo.CBP = (uint8 *)(IMEM_headerInfo_CBP);
412 if (video->headerInfo.CBP == NULL) status = PV_FALSE;
413 video->memoryUsage += nTotalMB;
414 video->QPMB = (int *)(IMEM_headerInfo_QPMB);
415 if (video->QPMB == NULL) status = PV_FALSE;
416 video
417 video->mblock = &IMEM_mblock;
418 if (video->mblock == NULL) status = PV_FALSE;
419 oscl_memset(video->mblock->block, 0, sizeof(int16)*6*NCOEFF_BLOCK); // Aug 23,2005
421 video->memoryUsage += sizeof(MacroBlock);
422 video->motX = (MOT *)(IMEM_motX);
423 if (video->motX == NULL) status = PV_FALSE;
424 video->motY = (MOT *)(IMEM_motY);
425 if (video->motY == NULL) status = PV_FALSE;
426 video->memoryUsage += (sizeof(MOT) * 8 * nTotalMB);
428 video->sliceNo = (uint8 *) oscl_malloc(nTotalMB);
429 if (video->sliceNo == NULL) status = PV_FALSE;
430 video->memoryUsage += nTotalMB;
432 video->acPredFlag = (uint8 *) oscl_malloc(nTotalMB * sizeof(uint8));
433 if (video->acPredFlag == NULL) status = PV_FALSE;
434 video->memoryUsage += (nTotalMB);
439 video->predDC = (typeDCStore *) oscl_malloc(nTotalMB * sizeof(typeDCStore));
440 if (video->predDC == NULL) status = PV_FALSE;
441 video->memoryUsage += (nTotalMB * sizeof(typeDCStore));
447 video->predDCAC_col = (typeDCACStore *) oscl_malloc((nMBPerRow + 1) * sizeof(typeDCACStore));
448 if (video->predDCAC_col == NULL) status = PV_FALSE;
449 video->memoryUsage += ((nMBPerRow + 1) * sizeof(typeDCACStore));
453 video->predDCAC_row = video->predDCAC_col + 1; /* ACDC */
456 video->headerInfo.Mode = (uint8 *) oscl_malloc(nTotalMB);
457 if (video->headerInfo.Mode == NULL) status = PV_FALSE;
458 video->memoryUsage += nTotalMB;
459 video->headerInfo.CBP = (uint8 *) oscl_malloc(nTotalMB);
460 if (video->headerInfo.CBP == NULL) status = PV_FALSE;
461 video->memoryUsage += nTotalMB;
466 video->QPMB = (int16 *) oscl_malloc(nTotalMB * sizeof(int16));
467 if (video->QPMB == NULL) status = PV_FALSE;
468 video->memoryUsage += (nTotalMB * sizeof(int));
471 video->mblock = (MacroBlock *) oscl_malloc(sizeof(MacroBlock));
472 if (video->mblock == NULL)
478 oscl_memset(video->mblock->block, 0, sizeof(int16)*6*NCOEFF_BLOCK); // Aug 23,2005
480 video->memoryUsage += sizeof(MacroBlock);
486 video->motX = (MOT *) oscl_malloc(sizeof(MOT) * 4 * nTotalMB);
487 if (video->motX == NULL) status = PV_FALSE;
488 video->motY = (MOT *) oscl_malloc(sizeof(MOT) * 4 * nTotalMB);
489 if (video->motY == NULL) status = PV_FALSE;
490 video->memoryUsage += (sizeof(MOT) * 8 * nTotalMB);
496 video->pstprcTypCur = IMEM_pstprcTypCur;
497 video->memoryUsage += (nTotalMB * 6);
498 if (video->pstprcTypCur == NULL)
504 oscl_memset(video->pstprcTypCur, 0, 4*nTotalMB + 2*nTotalMB);
507 video->pstprcTypPrv = IMEM_pstprcTypPrv;
508 video->memoryUsage += (nTotalMB * 6);
509 if (video->pstprcTypPrv == NULL)
515 oscl_memset(video->pstprcTypPrv, 0, nTotalMB*6);
522 video->pstprcTypCur = (uint8 *) oscl_malloc(nTotalMB * 6);
523 video->memoryUsage += (nTotalMB * 6);
524 if (video->pstprcTypCur == NULL)
530 oscl_memset(video->pstprcTypCur, 0, 4*nTotalMB + 2*nTotalMB);
533 video->pstprcTypPrv = (uint8 *) oscl_malloc(nTotalMB * 6);
534 video->memoryUsage += (nTotalMB * 6);
535 if (video->pstprcTypPrv == NULL)
541 oscl_memset(video->pstprcTypPrv, 0, nTotalMB*6);
549 video->prevVop->predictionType = I_VOP;
550 video->prevVop->timeStamp = 0;
552 oscl_memset(video->prevVop->yChan, 16, sizeof(uint8)*size); /* 10/31/01 */
553 oscl_memset(video->prevVop->uChan, 128, sizeof(uint8)*size / 2);
555 oscl_memset(video->currVop->yChan, 0, sizeof(uint8)*size*3 / 2);
558 oscl_memset(video->prevEnhcVop->yChan, 0, sizeof(uint8)*size*3 / 2);
559 video->prevEnhcVop->timeStamp = 0;
561 video->concealFrame = video->prevVop->yChan; /* 07/07/2001 */
562 decCtrl->outputFrame = video->prevVop->yChan; /* 06/19/2002 */
566 video->currLayer = 0;
573 /* Purpose : Reset video timestamps */
580 VideoDecData *video = (VideoDecData *) decCtrl->videoDecoderData;
585 video->vopHeader[idx]->timeStamp = 0;
587 video->prevVop->timeStamp = 0;
589 video->prevEnhcVop->timeStamp = 0;
591 oscl_memset(video->mblock->block, 0, sizeof(int16)*6*NCOEFF_BLOCK); // Aug 23,2005
600 /* Purpose : Cleanup of the MPEG-4 video decoder library. */
608 VideoDecData *video = (VideoDecData *) decCtrl->videoDecoderData;
610 if (video)
613 video->pstprcTypCur = NULL;
614 video->pstprcTypPrv = NULL;
617 video->acPredFlag = NULL;
618 video->sliceNo = NULL;
619 video->motX = NULL;
620 video->motY = NULL;
621 video->mblock = NULL;
622 video->QPMB = NULL;
623 video->predDC = NULL;
624 video->predDCAC_row = NULL;
625 video->predDCAC_col = NULL;
626 video->headerInfo.Mode = NULL;
627 video->headerInfo.CBP = NULL;
628 if (video->numberOfLayers > 1)
630 if (video->prevEnhcVop)
632 video->prevEnhcVop->uChan = NULL;
633 video->prevEnhcVop->vChan = NULL;
634 if (video->prevEnhcVop->yChan) oscl_free(video->prevEnhcVop->yChan);
635 oscl_free(video->prevEnhcVop);
638 if (video->currVop)
640 video->currVop->uChan = NULL;
641 video->currVop->vChan = NULL;
642 if (video->currVop->yChan)
643 video->currVop->yChan = NULL;
644 video->currVop = NULL;
646 if (video->prevVop)
648 video->prevVop->uChan = NULL;
649 video->prevVop->vChan = NULL;
650 if (video->prevVop->yChan)
651 video->prevVop->yChan = NULL;
652 video->prevVop = NULL;
655 if (video->vol)
657 for (idx = 0; idx < video->numberOfLayers; idx++)
659 if (video->vol[idx])
661 BitstreamClose(video->vol[idx]->bitstream);
662 video->vol[idx]->bitstream = NULL;
663 video->vol[idx] = NULL;
665 video->vopHeader[idx] = NULL;
668 video->vol = NULL;
669 video->vopHeader = NULL;
672 video = NULL;
678 if (video)
681 if (video->pstprcTypCur) oscl_free(video->pstprcTypCur);
682 if (video->pstprcTypPrv) oscl_free(video->pstprcTypPrv);
684 if (video->predDC) oscl_free(video->predDC);
685 video->predDCAC_row = NULL;
686 if (video->predDCAC_col) oscl_free(video->predDCAC_col);
687 if (video->motX) oscl_free(video->motX);
688 if (video->motY) oscl_free(video->motY);
689 if (video->mblock) oscl_free(video->mblock);
690 if (video->QPMB) oscl_free(video->QPMB);
691 if (video->headerInfo.Mode) oscl_free(video->headerInfo.Mode);
692 if (video->headerInfo.CBP) oscl_free(video->headerInfo.CBP);
693 if (video->sliceNo) oscl_free(video->sliceNo);
694 if (video->acPredFlag) oscl_free(video->acPredFlag);
696 if (video->numberOfLayers > 1)
698 if (video->prevEnhcVop)
700 video->prevEnhcVop->uChan = NULL;
701 video->prevEnhcVop->vChan = NULL;
702 if (video->prevEnhcVop->yChan) oscl_free(video->prevEnhcVop->yChan);
703 oscl_free(video->prevEnhcVop);
706 if (video->currVop)
710 video->currVop->uChan = NULL;
711 video->currVop->vChan = NULL;
712 if (video->currVop->yChan)
713 oscl_free(video->currVop->yChan);
715 oscl_free(video->currVop);
717 if (video->prevVop)
720 video->prevVop->uChan = NULL;
721 video->prevVop->vChan = NULL;
722 if (video->prevVop->yChan)
723 oscl_free(video->prevVop->yChan);
725 oscl_free(video->prevVop);
728 if (video->vol)
730 for (idx = 0; idx < video->numberOfLayers; idx++)
732 if (video->vol[idx])
734 if (video->vol[idx]->bitstream)
736 BitstreamClose(video->vol[idx]->bitstream);
737 oscl_free(video->vol[idx]->bitstream);
739 oscl_free(video->vol[idx]);
743 oscl_free(video->vol);
746 for (idx = 0; idx < video->numberOfLayers; idx++)
748 if (video->vopHeader[idx]) oscl_free(video->vopHeader[idx]);
751 if (video->vopHeader) oscl_free(video->vopHeader);
753 oscl_free(video);
772 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
773 *display_width = video->displayWidth;
774 *display_height = video->displayHeight;
778 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
779 *width = video->width;
780 *height = video->height;
794 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
795 return video->currTimestamp;
810 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
811 video->postFilterType = mode;
826 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
832 sum += video->nBitsPerVop[idx];
834 sum = (sum * video->frameRate) / (10 * BITRATE_AVERAGE_WINDOW);
850 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
852 return video->frameRate;
880 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
881 return video->currLayer;
894 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
895 return video->memoryUsage;
911 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
912 if (video->shortVideoHeader)
1045 /* Purpose : Decode one video frame and return a YUV-12 image. */
1084 VideoDecData *video = (VideoDecData *) decCtrl->videoDecoderData;
1086 Vop *currVop = video->currVop;
1087 Vop **vopHeader = video->vopHeader;
1116 video->currLayer = idx;
1117 stream = video->vol[idx]->bitstream;
1120 while ((status = DecodeVOPHeader(video, vopHeader[idx], FALSE)) != PV_SUCCESS)
1134 timestamp[idx] = CalcVopDisplayTime(video->vol[idx], vopHeader[idx], video->shortVideoHeader);
1159 video->currLayer = target_layer;
1160 currVol = video->vol[target_layer];
1161 video->bitstream = stream = currVol->bitstream;
1167 stream = video->vol[target_layer]->bitstream;
1170 while (DecodeVOPHeader(video, vopHeader[target_layer], TRUE) != PV_SUCCESS)
1181 video->vol[target_layer]->timeInc_offset = vopHeader[target_layer]->timeInc;
1182 video->vol[target_layer]->moduloTimeBase = timestamp[target_layer];
1190 video->currLayer = target_layer = 0;
1191 currVol = video->vol[0];
1192 video->bitstream = stream = currVol->bitstream;
1196 if (video->shortVideoHeader)
1198 while (DecodeShortHeader(video, vopHeader[0]) != PV_SUCCESS)
1205 if (video->initialized == PV_FALSE)
1207 video->displayWidth = video->width = 0;
1208 video->displayHeight = video->height = 0;
1218 video->vol[0]->moduloTimeBase = 30 * ((timestamp[0] + 17) / 1001) + (30 * ((timestamp[0] + 17) % 1001) / 1001);
1222 vopHeader[0]->timeStamp = CalcVopDisplayTime(currVol, vopHeader[0], video->shortVideoHeader);
1226 while (DecodeVOPHeader(video, vopHeader[0], FALSE) != PV_SUCCESS)
1240 video->vol[0]->timeInc_offset = vopHeader[0]->timeInc;
1241 video->vol[0]->moduloTimeBase = timestamp[0]; /* 11/12/2001 */
1246 vopHeader[0]->timeStamp = CalcVopDisplayTime(currVol, vopHeader[0], video->shortVideoHeader);
1255 timestamp[target_layer] = video->currTimestamp = vopHeader[target_layer]->timeStamp;
1272 header_info->timestamp = video->currTimestamp;
1295 VideoDecData *video = (VideoDecData *) decCtrl->videoDecoderData;
1296 int target_layer = video->currLayer;
1297 Vol *currVol = video->vol[target_layer];
1298 Vop *currVop = video->currVop;
1299 Vop *prevVop = video->prevVop;
1332 if (video->prevEnhcVop->timeStamp > video->prevVop->timeStamp)
1334 video->prevVop = video->prevEnhcVop;
1338 oscl_memcpy(currVop->yChan, video->prevVop->yChan, (decCtrl->size*3) / 2);
1340 video->prevVop = prevVop;
1342 video->concealFrame = currVop->yChan; /* 07/07/2001 */
1344 video->vop_coding_type = currVop->predictionType; /* 07/09/01 */
1351 tempVopPtr = video->prevEnhcVop;
1352 video->prevEnhcVop = video->currVop;
1353 video->currVop = tempVopPtr;
1357 tempVopPtr = video->prevVop;
1358 video->prevVop = video->currVop;
1359 video->currVop = tempVopPtr;
1364 video->prevEnhcVop->timeStamp = currVop->timeStamp;
1368 video->prevVop->timeStamp = currVop->timeStamp;
1371 video->vop_coding_type = currVop->predictionType; /* 07/09/01 */
1376 video->vop_coding_type = P_VOP;
1398 /* Setup video->prevVop before we call PV_DecodeVop(). 04/24/2001 */
1399 if (video->prevEnhcVop->timeStamp >= video->prevVop->timeStamp)
1400 video->prevVop = video->prevEnhcVop;
1406 if (video->prevEnhcVop->timeStamp > video->prevVop->timeStamp)
1407 video->prevVop = video->prevEnhcVop;
1425 idx = ++video->frame_idx % BITRATE_AVERAGE_WINDOW;
1428 status = PV_DecodeVop(video);
1429 video->nBitsPerVop[idx] = getPointer(currVol->bitstream);
1430 video->prevTimestamp[idx] = currVop->timeStamp;
1432 /* restore video->prevVop after PV_DecodeVop(). 04/24/2001 */
1433 // if (currVop->refSelectCode == 0) video->prevVop = prevVop;
1434 video->prevVop = prevVop;
1437 video->duration = video->prevTimestamp[idx];
1438 video->duration -= video->prevTimestamp[(++idx)%BITRATE_AVERAGE_WINDOW];
1439 if (video->duration > 0)
1441 video->frameRate = (int)(FRAMERATE_SCALE) / video->duration;
1477 video->concealFrame = video->currVop->yChan; /* 07/07/2001 */
1479 video->vop_coding_type = video->currVop->predictionType; /* 07/09/01 */
1481 decCtrl->outputFrame = video->currVop->yChan;
1486 tempVopPtr = video->prevEnhcVop;
1487 video->prevEnhcVop = video->currVop;
1488 video->currVop = tempVopPtr;
1492 tempVopPtr = video->prevVop;
1493 video->prevVop = video->currVop;
1494 video->currVop = tempVopPtr;
1509 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
1510 video->prevVop->yChan = (PIXEL *)YUV;
1511 video->prevVop->uChan = (PIXEL *)YUV + video->size;
1512 video->prevVop->vChan = (PIXEL *)video->prevVop->uChan + (decCtrl->size >> 2);
1513 oscl_memset(video->prevVop->yChan, 16, sizeof(uint8)*decCtrl->size); /* 10/31/01 */
1514 oscl_memset(video->prevVop->uChan, 128, sizeof(uint8)*decCtrl->size / 2);
1515 video->concealFrame = video->prevVop->yChan; /* 07/07/2001 */
1516 decCtrl->outputFrame = video->prevVop->yChan; /* 06/19/2002 */
1543 /* Purpose : This is a function that logs messages in the mpeg4 video */
1581 VideoDecData *video = (VideoDecData *)decCtrl->videoDecoderData;
1582 return (video->vop_coding_type == I_VOP);
1588 /* Purpose : PostProcess one video frame and return a YUV-12 image. */
1598 VideoDecData *video = (VideoDecData *) decCtrl->videoDecoderData;
1606 if (video->postFilterType)
1608 outputBuffer = video->currVop->yChan;
1616 if (video->postFilterType)
1619 PostFilter(video, video->postFilterType, outputBuffer);
1626 tmpvar = (int32)video->width * video->height;
1652 VideoDecData *video
1653 Vop *prevVop = video->prevVop;
1654 int width = video->width;
1656 int32 size = (int32)width * video->height;
1673 video->concealFrame = video->prevVop->yChan;
1674 video->vop_coding_type = I_VOP;
1675 decCtrl->outputFrame = video->prevVop->yChan;
1693 VideoDecData *video = (VideoDecData *) decCtrl->videoDecoderData;
1694 Vop *prevEnhcVop = video->prevEnhcVop;
1696 int32 size = (int32) video->width * video->height;
1698 if (video->numberOfLayers <= 1)
1715 video->concealFrame = video->prevEnhcVop->yChan;
1716 video->vop_coding_type = I_VOP;
1717 decCtrl->outputFrame = video->prevEnhcVop->yChan;