Skip to content

Commit

Permalink
[mpi_enc_test]: add sei_mode env to control sei mode
Browse files Browse the repository at this point in the history
setprop sei_mode 0 to disable sei.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I35a175be32f1a49dd0f36e60b1d72534fb3742e7
  • Loading branch information
FumasterLin authored and HermanChen committed Jul 29, 2022
1 parent aff0255 commit 5132a49
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions test/mpi_enc_test.c
Expand Up @@ -457,11 +457,16 @@ MPP_RET test_mpp_enc_cfg_setup(MpiEncMultiCtxInfo *info)
}

/* optional */
p->sei_mode = MPP_ENC_SEI_MODE_ONE_FRAME;
ret = mpi->control(ctx, MPP_ENC_SET_SEI_CFG, &p->sei_mode);
if (ret) {
mpp_err("mpi control enc set sei cfg failed ret %d\n", ret);
goto RET;
{
RK_U32 sei_mode;

mpp_env_get_u32("sei_mode", &sei_mode, MPP_ENC_SEI_MODE_ONE_FRAME);
p->sei_mode = sei_mode;
ret = mpi->control(ctx, MPP_ENC_SET_SEI_CFG, &p->sei_mode);
if (ret) {
mpp_err("mpi control enc set sei cfg failed ret %d\n", ret);
goto RET;
}
}

if (p->type == MPP_VIDEO_CodingAVC || p->type == MPP_VIDEO_CodingHEVC) {
Expand Down

0 comments on commit 5132a49

Please sign in to comment.