From 40e2965b907913f5eda3fe9bf655d5045ff9880f Mon Sep 17 00:00:00 2001 From: "renjiang.han" Date: Tue, 11 Jun 2019 21:40:03 +0800 Subject: [PATCH] ppmgr: Interlaced video only shows half. [1/1] PD#SWPL-9350 Problem: Interlaced video only shows half. Solution: Interlaced video height is divided by 2. Verify: on U212 Change-Id: I983e3369687eeb55f03d3e7f8474b9e37549440f Signed-off-by: renjiang.han --- .../media/video_processor/ppmgr/ppmgr_vpp.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c b/drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c index 1067bf46460e..b0a28711fce9 100644 --- a/drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c +++ b/drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c @@ -1788,13 +1788,9 @@ static void process_vf_rotate(struct vframe_s *vf, new_vf->orientation = vf->orientation; new_vf->flag = vf->flag; - if ((vf->source_type == VFRAME_SOURCE_TYPE_HDMI) - || (vf->source_type == VFRAME_SOURCE_TYPE_CVBS)) { - if ((interlace_mode == VIDTYPE_INTERLACE_TOP) - || (interlace_mode == VIDTYPE_INTERLACE_BOTTOM)) - vf->height >>= 1; - } - + if ((interlace_mode == VIDTYPE_INTERLACE_TOP) + || (interlace_mode == VIDTYPE_INTERLACE_BOTTOM)) + vf->height >>= 1; #ifndef CONFIG_AMLOGIC_POST_PROCESS_MANAGER_PPSCALER vf_rotate_adjust(vf, new_vf, cur_angle); #else @@ -2365,12 +2361,9 @@ static void process_vf_change(struct vframe_s *vf, interlace_mode = vf->type & VIDTYPE_TYPEMASK; - if ((vf->source_type == VFRAME_SOURCE_TYPE_HDMI) - || (vf->source_type == VFRAME_SOURCE_TYPE_CVBS)) { - if ((interlace_mode == VIDTYPE_INTERLACE_TOP) - || (interlace_mode == VIDTYPE_INTERLACE_BOTTOM)) - vf->height >>= 1; - } + if ((interlace_mode == VIDTYPE_INTERLACE_TOP) + || (interlace_mode == VIDTYPE_INTERLACE_BOTTOM)) + vf->height >>= 1; memset(ge2d_config, 0, sizeof(struct config_para_ex_s)); /* data operating. */