mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[mpi/mpp/enc]: New encoder framework
1. Interface change: Separate normal config into three basic config and several runtime config: Three basic config - a. rate control config b. preprocess config c. video codec protocol config More flexible rate control interfaces are provided. More codec configure interfaces are provided. Change flag with bitmap is provided for further optimization. 2. Remove old codec config from controller and left rate control module only Encoder controller only handle user rate control requirement and bit allocation. Hal hardware encoder only handle qp calculation according given target bit. Remove all old codec code. 3. Move codec process to hal Different hardware will share same codec process function in common protocol directory. And different hardware api will register to same api set. Codec header generation is moved to separate hal directory. 4. Encoder will return length by task Encoder will NOT get stream information feedback from controller. All information required by encoder will be all stored in Task. 5. Add mpp_rc for rate control Move some common rate control utils to mpp_base. 6. Update mpi_enc_test and mpi_rc_test with new interface Change-Id: Iebb5e276a48f547167e1bed4673f21cc2f0c8ad5 Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Signed-off-by: Lin Kesheng <lks@rock-chips.com>
This commit is contained in:
18
inc/rk_mpi.h
18
inc/rk_mpi.h
@@ -138,6 +138,24 @@ typedef struct MppEncConfig_t {
|
||||
RK_S32 cabac_en;
|
||||
} MppEncConfig;
|
||||
|
||||
typedef struct MppEncCodecCfg_t {
|
||||
MppCodingType coding;
|
||||
|
||||
union {
|
||||
RK_U32 change;
|
||||
MppEncH264Cfg h264;
|
||||
MppEncH265Cfg h265;
|
||||
MppEncJpegCfg jpeg;
|
||||
MppEncVp8Cfg vp8;
|
||||
};
|
||||
} MppEncCodecCfg;
|
||||
|
||||
typedef struct MppEncCfgSet_t {
|
||||
MppEncPrepCfg prep;
|
||||
MppEncRcCfg rc;
|
||||
MppEncCodecCfg codec;
|
||||
} MppEncCfgSet;
|
||||
|
||||
/**
|
||||
* @ingroup rk_mpi
|
||||
* @brief mpp main work function set
|
||||
|
Reference in New Issue
Block a user