[rk_venc_cmd]: Restore skip_cnt for compatibility

Change-Id: Ib542ace59e199752d6316c422ae11b4e57a0990b
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2020-05-20 18:10:58 +08:00
parent 0216da20b8
commit d638ef1bb7

View File

@@ -158,7 +158,8 @@ typedef enum MppEncRcCfgChange_e {
MPP_ENC_RC_CFG_CHANGE_FPS_IN = (1 << 5), /* change on fps in flex / numerator / denorminator */ MPP_ENC_RC_CFG_CHANGE_FPS_IN = (1 << 5), /* change on fps in flex / numerator / denorminator */
MPP_ENC_RC_CFG_CHANGE_FPS_OUT = (1 << 6), /* change on fps out flex / numerator / denorminator */ MPP_ENC_RC_CFG_CHANGE_FPS_OUT = (1 << 6), /* change on fps out flex / numerator / denorminator */
MPP_ENC_RC_CFG_CHANGE_GOP = (1 << 7), MPP_ENC_RC_CFG_CHANGE_GOP = (1 << 7),
MPP_ENC_RC_CFG_CHANGE_MAX_REENC = (1 << 8), MPP_ENC_RC_CFG_CHANGE_SKIP_CNT = (1 << 8),
MPP_ENC_RC_CFG_CHANGE_MAX_REENC = (1 << 9),
MPP_ENC_RC_CFG_CHANGE_ALL = (0xFFFFFFFF), MPP_ENC_RC_CFG_CHANGE_ALL = (0xFFFFFFFF),
} MppEncRcCfgChange; } MppEncRcCfgChange;
@@ -269,12 +270,18 @@ typedef struct MppEncRcCfg_t {
*/ */
RK_S32 gop; RK_S32 gop;
/*
* skip_cnt - max continuous frame skip count
* 0 - frame skip is not allow
*/
RK_S16 skip_cnt;
/* /*
* max_reenc_times - max reencode time for one frame * max_reenc_times - max reencode time for one frame
* 0 - reencode is not allowed * 0 - reencode is not allowed
* 1~3 max reencode time is limited to 3 * 1~3 max reencode time is limited to 3
*/ */
RK_U32 max_reenc_times; RK_U16 max_reenc_times;
/* /*
* stat_times - the time of bitrate statistics * stat_times - the time of bitrate statistics