Lines Matching refs:f

258     MppFrameImpl *impl_frm = (MppFrameImpl *)dst->f;  in vp9_ref_frame()
268 vp9d_dbg(VP9D_DBG_REF, "get prop slot frame %p count %d", dst->f, dst->ref->ref_count); in vp9_ref_frame()
269 mpp_buf_slot_get_prop(s->slots, src->slot_index, SLOT_FRAME, &dst->f); in vp9_ref_frame()
271 vp9d_dbg(VP9D_DBG_REF, "get prop slot frame after %p", dst->f); in vp9_ref_frame()
275 static void vp9_unref_frame( VP9Context *s, VP9Frame *f) in vp9_unref_frame() argument
277 if (f->ref->ref_count <= 0 || f->slot_index >= 0x7f) { in vp9_unref_frame()
281 f->ref->ref_count--; in vp9_unref_frame()
282 if (!f->ref->ref_count) { in vp9_unref_frame()
283 if (f->slot_index <= 0x7f) { in vp9_unref_frame()
284 if (f->ref->invisible && !f->ref->is_output) { in vp9_unref_frame()
287 mpp_buf_slot_get_prop(s->slots, f->slot_index, SLOT_BUFFER, &framebuf); in vp9_unref_frame()
289 f->ref->invisible = 0; in vp9_unref_frame()
291 mpp_buf_slot_clr_flag(s->slots, f->slot_index, SLOT_CODEC_USE); in vp9_unref_frame()
293 mpp_free(f->ref); in vp9_unref_frame()
294 f->slot_index = 0xff; in vp9_unref_frame()
295 f->ref = NULL; in vp9_unref_frame()
297 f->ref = NULL; in vp9_unref_frame()
309 mpp_frame_deinit(&s->frames[i].f); in vp9_frame_free()
315 mpp_frame_deinit(&s->refs[i].f); in vp9_frame_free()
324 mpp_frame_init(&s->frames[i].f); in vp9_frame_init()
325 if (!s->frames[i].f) { in vp9_frame_init()
335 mpp_frame_init(&(s->refs[i].f)); in vp9_frame_init()
336 if (!s->refs[i].f) { in vp9_frame_init()
387 mpp_frame_set_width(frame->f, ctx->width); in vp9_alloc_frame()
388 mpp_frame_set_height(frame->f, ctx->height); in vp9_alloc_frame()
390 mpp_frame_set_hor_stride(frame->f, 0); in vp9_alloc_frame()
391 mpp_frame_set_ver_stride(frame->f, 0); in vp9_alloc_frame()
392 mpp_frame_set_errinfo(frame->f, 0); in vp9_alloc_frame()
393 mpp_frame_set_discard(frame->f, 0); in vp9_alloc_frame()
394 mpp_frame_set_pts(frame->f, s->pts); in vp9_alloc_frame()
395 mpp_frame_set_dts(frame->f, s->dts); in vp9_alloc_frame()
398 mpp_frame_set_poc(frame->f, s->cur_poc); in vp9_alloc_frame()
404 mpp_frame_set_fmt(frame->f, ctx->pix_fmt | ((s->cfg->base.out_fmt & (MPP_FRAME_FBC_MASK)))); in vp9_alloc_frame()
409 mpp_frame_set_fbc_hdr_stride(frame->f, fbc_hdr_stride); in vp9_alloc_frame()
417 … mpp_frame_set_fmt(frame->f, ctx->pix_fmt | ((s->cfg->base.out_fmt & (MPP_FRAME_TILE_FLAG)))); in vp9_alloc_frame()
419 mpp_frame_set_fmt(frame->f, ctx->pix_fmt); in vp9_alloc_frame()
423 mpp_frame_set_thumbnail_en(frame->f, s->cfg->base.enable_thumbnail); in vp9_alloc_frame()
425 mpp_frame_set_thumbnail_en(frame->f, 0); in vp9_alloc_frame()
428 mpp_buf_slot_set_prop(s->slots, frame->slot_index, SLOT_FRAME, frame->f); in vp9_alloc_frame()
782 w = mpp_frame_get_width(s->refs[s->refidx[0]].f); in decode_parser_header()
783 h = mpp_frame_get_height(s->refs[s->refidx[0]].f); in decode_parser_header()
786 w = mpp_frame_get_width(s->refs[s->refidx[1]].f); in decode_parser_header()
787 h = mpp_frame_get_height(s->refs[s->refidx[1]].f); in decode_parser_header()
790 w = mpp_frame_get_width(s->refs[s->refidx[2]].f); in decode_parser_header()
791 h = mpp_frame_get_height(s->refs[s->refidx[2]].f); in decode_parser_header()
805 s->use_last_frame_mvs &= mpp_frame_get_width(s->frames[CUR_FRAME].f) == w && in decode_parser_header()
806 mpp_frame_get_height(s->frames[CUR_FRAME].f) == h; in decode_parser_header()
840 RK_U32 refw = mpp_frame_get_width(s->refs[s->refidx[i]].f); in decode_parser_header()
841 RK_U32 refh = mpp_frame_get_height(s->refs[s->refidx[i]].f); in decode_parser_header()
842 RK_S32 reffmt = mpp_frame_get_fmt(s->refs[s->refidx[i]].f) & MPP_FRAME_FMT_MASK; in decode_parser_header()
844 vp9d_dbg(VP9D_DBG_REF, "ref get width frame slot %p", s->refs[s->refidx[i]].f); in decode_parser_header()
950 (w != mpp_frame_get_width(s->frames[CUR_FRAME].f) || in decode_parser_header()
951 h != mpp_frame_get_height(s->frames[CUR_FRAME].f))) { in decode_parser_header()