36 frame->
flags &= ~flags;
158 int min_poc = INT_MAX;
176 if (frame->
poc < min_poc) {
177 min_poc = frame->
poc;
203 for (i = 0; i < 3; i++) {
211 "Output frame with POC %d.\n", frame->
poc);
227 int min_poc = INT_MAX;
232 if ((frame->
flags) &&
242 if ((frame->
flags) &&
246 min_poc = frame->
poc;
255 frame->
poc <= min_poc) {
274 for (i = ctb_addr_ts; i < ctb_count; i++)
300 for (list_idx = 0; list_idx < nb_list; list_idx++) {
326 for (i = 0; i < sh->
nb_refs[list_idx]; i++) {
335 rpl->
ref[i] = rpl_tmp.
ref[idx];
340 memcpy(rpl, &rpl_tmp,
sizeof(*rpl));
360 if ((ref->
poc & LtMask) == poc)
368 if (ref->
poc == poc || (ref->
poc & LtMask) == poc)
374 "Could not find ref with POC %d\n", poc);
381 frame->
flags |= flag;
394 for (i = 0; frame->
frame->
buf[i]; i++)
418 int poc,
int ref_flag)
469 if (!short_rps->
used[i])
471 else if (i < short_rps->num_negative_pics)
482 for (i = 0; i < long_rps->
nb_refs; i++) {
483 int poc = long_rps->
poc[i];
501 int prev_poc_lsb = s->
pocTid0 % max_poc_lsb;
502 int prev_poc_msb = s->
pocTid0 - prev_poc_lsb;
505 if (poc_lsb < prev_poc_lsb && prev_poc_lsb - poc_lsb >= max_poc_lsb / 2)
506 poc_msb = prev_poc_msb + max_poc_lsb;
507 else if (poc_lsb > prev_poc_lsb && poc_lsb - prev_poc_lsb > max_poc_lsb / 2)
508 poc_msb = prev_poc_msb - max_poc_lsb;
510 poc_msb = prev_poc_msb;
518 return poc_msb + poc_lsb;
530 ret += !!rps->
used[i];
532 ret += !!rps->
used[i];
536 for (i = 0; i < long_rps->
nb_refs; i++)
537 ret += !!long_rps->
used[i];