From b6ba56aca3c26baf512ed73a470072cc2cce14d6 Mon Sep 17 00:00:00 2001 From: "renjiang.han" Date: Tue, 4 Jun 2019 15:37:44 +0800 Subject: [PATCH] ppmgr: Rotate the screen after rotation. [3/6] PD#SWPL-9350 Problem: After the HDR video is played, play normal video, and the display is abnormal. Solution: Signal_type and bitdepth need to be reassigned. Verify: on U212 Change-Id: Ie2acddff3be34e01062a69d48bf4e82619559fb9 Signed-off-by: renjiang.han --- drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c b/drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c index f0e70d4b7011..f54e2410eb6b 100644 --- a/drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c +++ b/drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c @@ -1785,6 +1785,9 @@ static void process_vf_rotate(struct vframe_s *vf, new_vf->duration_pulldown = vf->duration_pulldown; new_vf->pts = vf->pts; new_vf->pts_us64 = vf->pts_us64; + new_vf->bitdepth = BITDEPTH_Y8 | BITDEPTH_U8 | BITDEPTH_V8; + new_vf->signal_type = vf->signal_type; + new_vf->omx_index = vf->omx_index; new_vf->type = VIDTYPE_VIU_444 | VIDTYPE_VIU_SINGLE_PLANE | VIDTYPE_VIU_FIELD; new_vf->canvas0Addr = new_vf->canvas1Addr = index2canvas(pp_vf->index); @@ -2274,6 +2277,9 @@ static void process_vf_change(struct vframe_s *vf, temp_vf.pts = vf->pts; temp_vf.pts_us64 = vf->pts_us64; temp_vf.flag = vf->flag; + temp_vf.bitdepth = BITDEPTH_Y8 | BITDEPTH_U8 | BITDEPTH_V8; + temp_vf.signal_type = vf->signal_type; + temp_vf.omx_index = vf->omx_index; temp_vf.type = VIDTYPE_VIU_444 | VIDTYPE_VIU_SINGLE_PLANE | VIDTYPE_VIU_FIELD; temp_vf.canvas0Addr = temp_vf.canvas1Addr = ass_index;