From ab4516183482ea98bf1296b362ebb2a1bd4cbb49 Mon Sep 17 00:00:00 2001 From: Xingwen Fang Date: Mon, 14 Oct 2024 11:44:00 +0800 Subject: [PATCH] feat[vpu_api]: Support configuration to disable decoding errors Signed-off-by: Xingwen Fang Change-Id: I9f01c5092c02dc5ff36f27ca1c8eeaf503d0fa17 --- inc/vpu_api.h | 1 + mpp/legacy/vpu_api_legacy.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/inc/vpu_api.h b/inc/vpu_api.h index b20126af..c137d44e 100644 --- a/inc/vpu_api.h +++ b/inc/vpu_api.h @@ -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, diff --git a/mpp/legacy/vpu_api_legacy.cpp b/mpp/legacy/vpu_api_legacy.cpp index b1b6ca16..7437e337 100644 --- a/mpp/legacy/vpu_api_legacy.cpp +++ b/mpp/legacy/vpu_api_legacy.cpp @@ -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;