Hi,
Situation: a raspberry pi with kernel 4.9.59-v7+ and a v2 camera.
With that I do:
struct v4l2_format fmt;
memset(&fmt, 0x00, sizeof fmt);
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
fmt.fmt.pix.width = 640;
fmt.fmt.pix.height = 480;
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24;
fmt.fmt.pix.field = V4L2_FIELD_INTERLACED;
v4l2_ioctl(fd, VIDIOC_S_FMT, &fmt);
I would expect it to select 640x480 but instead it always it selects
3280x2464. Also with other resolutions the result is always 3280x2464.
Is this a bug in libv4l?
Folkert van Heusden