AnsweredAssumed Answered

When V4L2 output "width = 1280, height = 720", camera screen is splitted in the vertical middle of screen

Question asked by Youfu Hu on Jul 13, 2016
Latest reply on Dec 10, 2016 by David Fincher

[Background]

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.

 

[Question]

How to show the normal camera screen via V4L2 on LCD resolutin of 1280x720

 

[Related code]

If ((fd_output_v4l = open("video17", O_RDWR, 0)) < 0)

{

ERROR("Unable to open %s\n", EARLY_RVC_DEV_VD_OUPTPUT);

return -1;

}

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");

return -1;

Attachments

Outcomes