deinterlace: add condition for force_prog [1/1]

PD#SWPL-11550

Problem:
force_prog only for progressive.

Solution:
add condition for force_prog

Verify:
TL1

Change-Id: I44e165c779eefcefcc18a286e66a598ffef1294f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
This commit is contained in:
Jihong Sui
2019-07-24 17:12:27 +08:00
committed by Luan Yuan
parent 34814763ab
commit 44ba5736b1

View File

@@ -3097,7 +3097,10 @@ static void config_di_mif(struct DI_MIF_s *di_mif, struct di_buf_s *di_buf)
di_mif->chroma_y_end0 =
di_buf->vframe->height / 2 - 1;
} else {
di_mif->src_prog = force_prog?1:0;
if (di_pre_stru.cur_inp_type & VIDTYPE_INTERLACE)
di_mif->src_prog = 0;
else
di_mif->src_prog = force_prog?1:0;
di_mif->src_field_mode = 1;
if (
(di_buf->vframe->type & VIDTYPE_TYPEMASK) ==