36 frame->
flags &= ~flags;
54 if (x0 < 0 || y0 < 0) {
154 int min_poc = INT_MAX;
155 int i, j, min_idx,
ret;
162 if (frame->
poc < min_poc) {
163 min_poc = frame->
poc;
186 for (j = 0; j < 3; j++) {
216 for (i = ctb_addr_ts; i < ctb_count; i++)
242 for (list_idx = 0; list_idx < nb_list; list_idx++) {
269 for (i = 0; i < sh->
nb_refs[list_idx]; i++) {
278 rpl->
ref[i] = rpl_tmp.
ref[idx];
283 memcpy(rpl, &rpl_tmp,
sizeof(*rpl));
303 if ((ref->
poc & LtMask) == poc)
311 if (ref->
poc == poc || (ref->
poc & LtMask) == poc)
317 "Could not find ref with POC %d\n", poc);
324 frame->
flags |= flag;
338 for (i = 0; frame->
frame->
buf[i]; i++)
362 int poc,
int ref_flag)
413 if (!short_rps->
used[i])
415 else if (i < short_rps->num_negative_pics)
426 for (i = 0; i < long_rps->
nb_refs; i++) {
427 int poc = long_rps->
poc[i];
445 int prev_poc_lsb = s->
pocTid0 % max_poc_lsb;
446 int prev_poc_msb = s->
pocTid0 - prev_poc_lsb;
449 if ((poc_lsb < prev_poc_lsb) && ((prev_poc_lsb - poc_lsb) >= max_poc_lsb / 2))
450 poc_msb = prev_poc_msb + max_poc_lsb;
451 else if ((poc_lsb > prev_poc_lsb) && ((poc_lsb - prev_poc_lsb) > (max_poc_lsb / 2)))
452 poc_msb = prev_poc_msb - max_poc_lsb;
454 poc_msb = prev_poc_msb;
462 return poc_msb + poc_lsb;
474 ret += !!rps->
used[i];
476 ret += !!rps->
used[i];
480 for (i = 0; i < long_rps->
nb_refs; i++)
481 ret += !!long_rps->
used[i];