deinterlace: demosquito not work when play 4k video [1/1]

PD#SWPL-140743

Problem:
When play 4k video,demosquito bit8&bit9 not change.

Solution:
change 4k video wdith to compWidth

Verify:
Verified on t5m

Change-Id: Idf42b9b4392bbcea35a6a878690d374d32d79caf
Signed-off-by: rong.wang <rong.wang@amlogic.com>
This commit is contained in:
rong.wang
2023-10-08 17:07:13 +08:00
committed by gerrit autosubmit
parent 30573e9986
commit 89a42b09a2
+4 -2
View File
@@ -11043,6 +11043,7 @@ bool dim_need_bypass(unsigned int ch, struct vframe_s *vf)
void di_reg_setting(unsigned int channel, struct vframe_s *vframe)
{
unsigned short nr_height = 0, first_field_type;
unsigned short nr_width = 0;
struct di_dev_s *de_devp = get_dim_de_devp();
unsigned int x, y;
@@ -11136,13 +11137,14 @@ void di_reg_setting(unsigned int channel, struct vframe_s *vframe)
/*--------------------------*/
dim_vf_x_y(vframe, &x, &y);
nr_height = (unsigned short)y;
nr_width = (unsigned short)x;
if (IS_I_SRC(vframe->type))
nr_height = (nr_height >> 1);/*temp*/
dbg_reg("%s:0x%x:%d,%d,%d\n", __func__, vframe->type, x, y, nr_height);
dbg_reg("%s:0x%x:%d,%d,%d,%d\n", __func__, vframe->type, x, y, nr_height, nr_width);
/*--------------------------*/
dimh_calc_lmv_init();
first_field_type = (vframe->type & VIDTYPE_TYPEMASK);
di_pre_size_change(vframe->width, nr_height,
di_pre_size_change(nr_width, nr_height,
first_field_type, channel);
get_ops_nr()->cue_int(vframe);
dim_ddbg_mod_save(EDI_DBG_MOD_REGE, channel, 0);