di: fix pulldown 22 enter slow patch from vlsi-LiuYanling [1/1]

PD#SWPL-12061

Problem:
film 22 detection threshold is high

Solution:
adjust the threshold lower

Verify:
sm1

Change-Id: I8e01e910b4a08aefdbde18fe1033bcb45e85b338
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
This commit is contained in:
Bencheng Jing
2019-07-31 17:48:48 +08:00
committed by Luan Yuan
parent 0473b56bf2
commit a6ae56cfec

View File

@@ -1628,13 +1628,13 @@ int Flm22DetSft(struct sFlmDatSt *pRDat, int *nDif02,
/*DI:PQ patch fix 480i error into pulldown22(by yanling)*/
flm22_min = nDif01[HISDIFNUM-1] > nDif01[HISDIFNUM-2]
? nDif01[HISDIFNUM-2] : nDif01[HISDIFNUM-1];
flm22_th = flm22_min/2;
flm22_th = min(flm22_min / 2, 1 << 16);
dif_flag = abs(nDif01[HISDIFNUM-1]-nDif01[HISDIFNUM-2])
> flm22_th ? 1:0;
dif_flag =
max(nDif01[HISDIFNUM-1], nDif01[HISDIFNUM-2]) > (1<<16) ?
dif_flag : 0;
if (flm22_flag && (dif_flag || pPar->flm22_avg_flag)) {
if (flm22_flag && dif_flag) {
/* ---------------------- */
if (pFlg[HISDETNUM-1] == 3
|| pFlg[HISDETNUM-1] == 1) {