From: Yao.Liu Date: Tue, 20 Mar 2018 13:29:39 +0000 (+0800) Subject: video_sink: disable video_type_compress for resolution over 720p X-Git-Tag: khadas-vims-v0.9.6-release~2284 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46634bf199e3550a085cf087c4119c467e46527b;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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