[hal_enc_task]: Add MppEncRefFrmUsrCfg

There force reference frame user configure is added to encoder task.

Change-Id: I4482a831f988f47913c6e1d0385ccbdd0cd46031
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2020-07-22 10:54:55 +08:00
parent 6a64cde817
commit 37ba4229ad
2 changed files with 6 additions and 0 deletions

View File

@@ -701,6 +701,7 @@ void *mpp_enc_thread(void *data)
EncRcTask *rc_task = &enc->rc_task; EncRcTask *rc_task = &enc->rc_task;
EncCpbStatus *cpb = &rc_task->cpb; EncCpbStatus *cpb = &rc_task->cpb;
EncFrmStatus *frm = &rc_task->frm; EncFrmStatus *frm = &rc_task->frm;
MppEncRefFrmUsrCfg *frm_cfg = &enc->frm_cfg;
EncTask task; EncTask task;
HalTaskInfo *task_info = &task.info; HalTaskInfo *task_info = &task.info;
HalEncTask *hal_task = &task_info->enc; HalEncTask *hal_task = &task_info->enc;
@@ -857,6 +858,7 @@ void *mpp_enc_thread(void *data)
reset_hal_enc_task(hal_task); reset_hal_enc_task(hal_task);
reset_enc_rc_task(rc_task); reset_enc_rc_task(rc_task);
hal_task->rc_task = rc_task; hal_task->rc_task = rc_task;
hal_task->frm_cfg = frm_cfg;
frm->seq_idx = task.seq_idx++; frm->seq_idx = task.seq_idx++;
rc_task->frame = frame; rc_task->frame = frame;

View File

@@ -20,6 +20,7 @@
#include "hal_task_defs.h" #include "hal_task_defs.h"
#include "mpp_rc_defs.h" #include "mpp_rc_defs.h"
#include "mpp_enc_refs.h"
#define HAL_ENC_TASK_ERR_INIT 0x00000001 #define HAL_ENC_TASK_ERR_INIT 0x00000001
#define HAL_ENC_TASK_ERR_ALLOC 0x00000010 #define HAL_ENC_TASK_ERR_ALLOC 0x00000010
@@ -38,6 +39,9 @@ typedef struct HalEncTask_t {
// rate control data channel // rate control data channel
EncRcTask *rc_task; EncRcTask *rc_task;
// cpb reference force config
MppEncRefFrmUsrCfg *frm_cfg;
// current tesk protocol syntax information // current tesk protocol syntax information
MppSyntax syntax; MppSyntax syntax;
MppSyntax hal_ret; MppSyntax hal_ret;