Lines Matching refs:frm
776 static MPP_RET mpi_rc_info_change(MpiRc2TestCtx *ctx, MppFrame frm) in mpi_rc_info_change() argument
780 mpp_enc_cfg_set_s32(ctx->cfg, "prep:width", mpp_frame_get_width(frm)); in mpi_rc_info_change()
781 mpp_enc_cfg_set_s32(ctx->cfg, "prep:height", mpp_frame_get_height(frm)); in mpi_rc_info_change()
782 mpp_enc_cfg_set_s32(ctx->cfg, "prep:hor_stride", mpp_frame_get_hor_stride(frm)); in mpi_rc_info_change()
783 mpp_enc_cfg_set_s32(ctx->cfg, "prep:ver_stride", mpp_frame_get_ver_stride(frm)); in mpi_rc_info_change()
784 mpp_enc_cfg_set_s32(ctx->cfg, "prep:format", mpp_frame_get_fmt(frm)); in mpi_rc_info_change()
788 ctx->dec_mpi_post->control(ctx->dec_ctx_post, MPP_DEC_SET_FRAME_INFO, (MppParam)frm); in mpi_rc_info_change()
798 MppFrame frm = NULL; in mpi_rc_enc() local
801 ret = mpi->decode_get_frame(dec_ctx, &frm); in mpi_rc_enc()
807 if (frm) { in mpi_rc_enc()
808 ctx->frm_eos = mpp_frame_get_eos(frm); in mpi_rc_enc()
809 if (mpp_frame_get_info_change(frm)) { in mpi_rc_enc()
812 mpi_rc_info_change(ctx, frm); in mpi_rc_enc()
820 mpp_frame_set_eos(frm, 1); in mpi_rc_enc()
821 ctx->frm_eos = mpp_frame_get_eos(frm); in mpi_rc_enc()
824 ctx->enc_mpi->encode_put_frame(ctx->enc_ctx, frm); in mpi_rc_enc()
828 ctx->enc_mpi->encode(ctx->enc_ctx, frm, &ctx->enc_pkt); in mpi_rc_enc()
829 frm = NULL; //ASYN_ENC will free after get packet in mpi_rc_enc()
876 frm = frame; //ASYN_ENC delay free in mpi_rc_enc()
881 mpi_rc_dec_post_decode(ctx, frm); in mpi_rc_enc()
890 mpp_frame_deinit(&frm); in mpi_rc_enc()
891 frm = NULL; in mpi_rc_enc()