deinterlace: add patch for global motion information [1/2]

PD#SWPL-7814

Problem:
VPP need di given global motion information

Solution:
add global motion information

Verify:
tl1

Change-Id: I6e522902a1d27b71db8c283b28ede6f684912fe0
Signed-off-by: Wenfeng Guo <wenfeng.guo@amlogic.com>
This commit is contained in:
Wenfeng Guo
2019-10-21 17:21:33 +08:00
committed by Tao Zeng
parent c62207ef53
commit 6dbee9dbec
2 changed files with 5 additions and 1 deletions

View File

@@ -3580,8 +3580,10 @@ static void pre_de_done_buf_config(void)
di_pre_stru.di_post_wr_buf = di_pre_stru.di_wr_buf;
post_wr_buf = di_pre_stru.di_post_wr_buf;
if (post_wr_buf)
if (post_wr_buf) {
post_wr_buf->vframe->di_pulldown = 0;
post_wr_buf->vframe->di_gmv = 0;
}
if (post_wr_buf && !di_pre_stru.cur_prog_flag) {
read_pulldown_info(&glb_frame_mot_num,
@@ -3596,6 +3598,7 @@ static void pre_de_done_buf_config(void)
}
post_wr_buf->vframe->di_pulldown |= 0x08;
post_wr_buf->vframe->di_gmv = glb_frame_mot_num;
if (di_pre_stru.combing_fix_en)
cur_lev = adaptive_combing_fixing(
di_pre_stru.mtn_status,

View File

@@ -435,6 +435,7 @@ struct vframe_s {
* bit 0: flm32
*****************/
u32 di_pulldown;
u32 di_gmv;
} /*vframe_t */;
#if 0