mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 01:20:40 +01:00
feat[mpp_enc_cfg]: Separate init function
Add mpp_enc_cfg_init_k for kernel encoder config init. Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: I4ebdc179b27115d72a2efa213405cbb4dca564d0
This commit is contained in:
parent
fdba12d3fa
commit
5d9da6f29e
3 changed files with 26 additions and 37 deletions
|
|
@ -15,14 +15,13 @@ typedef void* MppEncCfg;
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* legacy interface */
|
||||
/* userspace encoder config init */
|
||||
MPP_RET mpp_enc_cfg_init(MppEncCfg *cfg);
|
||||
/* kernel encoder config init */
|
||||
MPP_RET mpp_enc_cfg_init_k(MppEncCfg *cfg);
|
||||
/* common config deinit */
|
||||
MPP_RET mpp_enc_cfg_deinit(MppEncCfg cfg);
|
||||
|
||||
/* new interface */
|
||||
RK_S32 mpp_enc_cfg_get(MppEncCfg *cfg, const char *name, void *val);
|
||||
RK_S32 mpp_enc_cfg_put(MppEncCfg cfg);
|
||||
|
||||
MPP_RET mpp_enc_cfg_set_s32(MppEncCfg cfg, const char *name, RK_S32 val);
|
||||
MPP_RET mpp_enc_cfg_set_u32(MppEncCfg cfg, const char *name, RK_U32 val);
|
||||
MPP_RET mpp_enc_cfg_set_s64(MppEncCfg cfg, const char *name, RK_S64 val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue