Lines Matching refs:index
234 i32 picNum, picNumNoWrap, index;
286 index = FindDpbPic(dpb, picNum, isShortTerm);
287 if (index < 0 || !IS_EXISTING(dpb->buffer[index]))
294 dpb->list[refIdx++] = &dpb->buffer[index];
297 if(dpb->list[j] != &dpb->buffer[index])
326 i32 index, picNum;
334 index = FindDpbPic(dpb, picNum, HANTRO_TRUE);
335 if (index < 0)
338 SET_UNUSED(dpb->buffer[index]);
340 if (!dpb->buffer[index].toBeDisplayed)
366 i32 index;
370 index = FindDpbPic(dpb, (i32)longTermPicNum, HANTRO_FALSE);
371 if (index < 0)
374 SET_UNUSED(dpb->buffer[index]);
376 if (!dpb->buffer[index].toBeDisplayed)
406 i32 index, picNum;
433 index = FindDpbPic(dpb, picNum, HANTRO_TRUE);
434 if (index < 0)
436 if (!IS_EXISTING(dpb->buffer[index]))
439 dpb->buffer[index].status = LONG_TERM;
440 dpb->buffer[index].picNum = (i32)longTermFrameIdx;
842 NULL if invalid index or non-existing picture referred
846 u8* h264bsdGetRefPicData(dpbStorage_t *dpb, u32 index)
853 if(index > 16 || dpb->list[index] == NULL)
855 else if(!IS_EXISTING(*dpb->list[index]))
858 return(dpb->list[index]->data);
914 i32 index, picNum;
925 index = -1;
930 if (dpb->buffer[i].picNum < picNum || index == -1)
932 index = (i32)i;
935 if (index >= 0)
937 SET_UNUSED(dpb->buffer[index]);
939 if (!dpb->buffer[index].toBeDisplayed)
1127 index of the picture in the buffer