Lines Matching refs:refs
60 b->refs[i].longterm = true; in v4l2_h264_init_reflist_builder()
68 if (!b->refs[i].longterm && dpb[i].frame_num > cur_frame_num) in v4l2_h264_init_reflist_builder()
69 b->refs[i].frame_num = (int)dpb[i].frame_num - in v4l2_h264_init_reflist_builder()
72 b->refs[i].frame_num = dpb[i].frame_num; in v4l2_h264_init_reflist_builder()
74 b->refs[i].top_field_order_cnt = dpb[i].top_field_order_cnt; in v4l2_h264_init_reflist_builder()
75 b->refs[i].bottom_field_order_cnt = dpb[i].bottom_field_order_cnt; in v4l2_h264_init_reflist_builder()
113 return min(b->refs[ref->index].top_field_order_cnt, in v4l2_h264_get_poc()
114 b->refs[ref->index].bottom_field_order_cnt); in v4l2_h264_get_poc()
116 return b->refs[ref->index].top_field_order_cnt; in v4l2_h264_get_poc()
118 return b->refs[ref->index].bottom_field_order_cnt; in v4l2_h264_get_poc()
138 if (builder->refs[idxa].longterm != builder->refs[idxb].longterm) { in v4l2_h264_p_ref_list_cmp()
140 if (!builder->refs[idxa].longterm) in v4l2_h264_p_ref_list_cmp()
154 if (!builder->refs[idxa].longterm) in v4l2_h264_p_ref_list_cmp()
155 return builder->refs[idxb].frame_num < in v4l2_h264_p_ref_list_cmp()
156 builder->refs[idxa].frame_num ? in v4l2_h264_p_ref_list_cmp()
159 return builder->refs[idxa].frame_num < builder->refs[idxb].frame_num ? in v4l2_h264_p_ref_list_cmp()
177 if (builder->refs[idxa].longterm != builder->refs[idxb].longterm) { in v4l2_h264_b0_ref_list_cmp()
179 if (!builder->refs[idxa].longterm) in v4l2_h264_b0_ref_list_cmp()
186 if (builder->refs[idxa].longterm) in v4l2_h264_b0_ref_list_cmp()
187 return builder->refs[idxa].frame_num < in v4l2_h264_b0_ref_list_cmp()
188 builder->refs[idxb].frame_num ? in v4l2_h264_b0_ref_list_cmp()
222 if (builder->refs[idxa].longterm != builder->refs[idxb].longterm) { in v4l2_h264_b1_ref_list_cmp()
224 if (!builder->refs[idxa].longterm) in v4l2_h264_b1_ref_list_cmp()
231 if (builder->refs[idxa].longterm) in v4l2_h264_b1_ref_list_cmp()
232 return builder->refs[idxa].frame_num < in v4l2_h264_b1_ref_list_cmp()
233 builder->refs[idxb].frame_num ? in v4l2_h264_b1_ref_list_cmp()
269 for (; i < b->num_valid && b->refs[tmplist[i].index].longterm == lt; i++) { in reorder_field_reflist()
276 for (; j < b->num_valid && b->refs[tmplist[j].index].longterm == lt; j++) { in reorder_field_reflist()
282 } while ((i < b->num_valid && b->refs[tmplist[i].index].longterm == lt) || in reorder_field_reflist()
283 (j < b->num_valid && b->refs[tmplist[j].index].longterm == lt)); in reorder_field_reflist()
317 int frame_num = builder->refs[reflist[i].index].frame_num; in format_ref_list_p()
318 bool longterm = builder->refs[reflist[i].index].longterm; in format_ref_list_p()
354 int frame_num = builder->refs[reflist[i].index].frame_num; in format_ref_list_b()
356 bool longterm = builder->refs[reflist[i].index].longterm; in format_ref_list_b()