Lines Matching refs:i

206         RK_U32 i = 0;  in get_info_input()  local
207 for (i = 0; i < MPP_ARRAY_ELEMS(pp->RefFrameList); i++) { in get_info_input()
208 if (pp->RefFrameList[i].bPicEntry != 0xff) { in get_info_input()
209 priv->new_dpb[i].valid = 1; in get_info_input()
210 priv->new_dpb[i].is_long_term = pp->RefFrameList[i].AssociatedFlag; in get_info_input()
211 priv->new_dpb[i].slot_index = pp->RefFrameList[i].Index7Bits; in get_info_input()
212 priv->new_dpb[i].top_poc = pp->FieldOrderCntList[i][0]; in get_info_input()
213 priv->new_dpb[i].bot_poc = pp->FieldOrderCntList[i][1]; in get_info_input()
214 if (priv->new_dpb[i].is_long_term) { in get_info_input()
215 priv->new_dpb[i].long_term_frame_idx = pp->FrameNumList[i]; in get_info_input()
217 priv->new_dpb[i].frame_num = pp->FrameNumList[i]; in get_info_input()
219 priv->new_dpb[i].long_term_pic_num = pp->LongTermPicNumList[i]; in get_info_input()
220 priv->new_dpb[i].top_used = ((pp->UsedForReferenceFlags in get_info_input()
221 >> (2 * i + 0)) & 0x1) ? 1 : 0; in get_info_input()
222 priv->new_dpb[i].bot_used = ((pp->UsedForReferenceFlags in get_info_input()
223 >> (2 * i + 1)) & 0x1) ? 1 : 0; in get_info_input()
224 priv->new_dpb[i].colmv_is_used = ((pp->RefPicColmvUsedFlags >> i) & 0x1) ? 1 : 0; in get_info_input()
225 priv->new_dpb[i].field_flag = ((pp->RefPicFiledFlags >> i) & 0x1) ? 1 : 0; in get_info_input()
226 priv->new_dpb[i].is_ilt_flag = ((pp->UsedForInTerviewflags >> i) & 0x1) ? 1 : 0; in get_info_input()
229 for (i = 0; i < MPP_ARRAY_ELEMS(pp->ViewIDList); i++) { in get_info_input()
230 priv->new_dpb[i].view_id = pp->ViewIDList[i]; in get_info_input()
233 for (i = 0; i < MPP_ARRAY_ELEMS(pp->RefPicLayerIdList); i++) { in get_info_input()
234 priv->new_dpb[i].voidx = pp->RefPicLayerIdList[i]; in get_info_input()
239 RK_U32 i = 0, j = 0; in get_info_input() local
242 for (i = 0; i < MPP_ARRAY_ELEMS(p_long->RefPicList[j]); i++) { in get_info_input()
243 if (p_long->RefPicList[j][i].bPicEntry != 0xff) { in get_info_input()
244 priv->refinfo[j][i].valid = 1; in get_info_input()
245 priv->refinfo[j][i].dpb_idx = p_long->RefPicList[j][i].Index7Bits; in get_info_input()
246 priv->refinfo[j][i].bottom_flag = p_long->RefPicList[j][i].AssociatedFlag; in get_info_input()
270 RK_U32 i = 0; in refill_info_input() local
277 for (i = 0; i < MPP_ARRAY_ELEMS(pp->RefFrameList); i++) { in refill_info_input()
278 if (old_dpb[i].valid) { in refill_info_input()
279 fill_picture_entry(&pp->RefFrameList[i], old_dpb[i].slot_index, in refill_info_input()
280 old_dpb[i].is_long_term); in refill_info_input()
281 pp->FieldOrderCntList[i][0] = old_dpb[i].top_poc; in refill_info_input()
282 pp->FieldOrderCntList[i][1] = old_dpb[i].bot_poc; in refill_info_input()
283 pp->FrameNumList[i] = old_dpb[i].is_long_term ? in refill_info_input()
284 old_dpb[i].long_term_frame_idx : old_dpb[i].frame_num; in refill_info_input()
285 pp->LongTermPicNumList[i] = old_dpb[i].long_term_pic_num; in refill_info_input()
286 if (old_dpb[i].top_used) { //!< top_field in refill_info_input()
287 pp->UsedForReferenceFlags |= 1 << (2 * i + 0); in refill_info_input()
289 if (old_dpb[i].bot_used) { //!< bot_field in refill_info_input()
290 pp->UsedForReferenceFlags |= 1 << (2 * i + 1); in refill_info_input()
292 if (old_dpb[i].colmv_is_used) { in refill_info_input()
293 pp->RefPicColmvUsedFlags |= 1 << i; in refill_info_input()
295 if (old_dpb[i].field_flag) { in refill_info_input()
296 pp->RefPicFiledFlags |= 1 << i; in refill_info_input()
298 if (old_dpb[i].is_ilt_flag) { in refill_info_input()
299 pp->UsedForInTerviewflags |= 1 << i; in refill_info_input()
302 pp->RefFrameList[i].bPicEntry = 0xff; in refill_info_input()
303 pp->FieldOrderCntList[i][0] = 0; in refill_info_input()
304 pp->FieldOrderCntList[i][1] = 0; in refill_info_input()
305 pp->FrameNumList[i] = 0; in refill_info_input()
306 pp->LongTermPicNumList[i] = 0; in refill_info_input()
309 for (i = 0; i < MPP_ARRAY_ELEMS(pp->ViewIDList); i++) { in refill_info_input()
310 pp->ViewIDList[i] = old_dpb[i].view_id; in refill_info_input()
313 for (i = 0; i < MPP_ARRAY_ELEMS(pp->RefPicLayerIdList); i++) { in refill_info_input()
314 pp->RefPicLayerIdList[i] = old_dpb[i].voidx; in refill_info_input()
319 RK_U32 i = 0, j = 0; in refill_info_input() local
322 for (i = 0; i < MPP_ARRAY_ELEMS(p_long->RefPicList[j]); i++) { in refill_info_input()
323 if (p[i].valid) { in refill_info_input()
324 fill_picture_entry(&p_long->RefPicList[j][i], in refill_info_input()
325 p[i].dpb_idx, p[i].bottom_flag); in refill_info_input()
327 p_long->RefPicList[j][i].bPicEntry = 0xff; in refill_info_input()
344 RK_U32 i = 0, j = 0; in adjust_input() local
352 for (i = 0; i < MPP_ARRAY_ELEMS(priv->old_dpb[priv->layed_id]); i++) { in adjust_input()
354i, old_dpb[i].frame_num, old_dpb[i].field_flag, old_dpb[i].top_poc, old_dpb[i].bot_poc); in adjust_input()
356 for (i = 0; i < MPP_ARRAY_ELEMS(priv->old_dpb[priv->layed_id]); i++) { in adjust_input()
358i, new_dpb[i].frame_num, new_dpb[i].field_flag, new_dpb[i].top_poc, new_dpb[i].bot_poc); in adjust_input()
363 for (i = 0; i < MPP_ARRAY_ELEMS(priv->old_dpb[priv->layed_id]); i++) { in adjust_input()
365 if (old_dpb[i].valid) { in adjust_input()
369 ((old_dpb[i].frame_num == new_dpb[j].frame_num) in adjust_input()
371 find_flag = ((old_dpb[i].slot_index in adjust_input()
374 if (new_dpb[j].top_used && old_dpb[i].top_used) { in adjust_input()
376 ((old_dpb[i].top_poc == new_dpb[j].top_poc) in adjust_input()
379 if (new_dpb[j].bot_used && old_dpb[i].bot_used) { in adjust_input()
381 ((old_dpb[i].bot_poc == new_dpb[j].bot_poc) in adjust_input()
386 new_dpb[j].new_dpb_idx = i; in adjust_input()
387 old_dpb[i] = new_dpb[j]; in adjust_input()
395 memset(&old_dpb[i], 0, sizeof(old_dpb[i])); in adjust_input()
403 for (i = 0; i < MPP_ARRAY_ELEMS(priv->old_dpb[priv->layed_id]); i++) { in adjust_input()
404 if (old_dpb[i].valid == 0) { in adjust_input()
405 old_dpb[i] = new_dpb[j]; in adjust_input()
406 new_dpb[j].new_dpb_idx = i; in adjust_input()
414 for (i = 0; i < MPP_ARRAY_ELEMS(priv->old_dpb[1]); i++) { in adjust_input()
415 if ((old_dpb[i].valid == 0) && old_dpb[i].is_ilt_flag) { in adjust_input()
416 priv->ilt_dpb = &old_dpb[i]; in adjust_input()
424 RK_U32 i = 0, j = 0; in adjust_input() local
429 for (i = 0; i < MPP_ARRAY_ELEMS(priv->refinfo[j]); i++) { in adjust_input()
430 if (p[i].valid) { in adjust_input()
431 p[i].dpb_idx = new_dpb[p[i].dpb_idx].new_dpb_idx; in adjust_input()