Re: libv4l resolution selection not working?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ehm, the problem might be somewhere else :-)

On Sat, May 25, 2019 at 09:56:09AM +0200, folkert wrote:
> 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


Folkert van Heusden

-- 
You've probably gotten really fed up with never winning in the Mega-
Millions lottery. Well, weep no longer: www.smartwinning.info tells
you everything that might help you deciding what numbers to choose.
With nice graphs and pretty animations!



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux