Lines Matching defs:list
83 int map[2][16 + 32], int list,
93 memset(map[list], 0, sizeof(map[list]));
96 for (old_ref = 0; old_ref < ref1->ref_count[colfield][list]; old_ref++) {
97 int poc = ref1->ref_poc[colfield][list][old_ref];
110 map[list][2 * old_ref + (rfield ^ field) + 16] = cur_ref;
112 map[list][old_ref] = cur_ref;
124 int list, j, field;
128 for (list = 0; list < sl->list_count; list++) {
129 cur->ref_count[sidx][list] = sl->ref_count[list];
130 for (j = 0; j < sl->ref_count[list]; j++)
131 cur->ref_poc[sidx][list][j] = 4 * sl->ref_list[list][j].parent->frame_num +
132 (sl->ref_list[list][j].reference & 3);
171 for (list = 0; list < 2; list++) {
172 fill_colmap(h, sl, sl->map_col_to_list0, list, sidx, ref1sidx, 0);
175 fill_colmap(h, sl, sl->map_col_to_list0_field[field], list, field,
213 int list;
224 for (list = 0; list < 2; list++) {
225 int left_ref = sl->ref_cache[list][scan8[0] - 1];
226 int top_ref = sl->ref_cache[list][scan8[0] - 8];
227 int refc = sl->ref_cache[list][scan8[0] - 8 + 4];
228 const int16_t *C = sl->mv_cache[list][scan8[0] - 8 + 4];
230 refc = sl->ref_cache[list][scan8[0] - 8 - 1];
231 C = sl->mv_cache[list][scan8[0] - 8 - 1];
233 ref[list] = FFMIN3((unsigned)left_ref,
236 if (ref[list] >= 0) {
239 const int16_t *const A = sl->mv_cache[list][scan8[0] - 1];
240 const int16_t *const B = sl->mv_cache[list][scan8[0] - 8];
242 int match_count = (left_ref == ref[list]) +
243 (top_ref == ref[list]) +
244 (refc == ref[list]);
247 mv[list] = pack16to32(mid_pred(A[0], B[0], C[0]),
251 if (left_ref == ref[list])
252 mv[list] = AV_RN32A(A);
253 else if (top_ref == ref[list])
254 mv[list] = AV_RN32A(B);
256 mv[list] = AV_RN32A(C);
258 av_assert2(ref[list] < (sl->ref_count[list] << !!FRAME_MBAFF(h)));
260 int mask = ~(MB_TYPE_L0 << (2 * list));
261 mv[list] = 0;
262 ref[list] = -1;