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 <renjiang.han@amlogic.com>
This commit is contained in:
renjiang.han
2019-06-04 15:37:44 +08:00
committed by Tao Zeng
parent db81941f79
commit b6ba56aca3

View 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;