[mpp_enc_v2]: Add encoder header output mode

1. Default output mode is output header only on config changed.
2. Add new mode to output header on each intra frame.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Iea8dd1e6bb377318b88300d6a013f2c736b15afc
This commit is contained in:
Herman Chen
2020-03-30 15:25:27 +08:00
parent 6aac71a463
commit 0a2d4e341c
5 changed files with 105 additions and 45 deletions

View File

@@ -45,6 +45,9 @@ typedef struct HalEncTask_t {
// current tesk output stream buffer
MppPacket packet;
MppBuffer output;
RK_U32 header_length;
RK_U32 sei_length;
RK_U32 hw_length;
RK_U32 length;
// current tesk input slot buffer