ppmgr: Rotate the screen after rotation. [3/6]
authorrenjiang.han <renjiang.han@amlogic.com>
Tue, 4 Jun 2019 07:37:44 +0000 (15:37 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 24 Jun 2019 09:54:31 +0000 (02:54 -0700)
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 <renjiang.han@amlogic.com>
drivers/amlogic/media/video_processor/ppmgr/ppmgr_vpp.c

index f0e70d4..f54e241 100644 (file)
@@ -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;