mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
[iep2] md_pre_en off for rk3528 by default
add iep_md_pre_en env param for rk3528 Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com> Change-Id: I98222263f29b3130e3ae16b6867a341c86755eef
This commit is contained in:
parent
e10c4c7f3a
commit
e59b06463d
1 changed files with 12 additions and 1 deletions
|
|
@ -42,6 +42,7 @@
|
|||
#define IEP2_TILE_H_MAX 480
|
||||
|
||||
RK_U32 iep_debug = 0;
|
||||
RK_U32 iep_md_pre_en = 0;
|
||||
|
||||
static MPP_RET get_param_from_env(struct iep2_api_ctx *ctx)
|
||||
{
|
||||
|
|
@ -105,7 +106,17 @@ static MPP_RET iep2_init(IepCtx *ictx)
|
|||
|
||||
ctx->params.md_theta = 1;
|
||||
ctx->params.md_r = 6;
|
||||
ctx->params.md_lambda = 4;
|
||||
|
||||
if (mpp_get_soc_type() == ROCKCHIP_SOC_RK3528) {
|
||||
mpp_env_get_u32("iep_md_pre_en", &iep_md_pre_en, 0);
|
||||
if (iep_md_pre_en) {
|
||||
ctx->params.md_lambda = 4;
|
||||
} else {
|
||||
ctx->params.md_lambda = 8;
|
||||
}
|
||||
} else {
|
||||
ctx->params.md_lambda = 4;
|
||||
}
|
||||
|
||||
ctx->params.dect_resi_thr = 30;
|
||||
ctx->params.osd_area_num = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue