mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-04 16:52:40 +08:00
[mpi_enc_test]: add sei_mode env to control sei mode
setprop sei_mode 0 to disable sei. Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com> Change-Id: I35a175be32f1a49dd0f36e60b1d72534fb3742e7
This commit is contained in:
@@ -457,11 +457,16 @@ MPP_RET test_mpp_enc_cfg_setup(MpiEncMultiCtxInfo *info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* optional */
|
/* optional */
|
||||||
p->sei_mode = MPP_ENC_SEI_MODE_ONE_FRAME;
|
{
|
||||||
ret = mpi->control(ctx, MPP_ENC_SET_SEI_CFG, &p->sei_mode);
|
RK_U32 sei_mode;
|
||||||
if (ret) {
|
|
||||||
mpp_err("mpi control enc set sei cfg failed ret %d\n", ret);
|
mpp_env_get_u32("sei_mode", &sei_mode, MPP_ENC_SEI_MODE_ONE_FRAME);
|
||||||
goto RET;
|
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) {
|
if (p->type == MPP_VIDEO_CodingAVC || p->type == MPP_VIDEO_CodingHEVC) {
|
||||||
|
Reference in New Issue
Block a user