From d42f4ed0289428d752611a9b7e55f0196a3e781b Mon Sep 17 00:00:00 2001 From: Herman Chen Date: Mon, 20 Apr 2020 10:32:31 +0800 Subject: [PATCH] [mpi]: Support relative qp in ROI region New vepu541 encoder support relative qp delta config in ROI region. Signed-off-by: Herman Chen Change-Id: Iac57469c30ea09ca03368cc3e02372a326c525ec --- inc/rk_venc_cmd.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/inc/rk_venc_cmd.h b/inc/rk_venc_cmd.h index d2b4a24f..725324dd 100644 --- a/inc/rk_venc_cmd.h +++ b/inc/rk_venc_cmd.h @@ -1069,9 +1069,8 @@ typedef struct MppEncGopRef_t { * Region configure define a rectangle as ROI * @note x, y, w, h are calculated in pixels, which had better be 16-pixel aligned. * These parameters MUST retain in memory when encoder is running. - * TODO: Only absolute qp is supported so far, relative qp should be supported - * in the future. Also, the ROI regions can be overlaid with each other, - * so overlay priority should be considered. + * Both absolute qp and relative qp are supported in vepu541. + * Only absolute qp is supported in rv1108 */ typedef struct MppEncROIRegion_t { RK_U16 x; /**< horizontal position of top left corner */ @@ -1079,7 +1078,7 @@ typedef struct MppEncROIRegion_t { RK_U16 w; /**< width of ROI rectangle */ RK_U16 h; /**< height of ROI rectangle */ RK_U16 intra; /**< flag of forced intra macroblock */ - RK_U16 quality; /**< qp of macroblock */ + RK_S16 quality; /**< absolute / relative qp of macroblock */ RK_U16 qp_area_idx; /**< qp min max area select*/ RK_U8 area_map_en; /**< enable area map */ RK_U8 abs_qp_en; /**< absolute qp enable flag*/