vpp: disable sr scale up when vskip > 2 [1/1]
authorBrian Zhu <brian.zhu@amlogic.com>
Tue, 29 Jan 2019 16:13:45 +0000 (00:13 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 30 Jan 2019 07:02:25 +0000 (23:02 -0800)
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>
drivers/amlogic/media/video_sink/vpp.c

index 8bfb682..c25c17a 100644 (file)
@@ -1947,6 +1947,14 @@ static void vpp_set_super_scaler(const struct vinfo_s *vinfo,
                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;