mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
[mpi_enc_test]: optimize slt code
1. Optimize help log about slt 2. Optimize slt file opening Change-Id: Ib315e46d7fbb5f3ffa576c24f5e47c42a19cb09d Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
This commit is contained in:
parent
fb3390cbdd
commit
f7954e9545
3 changed files with 9 additions and 5 deletions
|
|
@ -197,9 +197,11 @@ MPP_RET test_ctx_init(MpiEncMultiCtxInfo *info)
|
|||
}
|
||||
}
|
||||
|
||||
p->fp_verify = fopen(cmd->file_slt, "wt");
|
||||
if (!p->fp_verify)
|
||||
mpp_err("failed to open verify file %s\n", cmd->file_slt);
|
||||
if (cmd->file_slt) {
|
||||
p->fp_verify = fopen(cmd->file_slt, "wt");
|
||||
if (!p->fp_verify)
|
||||
mpp_err("failed to open verify file %s\n", cmd->file_slt);
|
||||
}
|
||||
|
||||
// update resource parameter
|
||||
switch (p->fmt & MPP_FRAME_FMT_MASK) {
|
||||
|
|
|
|||
|
|
@ -737,5 +737,6 @@ void mpi_dec_test_cmd_options(MpiDecTestCmd* cmd)
|
|||
mpp_log("height : %4d\n", cmd->height);
|
||||
mpp_log("type : %4d\n", cmd->type);
|
||||
mpp_log("max frames : %4d\n", cmd->frame_num);
|
||||
mpp_log("verify : %s\n", cmd->file_slt);
|
||||
if (cmd->file_slt)
|
||||
mpp_log("verify : %s\n", cmd->file_slt);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -952,7 +952,8 @@ MPP_RET mpi_enc_test_cmd_show_opt(MpiEncTestArgs* cmd)
|
|||
mpp_log("height : %d\n", cmd->height);
|
||||
mpp_log("format : %d\n", cmd->format);
|
||||
mpp_log("type : %d\n", cmd->type);
|
||||
mpp_log("verify : %s\n", cmd->file_slt);
|
||||
if (cmd->file_slt)
|
||||
mpp_log("verify : %s\n", cmd->file_slt);
|
||||
|
||||
return MPP_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue