All of lore.kernel.org
 help / color / mirror / Atom feed
* libv4l resolution selection not working?
@ 2019-05-25  7:56 folkert
  2019-05-28 12:29 ` folkert
  0 siblings, 1 reply; 2+ messages in thread
From: folkert @ 2019-05-25  7:56 UTC (permalink / raw)
  To: linux-media

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: libv4l resolution selection not working?
  2019-05-25  7:56 libv4l resolution selection not working? folkert
@ 2019-05-28 12:29 ` folkert
  0 siblings, 0 replies; 2+ messages in thread
From: folkert @ 2019-05-28 12:29 UTC (permalink / raw)
  To: linux-media

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-28 12:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-25  7:56 libv4l resolution selection not working? folkert
2019-05-28 12:29 ` folkert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.