Re: buffer index when streaming user-ptr buffers

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

 



Hi Michael,

On Tuesday 14 June 2011 17:50:13 Michael Jones wrote:
> In the V4L2 spec, the description for v4l2_buffer.index says "This field
> is only used for memory mapping I/O..."
> 
> However, in v4l-utils/contrib/capture-example.c, even user-pointer
> buffers are indeed given a buf.index before being passed to VIDIOC_QBUF.
>  And at least in the OMAP ISP driver, this information is relied upon in
> QBUF regardless of V4L2_MEMORY_MMAP/USERPTR.  videobuf-core also uses
> v4l2_buffer->index even if b->memory == V4L2_MEMORY_USERPTR.
> 
> Is this a bug in the OMAP driver and videobuf-core, and an unnecessary
> assignment in capture-example?  Or is the V4L2 spec out of touch/ out of
> date?

The spec is out of date. The index field is used for userptr buffers as well.

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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