Lines Matching refs:frm

788 static MPP_RET mpi_rc_info_change(MpiRc2TestCtx *ctx, MppFrame frm)  in mpi_rc_info_change()  argument
792 mpp_enc_cfg_set_s32(ctx->cfg, "prep:width", mpp_frame_get_width(frm)); in mpi_rc_info_change()
793 mpp_enc_cfg_set_s32(ctx->cfg, "prep:height", mpp_frame_get_height(frm)); in mpi_rc_info_change()
794 mpp_enc_cfg_set_s32(ctx->cfg, "prep:hor_stride", mpp_frame_get_hor_stride(frm)); in mpi_rc_info_change()
795 mpp_enc_cfg_set_s32(ctx->cfg, "prep:ver_stride", mpp_frame_get_ver_stride(frm)); in mpi_rc_info_change()
796 mpp_enc_cfg_set_s32(ctx->cfg, "prep:format", mpp_frame_get_fmt(frm)); in mpi_rc_info_change()
800 ctx->dec_mpi_post->control(ctx->dec_ctx_post, MPP_DEC_SET_FRAME_INFO, (MppParam)frm); in mpi_rc_info_change()
810 MppFrame frm = NULL; in mpi_rc_enc() local
813 ret = mpi->decode_get_frame(dec_ctx, &frm); in mpi_rc_enc()
819 if (frm) { in mpi_rc_enc()
820 ctx->frm_eos = mpp_frame_get_eos(frm); in mpi_rc_enc()
821 if (mpp_frame_get_info_change(frm)) { in mpi_rc_enc()
824 mpi_rc_info_change(ctx, frm); in mpi_rc_enc()
832 mpp_frame_set_eos(frm, 1); in mpi_rc_enc()
833 ctx->frm_eos = mpp_frame_get_eos(frm); in mpi_rc_enc()
836 ctx->enc_mpi->encode_put_frame(ctx->enc_ctx, frm); in mpi_rc_enc()
840 ctx->enc_mpi->encode(ctx->enc_ctx, frm, &ctx->enc_pkt); in mpi_rc_enc()
841 frm = NULL; //ASYN_ENC will free after get packet in mpi_rc_enc()
875 frm = frame; //ASYN_ENC delay free in mpi_rc_enc()
880 mpi_rc_dec_post_decode(ctx, frm); in mpi_rc_enc()
889 mpp_frame_deinit(&frm); in mpi_rc_enc()
890 frm = NULL; in mpi_rc_enc()