Lines Matching refs:dpb
466 DecodedPictureBuffer *dpb = mDPBs[!mToggleDPB]; in updateDPB() local
480 dpb->poc = getPOC(ref); in updateDPB()
482 dpb->surfaceBuffer = findRefSurfaceBuffer(ref); in updateDPB()
483 if (dpb->surfaceBuffer == NULL) { in updateDPB()
484 …ETRACE("Reference frame %d is missing for current frame %d", dpb->poc, getPOC(&(picParam->CurrPic)… in updateDPB()
488 if (dpb->poc == getPOC(&(picParam->CurrPic))) { in updateDPB()
490 dpb->surfaceBuffer = mAcquiredBuffer; in updateDPB()
494 dpb->surfaceBuffer = mLastReference; in updateDPB()
504 if (dpb->surfaceBuffer) { in updateDPB()
506 dpb->surfaceBuffer->asReferernce = true; in updateDPB()
508 dpb++; in updateDPB()
514 dpb->poc = getPOC(&(picParam->CurrPic)); in updateDPB()
515 dpb->surfaceBuffer = mAcquiredBuffer; in updateDPB()
516 dpb->surfaceBuffer->asReferernce = true; in updateDPB()
531 VAPictureH264 *dpb = picParam->ReferenceFrames; in updateReferenceFrames() local
535 dpb->picture_id = findSurface(dpb); in updateReferenceFrames()
536 dpb++; in updateReferenceFrames()
578 dpb->picture_id = findSurface(refList); in updateReferenceFrames()
579 if (dpb->picture_id == VA_INVALID_SURFACE) { in updateReferenceFrames()
581 dpb->picture_id = mLastReference->renderBuffer.surface; in updateReferenceFrames()
587 dpb->flags = refList->flags; in updateReferenceFrames()
590 if (dpb->flags & VA_PICTURE_H264_BOTTOM_FIELD) in updateReferenceFrames()
591 dpb->flags &= (~VA_PICTURE_H264_BOTTOM_FIELD); in updateReferenceFrames()
592 dpb->frame_idx = refList->frame_idx; in updateReferenceFrames()
593 dpb->TopFieldOrderCnt = refList->TopFieldOrderCnt; in updateReferenceFrames()
594 dpb->BottomFieldOrderCnt = refList->BottomFieldOrderCnt; in updateReferenceFrames()
595 dpb++; in updateReferenceFrames()
608 DecodedPictureBuffer *dpb = mDPBs[mToggleDPB]; in removeReferenceFromDPB() local
610 for (int32_t i = 0; i < DPB_SIZE; i++, dpb++) { in removeReferenceFromDPB()
611 if (poc == dpb->poc) { in removeReferenceFromDPB()
612 dpb->poc = (int32_t)POC_DEFAULT; in removeReferenceFromDPB()
613 if (dpb->surfaceBuffer) { in removeReferenceFromDPB()
614 dpb->surfaceBuffer->asReferernce = false; in removeReferenceFromDPB()
616 dpb->surfaceBuffer = NULL; in removeReferenceFromDPB()
640 DecodedPictureBuffer *dpb = mDPBs[mToggleDPB]; in findSurfaceBuffer() local
641 for (int32_t i = 0; i < DPB_SIZE; i++, dpb++) { in findSurfaceBuffer()
642 if (dpb->poc == pic->BottomFieldOrderCnt || in findSurfaceBuffer()
643 dpb->poc == pic->TopFieldOrderCnt) { in findSurfaceBuffer()
645 if (dpb->surfaceBuffer == NULL) { in findSurfaceBuffer()
648 return dpb->surfaceBuffer; in findSurfaceBuffer()
656 DecodedPictureBuffer *dpb = mDPBs[mToggleDPB]; in findRefSurfaceBuffer() local
658 dpb += (DPB_SIZE - 1); in findRefSurfaceBuffer()
659 for (int32_t i = DPB_SIZE; i > 0; i--, dpb--) { in findRefSurfaceBuffer()
660 if (dpb->poc == pic->BottomFieldOrderCnt || in findRefSurfaceBuffer()
661 dpb->poc == pic->TopFieldOrderCnt) { in findRefSurfaceBuffer()
663 if (dpb->surfaceBuffer == NULL) { in findRefSurfaceBuffer()
666 return dpb->surfaceBuffer; in findRefSurfaceBuffer()