I use 53qsb board, android 10.3.2.
LCD as the primary.
just modify the code.. hardware/mx5x/liboverlay/overlay_thread.c
diff --git a/liboverlay/overlay_thread.cpp b/liboverlay/overlay_thread.cpp
index cce32a6..c9b435a 100755
--- a/liboverlay/overlay_thread.cpp
+++ b/liboverlay/overlay_thread.cpp
@@ -354,8 +354,9 @@ bool OverlayThread::switchDualVideoSinUI(struct overlay_control_context_t * dev)
OVERLAY_LOG_ERR("output fmt BGR32");
break;
case 16:
- sec_video_mIPUOutputParam.fmt = IPU_PIX_FMT_RGB565;
- OVERLAY_LOG_ERR("output fmt RGB565");
+ sec_video_mIPUOutputParam.fmt = v4l2_fourcc('U', 'Y', 'V', 'Y');//IPU_PIX_FMT_RGB565;
+ //OVERLAY_LOG_ERR("output fmt RGB565");
+ OVERLAY_LOG_ERR("UYVY");
break;
}
}
Then use the android building app : Gallery to play the mp4 file, both LCD and TVOUT show the video simutaneously, and both are OK.
although I didn't set TVOUT as the primary display...
in this mode, UI in TVOUT is not correct, and I found the UI in TVOUT is displayed by c2dresizetosecFrameBuffer_c2d( ).
pity that ...the code setting the destination surface format..
dstSurfaceDef.format = get_format(HAL_PIXEL_FORMAT_RGB_565);
If there is a way to set the format to fourcc(UYVU), maybe the TVOUT UI will be OK, too.