From 46634bf199e3550a085cf087c4119c467e46527b Mon Sep 17 00:00:00 2001 From: "Yao.Liu" Date: Tue, 20 Mar 2018 21:29:39 +0800 Subject: [PATCH] video_sink: disable video_type_compress for resolution over 720p PD#159581: video_sink: disable video_type_compress for resolution over 720p Change-Id: Ie5909bc087a2770a93e0e617f319143f5cacaa7f Signed-off-by: Yao.Liu --- drivers/amlogic/media/video_sink/vpp.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/amlogic/media/video_sink/vpp.c b/drivers/amlogic/media/video_sink/vpp.c index c6f1aadc..8e0b124 100644 --- a/drivers/amlogic/media/video_sink/vpp.c +++ b/drivers/amlogic/media/video_sink/vpp.c @@ -636,17 +636,12 @@ vpp_process_speed_check(s32 width_in, } else { clk_in_pps = get_vpu_clk(); } - if (vf->type & VIDTYPE_COMPRESS) { - if (vf->width > 720) - min_ratio_1000 = (MIN_RATIO_1000 * 1400)/1000; - else - min_ratio_1000 = (1750 * 1400)/1000; - } else { - if (vf->width > 720) - min_ratio_1000 = MIN_RATIO_1000; - else - min_ratio_1000 = 1750; - } + + if (vf->width > 720) + min_ratio_1000 = MIN_RATIO_1000; + else + min_ratio_1000 = 1750; + if (vinfo->field_height < vinfo->height) vtotal = 525 / 2;//vinfo->vtotal/2; else -- 2.7.4