mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[rk_mpi_cmd]: Add max_reenc_cnt for reencode flow
When max_reenc_cnt is zero the reencode flow is disabled. Change-Id: Iba600b37bb5ab6e4f720b652d59abfae36f9e52f Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -158,7 +158,7 @@ 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_OUT = (1 << 6), /* change on fps out flex / numerator / denorminator */
|
||||
MPP_ENC_RC_CFG_CHANGE_GOP = (1 << 7),
|
||||
MPP_ENC_RC_CFG_CHANGE_SKIP_CNT = (1 << 8),
|
||||
MPP_ENC_RC_CFG_CHANGE_MAX_REENC = (1 << 8),
|
||||
MPP_ENC_RC_CFG_CHANGE_ALL = (0xFFFFFFFF),
|
||||
} MppEncRcCfgChange;
|
||||
|
||||
@@ -270,10 +270,11 @@ typedef struct MppEncRcCfg_t {
|
||||
RK_S32 gop;
|
||||
|
||||
/*
|
||||
* skip_cnt - max continuous frame skip count
|
||||
* 0 - frame skip is not allow
|
||||
* max_reenc_times - max reencode time for one frame
|
||||
* 0 - reencode is not allowed
|
||||
* 1~3 max reencode time is limited to 3
|
||||
*/
|
||||
RK_S32 skip_cnt;
|
||||
RK_U32 max_reenc_times;
|
||||
|
||||
/*
|
||||
* stat_times - the time of bitrate statistics
|
||||
|
Reference in New Issue
Block a user