36 frame->
flags &= ~flags;
54 if (x0 < 0 || y0 < 0) {
159 int min_poc = INT_MAX;
167 if (frame->
poc < min_poc) {
168 min_poc = frame->
poc;
191 for (i = 0; i < 3; i++) {
199 "Output frame with POC %d.\n", frame->
poc);
222 for (i = ctb_addr_ts; i < ctb_count; i++)
248 for (list_idx = 0; list_idx < nb_list; list_idx++) {
274 for (i = 0; i < sh->
nb_refs[list_idx]; i++) {
283 rpl->
ref[i] = rpl_tmp.
ref[idx];
288 memcpy(rpl, &rpl_tmp,
sizeof(*rpl));
308 if ((ref->
poc & LtMask) == poc)
316 if (ref->
poc == poc || (ref->
poc & LtMask) == poc)
322 "Could not find ref with POC %d\n", poc);
329 frame->
flags |= flag;
342 for (i = 0; frame->
frame->
buf[i]; i++)
366 int poc,
int ref_flag)
417 if (!short_rps->
used[i])
419 else if (i < short_rps->num_negative_pics)
430 for (i = 0; i < long_rps->
nb_refs; i++) {
431 int poc = long_rps->
poc[i];
449 int prev_poc_lsb = s->
pocTid0 % max_poc_lsb;
450 int prev_poc_msb = s->
pocTid0 - prev_poc_lsb;
453 if (poc_lsb < prev_poc_lsb && prev_poc_lsb - poc_lsb >= max_poc_lsb / 2)
454 poc_msb = prev_poc_msb + max_poc_lsb;
455 else if (poc_lsb > prev_poc_lsb && poc_lsb - prev_poc_lsb > max_poc_lsb / 2)
456 poc_msb = prev_poc_msb - max_poc_lsb;
458 poc_msb = prev_poc_msb;
466 return poc_msb + poc_lsb;
478 ret += !!rps->
used[i];
480 ret += !!rps->
used[i];
484 for (i = 0; i < long_rps->
nb_refs; i++)
485 ret += !!long_rps->
used[i];