The LCD resolution is 1280x720, so we need capture Camera video as 1280x720 via V4L2 interface.When we capture the camera, find the warning messages "imx-ipuv3 imx-ipuv3.0: IDMAC9's EBA0 is not 8-byte aligned" scroll on serial console frequently, the camera screen is splitted in the vertical middle of screen, detailed see attached files.
BTW,another LCD resolution is 800x480, there is no warning message and the camera screen is normal.
How to show the normal camera screen via V4L2 on LCD resolutin of 1280x720
If ((fd_output_v4l = open("video17", O_RDWR, 0)) < 0)
ERROR("Unable to open %s\n", EARLY_RVC_DEV_VD_OUPTPUT);
crop.type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
crop.c.top = top;
crop.c.left = left;
crop.c.width = width;
crop.c.height = height;
if (ioctl(fd_output_v4l, VIDIOC_S_CROP, &crop) < 0)
ERROR("set crop failed\n");