From 5b897d8bfb54a9154dae351ff96d52f485b172f9 Mon Sep 17 00:00:00 2001 From: Tingjin Huang Date: Thu, 10 Oct 2024 16:13:59 +0800 Subject: [PATCH] fix[test]: Fix AQ table error Change-Id: Ib1af3f352dfe88632dff686d7ab84c8430dcc901 Signed-off-by: Tingjin Huang --- test/mpi_enc_test.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/mpi_enc_test.c b/test/mpi_enc_test.c index 38957e5f..a2d9fcc2 100644 --- a/test/mpi_enc_test.c +++ b/test/mpi_enc_test.c @@ -37,7 +37,7 @@ #include "mpp_rc_api.h" static RK_S32 aq_thd_smart[16] = { - 0, 0, 0, 0, 3, 3, 5, 5, + 1, 3, 3, 3, 3, 3, 5, 5, 8, 8, 8, 15, 15, 20, 25, 28 }; @@ -376,6 +376,11 @@ MPP_RET test_mpp_enc_cfg_setup(MpiEncMultiCtxInfo *info) mpp_enc_cfg_set_st(cfg, "hw:aq_thrd_p", aq_thd_smart); mpp_enc_cfg_set_st(cfg, "hw:aq_step_i", aq_step_smart); mpp_enc_cfg_set_st(cfg, "hw:aq_step_p", aq_step_smart); + } else { + mpp_enc_cfg_set_st(cfg, "hw:aq_thrd_i", aq_thd); + mpp_enc_cfg_set_st(cfg, "hw:aq_thrd_p", aq_thd); + mpp_enc_cfg_set_st(cfg, "hw:aq_step_i", aq_step_i_ipc); + mpp_enc_cfg_set_st(cfg, "hw:aq_step_p", aq_step_p_ipc); } mpp_enc_cfg_set_s32(cfg, "rc:max_reenc_times", 0); @@ -395,10 +400,6 @@ MPP_RET test_mpp_enc_cfg_setup(MpiEncMultiCtxInfo *info) mpp_enc_cfg_set_s32(cfg, "hw:qbias_en", 1); mpp_enc_cfg_set_s32(cfg, "hw:qbias_i", cmd->bias_i); mpp_enc_cfg_set_s32(cfg, "hw:qbias_p", cmd->bias_p); - mpp_enc_cfg_set_st(cfg, "hw:aq_thrd_i", aq_thd); - mpp_enc_cfg_set_st(cfg, "hw:aq_thrd_p", aq_thd); - mpp_enc_cfg_set_st(cfg, "hw:aq_step_i", aq_step_i_ipc); - mpp_enc_cfg_set_st(cfg, "hw:aq_step_p", aq_step_p_ipc); mpp_enc_cfg_set_s32(cfg, "hw:skip_bias_en", 0); mpp_enc_cfg_set_s32(cfg, "hw:skip_bias", 4); mpp_enc_cfg_set_s32(cfg, "hw:skip_sad", 8);