vpp: disable sr scale up when vskip > 2 [1/1]

PD#TV-2331

Problem:
SR insert unnecessary scale up to make scale down ratio
too larger.

Solution:
disable SR core0 which is before pps when mif vskip is > 2

Verify:
Locally on X301

Change-Id: I810fbae20f337e6eeb0a8e88d9758f78ad224254
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
This commit is contained in:
Brian Zhu
2019-01-30 00:13:45 +08:00
committed by Luan Yuan
parent aba0c6e319
commit 6d1a8b6de5

View File

@@ -1927,6 +1927,14 @@ static void vpp_set_super_scaler(
next_frame_par->supsc0_hori_ratio = 0;
next_frame_par->supsc0_vert_ratio = 0;
}
/* much vskip case, no need super scale up */
if (next_frame_par->vscale_skip_count >= 2) {
next_frame_par->supsc0_enable = 0;
next_frame_par->supsc0_hori_ratio = 0;
next_frame_par->supsc0_vert_ratio = 0;
}
if (bypass_sr1 || !(sr_support & SUPER_CORE1_SUPPORT)) {
next_frame_par->supsc1_enable = 0;
next_frame_par->supsc1_hori_ratio = 0;