author | Yao.Liu <yao.liu@amlogic.com> | 2018-03-20 13:29:39 (GMT) |
---|---|---|
committer | jie.yuan <jie.yuan@amlogic.com> | 2018-03-26 05:24:35 (GMT) |
commit | 3ea0bef262ee17c936c4fa0e6d1f2120e3bbd4b4 (patch) | |
tree | 3dbe1ce32cc03d1d3431ad6f0358930c193863ee | |
parent | 9bc0bd1ef74d5e3ed96c2e845f1edd5a23808966 (diff) | |
download | common-3ea0bef262ee17c936c4fa0e6d1f2120e3bbd4b4.zip common-3ea0bef262ee17c936c4fa0e6d1f2120e3bbd4b4.tar.gz common-3ea0bef262ee17c936c4fa0e6d1f2120e3bbd4b4.tar.bz2 |
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 <yao.liu@amlogic.com>
-rw-r--r-- | drivers/amlogic/media/video_sink/vpp.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/amlogic/media/video_sink/vpp.c b/drivers/amlogic/media/video_sink/vpp.c index 40b045f..e4da45c 100644 --- a/drivers/amlogic/media/video_sink/vpp.c +++ b/drivers/amlogic/media/video_sink/vpp.c @@ -635,17 +635,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 |