Lines Matching refs:cmd
25 MpiDecTestCmd *cmd; member
110 MpiDecTestCmd *cmd = data->cmd; in thread_output() local
146 if (MPP_FRAME_FMT_IS_FBC(cmd->format)) { in thread_output()
152 mpp_frame_set_fmt(frm, cmd->format); in thread_output()
163 grp = dec_buf_mgr_setup(data->buf_mgr, buf_size, 24, cmd->buf_mode); in thread_output()
207 fps_calc_inc(cmd->fps); in thread_output()
223 int mt_dec_decode(MpiDecTestCmd *cmd) in mt_dec_decode() argument
226 FileReader reader = cmd->reader; in mt_dec_decode()
241 RK_U32 width = cmd->width; in mt_dec_decode()
242 RK_U32 height = cmd->height; in mt_dec_decode()
243 MppCodingType type = cmd->type; in mt_dec_decode()
253 if (cmd->have_output) { in mt_dec_decode()
254 data.fp_output = fopen(cmd->file_output, "w+b"); in mt_dec_decode()
256 mpp_err("failed to open output file %s\n", cmd->file_output); in mt_dec_decode()
328 data.cmd = cmd; in mt_dec_decode()
335 data.frame_num = cmd->frame_num; in mt_dec_decode()
337 data.quiet = cmd->quiet; in mt_dec_decode()
354 if (cmd->frame_num < 0) { in mt_dec_decode()
415 MpiDecTestCmd* cmd = &cmd_ctx; in main() local
417 memset((void*)cmd, 0, sizeof(*cmd)); in main()
419 cmd->timeout = -1; in main()
422 ret = mpi_dec_test_cmd_init(cmd, argc, argv); in main()
426 mpi_dec_test_cmd_options(cmd); in main()
428 if (cmd->type == MPP_VIDEO_CodingMJPEG) { in main()
433 ret = mt_dec_decode(cmd); in main()
440 mpi_dec_test_cmd_deinit(cmd); in main()