RE: Should a index be passed on the fly with the VIDIOC_QBUF ioctl in V4L2_MEMORY_USERPTR case ?

2010-12-14 Thread Jonghun Han
Hi, Any comment for this ? In my opinion v4l2 spec is not accurate in this topic. Because VIDIOC_REQBUFS describes count is only used in V4L2_MEMORY_MMAP as below. __u32 count The number of buffers requested or granted. This field is only used when memory is set to V4L2_MEMORY_MMAP. But

Re: Should a index be passed on the fly with the VIDIOC_QBUF ioctl in V4L2_MEMORY_USERPTR case ?

2010-12-14 Thread Laurent Pinchart
Hi Jonghun, On Tuesday 14 December 2010 11:51:17 Jonghun Han wrote: Hi, Any comment for this ? In my opinion v4l2 spec is not accurate in this topic. Because VIDIOC_REQBUFS describes count is only used in V4L2_MEMORY_MMAP as below. __u32 count The number of buffers requested or

RE: Should a index be passed on the fly with the VIDIOC_QBUF ioctl in V4L2_MEMORY_USERPTR case ?

2010-12-14 Thread Jonghun Han
Hi Laurent Pinchart, Thanks you for reply. It makes sense. Best regards, Jonghun Han -Original Message- From: linux-media-ow...@vger.kernel.org [mailto:linux-media- ow...@vger.kernel.org] On Behalf Of Laurent Pinchart Sent: Tuesday, December 14, 2010 8:00 PM To: Jonghun Han Cc:

Should a index be passed on the fly with the VIDIOC_QBUF ioctl in V4L2_MEMORY_USERPTR case ?

2010-12-10 Thread Jonghun Han
Hi, I wonder that a index should be passed on the fly with the VIDIOC_QBUF ioctl in V4L2_MEMORY_USERPTR case. If it isn't needed, should driver return virtual address gotten from application on the fly with the VIDIOC_DQBUF ioctl ? Best regards, Jonghun Han, -- To unsubscribe from this list: