feat[vpu_api]: Support configuration to disable decoding errors

Signed-off-by: Xingwen Fang <fxw@rock-chips.com>
Change-Id: I9f01c5092c02dc5ff36f27ca1c8eeaf503d0fa17
This commit is contained in:
Xingwen Fang 2024-10-14 11:44:00 +08:00
parent 18e19c57c6
commit ab45161834
2 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,7 @@ typedef enum VPU_API_CMD {
VPU_API_DEC_EN_MVC,
VPU_API_DEC_EN_FBC_HDR_256_ODD,
VPU_API_SET_INPUT_BLOCK,
VPU_API_SET_DISABLE_ERROR,
/* set pkt/frm ready callback */
VPU_API_SET_PKT_RDY_CB = 0x1100,

View File

@ -1716,6 +1716,9 @@ RK_S32 VpuApiLegacy::control(VpuCodecContext *ctx, VPU_API_CMD cmd, void *param)
mpp_dec_cfg_deinit(cfg);
return ret;
} break;
case VPU_API_SET_DISABLE_ERROR: {
mpicmd = MPP_DEC_SET_DISABLE_ERROR;
} break;
case VPU_API_SET_IMMEDIATE_OUT: {
mpicmd = MPP_DEC_SET_IMMEDIATE_OUT;
} break;