36 frame->
flags &= ~flags;
54 if (x0 < 0 || y0 < 0) {
163 int min_poc = INT_MAX;
181 if (frame->
poc < min_poc) {
182 min_poc = frame->
poc;
205 for (i = 0; i < 3; i++) {
213 "Output frame with POC %d.\n", frame->
poc);
236 for (i = ctb_addr_ts; i < ctb_count; i++)
262 for (list_idx = 0; list_idx < nb_list; list_idx++) {
288 for (i = 0; i < sh->
nb_refs[list_idx]; i++) {
297 rpl->
ref[i] = rpl_tmp.
ref[idx];
302 memcpy(rpl, &rpl_tmp,
sizeof(*rpl));
322 if ((ref->
poc & LtMask) == poc)
330 if (ref->
poc == poc || (ref->
poc & LtMask) == poc)
336 "Could not find ref with POC %d\n", poc);
343 frame->
flags |= flag;
356 for (i = 0; frame->
frame->
buf[i]; i++)
380 int poc,
int ref_flag)
431 if (!short_rps->
used[i])
433 else if (i < short_rps->num_negative_pics)
444 for (i = 0; i < long_rps->
nb_refs; i++) {
445 int poc = long_rps->
poc[i];
463 int prev_poc_lsb = s->
pocTid0 % max_poc_lsb;
464 int prev_poc_msb = s->
pocTid0 - prev_poc_lsb;
467 if (poc_lsb < prev_poc_lsb && prev_poc_lsb - poc_lsb >= max_poc_lsb / 2)
468 poc_msb = prev_poc_msb + max_poc_lsb;
469 else if (poc_lsb > prev_poc_lsb && poc_lsb - prev_poc_lsb > max_poc_lsb / 2)
470 poc_msb = prev_poc_msb - max_poc_lsb;
472 poc_msb = prev_poc_msb;
480 return poc_msb + poc_lsb;
492 ret += !!rps->
used[i];
494 ret += !!rps->
used[i];
498 for (i = 0; i < long_rps->
nb_refs; i++)
499 ret += !!long_rps->
used[i];