[mpi]: Add better sync call to get encoder header

Change-Id: Ibbd9b4ee178b0994f3c86738cd623eaffd2bca0f
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2019-11-27 15:57:42 +08:00
parent 5b2ccb9344
commit 0547a740fe
7 changed files with 9 additions and 9 deletions

View File

@@ -109,8 +109,8 @@ typedef enum {
MPP_ENC_SET_OSD_PLT_CFG, /* set OSD palette, parameter should be pointer to MppEncOSDPlt */ MPP_ENC_SET_OSD_PLT_CFG, /* set OSD palette, parameter should be pointer to MppEncOSDPlt */
MPP_ENC_SET_OSD_DATA_CFG, /* set OSD data with at most 8 regions, parameter should be pointer to MppEncOSDData */ MPP_ENC_SET_OSD_DATA_CFG, /* set OSD data with at most 8 regions, parameter should be pointer to MppEncOSDData */
MPP_ENC_GET_OSD_CFG, MPP_ENC_GET_OSD_CFG,
MPP_ENC_SET_EXTRA_INFO, MPP_ENC_GET_HDR_SYNC, /* get vps / sps / pps which has better sync behavior parameter is MppPacket */
MPP_ENC_GET_EXTRA_INFO, /* get vps / sps / pps from hal */ MPP_ENC_GET_EXTRA_INFO, /* deprecated */
MPP_ENC_SET_SEI_CFG, /* SEI: Supplement Enhancemant Information, parameter is MppSeiMode */ MPP_ENC_SET_SEI_CFG, /* SEI: Supplement Enhancemant Information, parameter is MppSeiMode */
MPP_ENC_GET_SEI_DATA, /* SEI: Supplement Enhancemant Information, parameter is MppPacket */ MPP_ENC_GET_SEI_DATA, /* SEI: Supplement Enhancemant Information, parameter is MppPacket */
MPP_ENC_PRE_ALLOC_BUFF, /* allocate buffers before encoding */ MPP_ENC_PRE_ALLOC_BUFF, /* allocate buffers before encoding */

View File

@@ -1828,7 +1828,7 @@ MPP_RET hal_h264e_rkv_control(void *hal, MpiCmd cmd_type, void *param)
h264e_hal_dbg(H264E_DBG_DETAIL, "h264e_rkv_control cmd 0x%x, info %p", h264e_hal_dbg(H264E_DBG_DETAIL, "h264e_rkv_control cmd 0x%x, info %p",
cmd_type, param); cmd_type, param);
switch (cmd_type) { switch (cmd_type) {
case MPP_ENC_SET_EXTRA_INFO: { case MPP_ENC_GET_HDR_SYNC: {
break; break;
} }
case MPP_ENC_GET_EXTRA_INFO: { case MPP_ENC_GET_EXTRA_INFO: {

View File

@@ -630,7 +630,7 @@ MPP_RET hal_h264e_vepu1_control(void *hal, MpiCmd cmd_type, void *param)
h264e_hal_dbg(H264E_DBG_DETAIL, "hal_h264e_vpu_control cmd 0x%x, info %p", cmd_type, param); h264e_hal_dbg(H264E_DBG_DETAIL, "hal_h264e_vpu_control cmd 0x%x, info %p", cmd_type, param);
switch (cmd_type) { switch (cmd_type) {
case MPP_ENC_SET_EXTRA_INFO: { case MPP_ENC_GET_HDR_SYNC: {
} break; } break;
case MPP_ENC_GET_EXTRA_INFO: { case MPP_ENC_GET_EXTRA_INFO: {
size_t offset = 0; size_t offset = 0;

View File

@@ -656,7 +656,7 @@ MPP_RET hal_h264e_vepu2_control(void *hal, MpiCmd cmd_type, void *param)
h264e_hal_dbg(H264E_DBG_DETAIL, "h264e_vpu_control cmd 0x%x, info %p", cmd_type, param); h264e_hal_dbg(H264E_DBG_DETAIL, "h264e_vpu_control cmd 0x%x, info %p", cmd_type, param);
switch (cmd_type) { switch (cmd_type) {
case MPP_ENC_SET_EXTRA_INFO: { case MPP_ENC_GET_HDR_SYNC: {
} break; } break;
case MPP_ENC_GET_EXTRA_INFO: { case MPP_ENC_GET_EXTRA_INFO: {
MppPacket pkt = ctx->packeted_param; MppPacket pkt = ctx->packeted_param;

View File

@@ -2122,8 +2122,8 @@ MPP_RET hal_h265e_vepu22_control(void *hal, MpiCmd cmd_type, void *param)
hal_h265e_dbg_func("enter hal %p,cmd = %d\n", hal, cmd_type); hal_h265e_dbg_func("enter hal %p,cmd = %d\n", hal, cmd_type);
switch (cmd_type) { switch (cmd_type) {
case MPP_ENC_SET_EXTRA_INFO: { case MPP_ENC_GET_HDR_SYNC: {
hal_h265e_dbg_input("MPP_ENC_SET_EXTRA_INFO\n"); hal_h265e_dbg_input("MPP_ENC_GET_HDR_SYNC\n");
break; break;
} }

View File

@@ -566,7 +566,7 @@ MPP_RET hal_jpege_vepu1_control(void *hal, MpiCmd cmd, void *param)
case MPP_ENC_SET_OSD_PLT_CFG: case MPP_ENC_SET_OSD_PLT_CFG:
case MPP_ENC_SET_OSD_DATA_CFG: case MPP_ENC_SET_OSD_DATA_CFG:
case MPP_ENC_GET_OSD_CFG: case MPP_ENC_GET_OSD_CFG:
case MPP_ENC_SET_EXTRA_INFO: case MPP_ENC_GET_HDR_SYNC:
case MPP_ENC_GET_EXTRA_INFO: case MPP_ENC_GET_EXTRA_INFO:
case MPP_ENC_GET_SEI_DATA: case MPP_ENC_GET_SEI_DATA:
case MPP_ENC_SET_SEI_CFG: case MPP_ENC_SET_SEI_CFG:

View File

@@ -546,7 +546,7 @@ MPP_RET hal_jpege_vepu2_control(void *hal, MpiCmd cmd, void *param)
case MPP_ENC_SET_OSD_PLT_CFG: case MPP_ENC_SET_OSD_PLT_CFG:
case MPP_ENC_SET_OSD_DATA_CFG: case MPP_ENC_SET_OSD_DATA_CFG:
case MPP_ENC_GET_OSD_CFG: case MPP_ENC_GET_OSD_CFG:
case MPP_ENC_SET_EXTRA_INFO: case MPP_ENC_GET_HDR_SYNC:
case MPP_ENC_GET_EXTRA_INFO: case MPP_ENC_GET_EXTRA_INFO:
case MPP_ENC_GET_SEI_DATA: case MPP_ENC_GET_SEI_DATA:
case MPP_ENC_SET_SEI_CFG: case MPP_ENC_SET_SEI_CFG: