mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-04 16:52:40 +08:00
[rk_venc_ref]: Add new reference config interface
Add MppEncRefCfg for reference frame relationship configure. MppEncRefCfg is for user to setup its own gop reference hierarchy. Setup flow: mpp_enc_ref_cfg_get_preset (can be ommitted, helper for setup lt/st cfg) mpp_enc_ref_cfg_init mpp_enc_ref_cfg_set_cfg_cnt mpp_enc_ref_cfg_add_lt_cfg (can be omitted) mpp_enc_ref_cfg_add_st_cfg mpp_enc_ref_cfg_check (IMPORTANT: need to check before contol to mpp) control to mpp mpp_enc_ref_cfg_deinit Change-Id: Ia0f5c4c713a4b11d8e4e5581609f8501f36549cc Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
|
||||
#define CMD_ENC_CFG_MISC (0x00008000)
|
||||
#define CMD_ENC_CFG_SPLIT (0x00008100)
|
||||
#define CMD_ENC_CFG_GOPREF (0x00008200)
|
||||
#define CMD_ENC_CFG_REF (0x00008200)
|
||||
#define CMD_ENC_CFG_ROI (0x00008300)
|
||||
#define CMD_ENC_CFG_OSD (0x00008400)
|
||||
|
||||
@@ -171,8 +171,8 @@ typedef enum {
|
||||
MPP_ENC_SET_SPLIT, /* set MppEncSliceSplit structure */
|
||||
MPP_ENC_GET_SPLIT, /* get MppEncSliceSplit structure */
|
||||
|
||||
MPP_ENC_CFG_GOPREF = CMD_MODULE_CODEC | CMD_CTX_ID_ENC | CMD_ENC_CFG_GOPREF,
|
||||
MPP_ENC_SET_GOPREF, /* set MppEncGopRef structure */
|
||||
MPP_ENC_CFG_REF = CMD_MODULE_CODEC | CMD_CTX_ID_ENC | CMD_ENC_CFG_REF,
|
||||
MPP_ENC_SET_REF_CFG, /* set MppEncRefCfg structure */
|
||||
|
||||
MPP_ENC_CFG_OSD = CMD_MODULE_CODEC | CMD_CTX_ID_ENC | CMD_ENC_CFG_OSD,
|
||||
MPP_ENC_SET_OSD_PLT_CFG, /* set OSD palette, parameter should be pointer to MppEncOSDPltCfg */
|
||||
@@ -193,5 +193,6 @@ typedef enum {
|
||||
|
||||
#include "rk_venc_cmd.h"
|
||||
#include "rk_venc_cfg.h"
|
||||
#include "rk_venc_ref.h"
|
||||
|
||||
#endif /*__RK_MPI_CMD_H__*/
|
||||
|
Reference in New Issue
Block a user