Lines Matching refs:builder
88 const struct v4l2_h264_reflist_builder *builder = data; in v4l2_h264_p_ref_list_cmp() local
98 if (builder->refs[idxa].longterm != builder->refs[idxb].longterm) { in v4l2_h264_p_ref_list_cmp()
100 if (!builder->refs[idxa].longterm) in v4l2_h264_p_ref_list_cmp()
110 if (!builder->refs[idxa].longterm) in v4l2_h264_p_ref_list_cmp()
111 return builder->refs[idxb].frame_num < in v4l2_h264_p_ref_list_cmp()
112 builder->refs[idxa].frame_num ? in v4l2_h264_p_ref_list_cmp()
115 return builder->refs[idxa].pic_num < builder->refs[idxb].pic_num ? in v4l2_h264_p_ref_list_cmp()
122 const struct v4l2_h264_reflist_builder *builder = data; in v4l2_h264_b0_ref_list_cmp() local
133 if (builder->refs[idxa].longterm != builder->refs[idxb].longterm) { in v4l2_h264_b0_ref_list_cmp()
135 if (!builder->refs[idxa].longterm) in v4l2_h264_b0_ref_list_cmp()
142 if (builder->refs[idxa].longterm) in v4l2_h264_b0_ref_list_cmp()
143 return builder->refs[idxa].pic_num < in v4l2_h264_b0_ref_list_cmp()
144 builder->refs[idxb].pic_num ? in v4l2_h264_b0_ref_list_cmp()
147 poca = builder->refs[idxa].pic_order_count; in v4l2_h264_b0_ref_list_cmp()
148 pocb = builder->refs[idxb].pic_order_count; in v4l2_h264_b0_ref_list_cmp()
155 if ((poca < builder->cur_pic_order_count) != in v4l2_h264_b0_ref_list_cmp()
156 (pocb < builder->cur_pic_order_count)) in v4l2_h264_b0_ref_list_cmp()
158 else if (poca < builder->cur_pic_order_count) in v4l2_h264_b0_ref_list_cmp()
167 const struct v4l2_h264_reflist_builder *builder = data; in v4l2_h264_b1_ref_list_cmp() local
178 if (builder->refs[idxa].longterm != builder->refs[idxb].longterm) { in v4l2_h264_b1_ref_list_cmp()
180 if (!builder->refs[idxa].longterm) in v4l2_h264_b1_ref_list_cmp()
187 if (builder->refs[idxa].longterm) in v4l2_h264_b1_ref_list_cmp()
188 return builder->refs[idxa].pic_num < in v4l2_h264_b1_ref_list_cmp()
189 builder->refs[idxb].pic_num ? in v4l2_h264_b1_ref_list_cmp()
192 poca = builder->refs[idxa].pic_order_count; in v4l2_h264_b1_ref_list_cmp()
193 pocb = builder->refs[idxb].pic_order_count; in v4l2_h264_b1_ref_list_cmp()
200 if ((poca < builder->cur_pic_order_count) != in v4l2_h264_b1_ref_list_cmp()
201 (pocb < builder->cur_pic_order_count)) in v4l2_h264_b1_ref_list_cmp()
203 else if (poca < builder->cur_pic_order_count) in v4l2_h264_b1_ref_list_cmp()
222 v4l2_h264_build_p_ref_list(const struct v4l2_h264_reflist_builder *builder, in v4l2_h264_build_p_ref_list() argument
225 memcpy(reflist, builder->unordered_reflist, in v4l2_h264_build_p_ref_list()
226 sizeof(builder->unordered_reflist[0]) * builder->num_valid); in v4l2_h264_build_p_ref_list()
227 sort_r(reflist, builder->num_valid, sizeof(*reflist), in v4l2_h264_build_p_ref_list()
228 v4l2_h264_p_ref_list_cmp, NULL, builder); in v4l2_h264_build_p_ref_list()
247 v4l2_h264_build_b_ref_lists(const struct v4l2_h264_reflist_builder *builder, in v4l2_h264_build_b_ref_lists() argument
250 memcpy(b0_reflist, builder->unordered_reflist, in v4l2_h264_build_b_ref_lists()
251 sizeof(builder->unordered_reflist[0]) * builder->num_valid); in v4l2_h264_build_b_ref_lists()
252 sort_r(b0_reflist, builder->num_valid, sizeof(*b0_reflist), in v4l2_h264_build_b_ref_lists()
253 v4l2_h264_b0_ref_list_cmp, NULL, builder); in v4l2_h264_build_b_ref_lists()
255 memcpy(b1_reflist, builder->unordered_reflist, in v4l2_h264_build_b_ref_lists()
256 sizeof(builder->unordered_reflist[0]) * builder->num_valid); in v4l2_h264_build_b_ref_lists()
257 sort_r(b1_reflist, builder->num_valid, sizeof(*b1_reflist), in v4l2_h264_build_b_ref_lists()
258 v4l2_h264_b1_ref_list_cmp, NULL, builder); in v4l2_h264_build_b_ref_lists()
260 if (builder->num_valid > 1 && in v4l2_h264_build_b_ref_lists()
261 !memcmp(b1_reflist, b0_reflist, builder->num_valid)) in v4l2_h264_build_b_ref_lists()