Lines Matching refs:ref
59 const HEVCFrame *ref, int x0, int y0)
65 return &ref->rpl_tab[ctb_addr_ts]->refPicList[0];
139 HEVCFrame *ref;
154 ref = alloc_frame(s);
155 if (!ref)
158 *frame = ref->frame;
159 s->ref = ref;
162 ref->flags = HEVC_FRAME_FLAG_OUTPUT | HEVC_FRAME_FLAG_SHORT_REF;
164 ref->flags = HEVC_FRAME_FLAG_SHORT_REF;
166 ref->poc = poc;
167 ref->sequence = s->seq_decode;
168 ref->frame->crop_left = s->ps.sps->output_window.left_offset;
169 ref->frame->crop_right = s->ps.sps->output_window.right_offset;
170 ref->frame->crop_top = s->ps.sps->output_window.top_offset;
171 ref->frame->crop_bottom = s->ps.sps->output_window.bottom_offset;
283 HEVCFrame *frame = s->ref;
319 RefPicList *rpl = &s->ref->refPicList[list_idx];
334 rpl_tmp.ref[rpl_tmp.nb_refs] = rps->ref[j];
352 rpl->ref[i] = rpl_tmp.ref[idx];
363 s->ref->collocated_ref = rpl->ref[sh->collocated_ref_idx];
375 HEVCFrame *ref = &s->DPB[i];
376 if (ref->frame->buf[0] && ref->sequence == s->seq_decode) {
377 if ((ref->poc & mask) == poc)
378 return ref;
384 "Could not find ref with POC %d\n", poc);
432 HEVCFrame *ref = find_ref_idx(s, poc, use_msb);
434 if (ref == s->ref || list->nb_refs >= HEVC_MAX_REFS)
437 if (!ref) {
438 ref = generate_missing_ref(s, poc);
439 if (!ref)
443 list->list[list->nb_refs] = ref->poc;
444 list->ref[list->nb_refs] = ref;
447 mark_ref(ref, ref_flag);
467 if (frame == s->ref)