From 24d1594b7f7f65bdd85a2fd66f15ff742d452b82 Mon Sep 17 00:00:00 2001 From: Johnson Ding Date: Sat, 10 Dec 2022 11:40:58 +0800 Subject: [PATCH] [iep2]: Disable OSD check OSD checking will cost much CPU time and affecting field detection. So disable it. Change-Id: I18fa811623d7d219e207672c7835c366409a9e07 Signed-off-by: Johnson Ding --- mpp/vproc/iep2/iep2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mpp/vproc/iep2/iep2.c b/mpp/vproc/iep2/iep2.c index 5d4d43f0..881fe4b6 100644 --- a/mpp/vproc/iep2/iep2.c +++ b/mpp/vproc/iep2/iep2.c @@ -40,6 +40,7 @@ #define IEP2_TILE_W_MAX 120 #define IEP2_TILE_H_MAX 480 +#define IEP2_OSD_EN 0 RK_U32 iep_debug = 0; RK_U32 iep_md_pre_en = 0; @@ -237,7 +238,11 @@ static MPP_RET iep2_done(struct iep2_api_ctx *ctx) ctx->params.dil_mode == IEP2_DIL_MODE_I5O1B) { struct mv_list ls; +#if IEP2_OSD_EN iep2_set_osd(ctx, &ls); +#else + memset(&ls, 0, sizeof(struct mv_list)); +#endif iep2_update_gmv(ctx, &ls); iep2_check_ffo(ctx); iep2_check_pd(ctx);