[rc]: Add MppFrame to EncRcTask

Attach MppFrame to EncRcTask as meta data channel between user and
internal RC strategy.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I2787a69bec3911fe2e4f637153925c5ea88031ec
This commit is contained in:
Herman Chen
2020-04-10 10:09:33 +08:00
parent 82cdcba737
commit f13897ce65
2 changed files with 2 additions and 0 deletions

View File

@@ -138,6 +138,7 @@ typedef struct EncRcCommonInfo_t {
typedef struct EncRcTask_s {
EncFrmStatus frm;
EncRcTaskInfo info;
MppFrame frame;
} EncRcTask;
#endif /* __RC_DEFS_H__ */

View File

@@ -620,6 +620,7 @@ void *mpp_enc_thread(void *data)
reset_enc_rc_task(rc_task);
hal_task->rc_task = rc_task;
frm->seq_idx = task.seq_idx++;
rc_task->frame = frame;
enc_dbg_detail("task seq idx %d start\n", frm->seq_idx);