Lines Matching defs:fs

35         dpb->fs[num_fs] = NULL;
82 /* fs is an array pointers to AVCDecPicture */
83 dpb->fs[num_fs] = (AVCFrameStore*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCFrameStore), 101/*DEFAULT_ATTR*/);
84 if (dpb->fs[num_fs] == NULL)
90 dpb->fs[num_fs]->base_dpb = dpb->decoded_picture_buffer + dpb->used_size;
92 dpb->fs[num_fs]->IsReference = 0;
93 dpb->fs[num_fs]->IsLongTerm = 0;
94 dpb->fs[num_fs]->IsOutputted = 3;
95 dpb->fs[num_fs]->frame.RefIdx = refIdx++; /* this value will remain unchanged through out the encoding session */
96 dpb->fs[num_fs]->frame.picType = AVC_FRAME;
97 dpb->fs[num_fs]->frame.isLongTerm = 0;
98 dpb->fs[num_fs]->frame.isReference = 0;
99 video->RefPicList0[num_fs] = &(dpb->fs[num_fs]->frame);
100 dpb->fs[num_fs]->frame.padded = 0;
126 dpb->fs[ii]->IsReference = 0;
127 dpb->fs[ii]->IsOutputted |= 0x02;
213 if (dpb->fs[ii] != NULL)
215 avcHandle->CBAVC_Free(userData, dpb->fs[ii]);
216 dpb->fs[ii] = NULL;
238 /* look for next unused dpb->fs, or complementary field pair */
246 if (dpb->fs[ii]->IsReference == 0 && dpb->fs[ii]->IsOutputted == 3)
248 video->currFS = dpb->fs[ii];
287 /* assign dbp->base_dpb to fs[i]->frame.Sl, Scb, Scr .*/
329 if (dpb->fs[ii] == video->currFS)
356 if (dpb->fs[ii] != video->currFS) /* not current frame */
358 dpb->fs[ii]->IsReference = 0; /* mark as unused for reference */
359 dpb->fs[ii]->IsLongTerm = 0; /* but still used until output */
360 dpb->fs[ii]->IsOutputted |= 0x02;
362 if (dpb->fs[ii]->IsOutputted == 3)
390 if (dpb->fs[ii] != video->currFS) /* not current frame */
392 dpb->fs[ii]->IsOutputted = 3;
443 if (dpb->fs[ii]->IsReference)
469 if (dpb->fs[ii] != video->currFS) /* do not count the current frame */
471 if (dpb->fs[ii]->IsLongTerm)
475 else if (dpb->fs[ii]->IsReference)
491 if (dpb->fs[ii]->IsReference && !dpb->fs[ii]->IsLongTerm)
493 if (dpb->fs[ii]->FrameNumWrap < MinFrameNumWrap)
495 MinFrameNumWrap = dpb->fs[ii]->FrameNumWrap;
506 dpb->fs[MinIdx]->IsReference = 0;
507 dpb->fs[MinIdx]->IsLongTerm = 0;
508 dpb->fs[MinIdx]->frame.isReference = FALSE;
509 dpb->fs[MinIdx]->frame.isLongTerm = FALSE;
510 dpb->fs[MinIdx]->IsOutputted |= 0x02;
512 if (dpb->fs[MinIdx]->IsOutputted == 3)
575 if (dpb->fs[ii]->IsReference == 3 && dpb->fs[ii]->IsLongTerm == 0)
577 if (dpb->fs[ii]->frame.PicNum == picNumX)
595 if (dpb->fs[ii]->IsLongTerm == 3)
597 if (dpb->fs[ii]->frame.LongTermPicNum == long_term_pic_num)
613 /* look for fs[i] with long_term_frame_idx */
622 if (dpb->fs[ii]->IsReference == 3)
624 if ((dpb->fs[ii]->frame.isLongTerm == FALSE) && (dpb->fs[ii]->frame.PicNum == picNumX))
626 dpb->fs[ii]->LongTermFrameIdx = long_term_frame_idx;
627 dpb->fs[ii]->frame.LongTermPicNum = long_term_frame_idx;
629 dpb->fs[ii]->frame.isLongTerm = TRUE;
631 dpb->fs[ii]->IsLongTerm = 3;
649 if (dpb->fs[ii]->IsLongTerm && dpb->fs[ii] != video->currFS)
651 if (dpb->fs[ii]->LongTermFrameIdx > video->MaxLongTermFrameIdx)
668 if (dpb->fs[ii] != video->currFS) // MC_FIX
694 AVCFrameStore *fs = dpb->fs[idx];
695 fs->frame.isReference = FALSE;
696 fs->frame.isLongTerm = FALSE;
698 fs->IsLongTerm = 0;
699 fs->IsReference = 0;
700 fs->IsOutputted |= 0x02;
702 if (fs->IsOutputted == 3)
716 if (dpb->fs[ii]->IsLongTerm && (dpb->fs[ii]->LongTermFrameIdx == (int)long_term_frame_idx))