summaryrefslogtreecommitdiff
path: root/sys/v4l2/gstv4l2allocator.h
AgeCommit message (Collapse)AuthorFilesLines
2015-06-09gstv4l2bufferpool: handle -EPIPE from DQBUF to signal EOSPhilipp Zabel1-1/+2
The V4L2 decoder signals EOS by returning -EPIPE from DQBUF after the last buffer. https://bugzilla.gnome.org/show_bug.cgi?id=743338
2015-02-25v4l2allocator: let bufferpool calculate image size when importing userptrAurélien Zanelli1-1/+1
Offset are relative to the buffer and there is no guarantee substracting them will give us the plane size. So we let bufferpool make the math as it is more aware of video info than allocator and pass a size array to allocator import function. Pointed out by Nicolas Dufresne <nicolas.dufresne@collabora.com> https://bugzilla.gnome.org/show_bug.cgi?id=738013
2015-01-08v4l2: Don't use allocator size to iterateNicolas Dufresne1-2/+0
As the buffer array is fixed size and small, it's safer to simply use this static size to cleanup the buffers. This is also more consistent with the rest. The associated method is no longer required and can be dropped.
2014-12-01v4l2allocator: fix gst_v4l2_allocator_stop prototypeAurélien Zanelli1-1/+1
gst_v4l2_allocator_stop returns a GstV4l2Return, not a gboolean. https://bugzilla.gnome.org/show_bug.cgi?id=739792
2014-11-24Revert "v4l2: move vb_queue probing from allocator to v4l2object"Nicolas Dufresne1-0/+15
This reverts commit ec6b8b84af719d828ddd91c724e715c0b4a556bc.
2014-11-21v4l2: move vb_queue probing from allocator to v4l2objectBenjamin Gaignard1-15/+0
The goal is to make those information available in v4l2_object to be able later to select the best allocation method for the pool https://bugzilla.gnome.org/show_bug.cgi?id=699382
2014-07-11v4l2allocator: Use qdata instead of parenting to DmabufMemoryNicolas Dufresne1-0/+4
Parenting V4l2Memory to DmabufMemory was in conflict with recent optimization in DmabufMemory to avoid dup(), and didn't work with memory sharing. Instead, use a qdata and it's destroy notify. https://bugzilla.gnome.org/show_bug.cgi?id=730441
2014-05-08v4l2allocator: Add a method to read number of allocated groupNicolas Dufresne1-0/+2
2014-05-08v4l2-allocator: Add S to REQBUFS/CREATE_BUFS enumNicolas Dufresne1-7/+7
All enum that has REQBUFS and CREATE_BUFS where missing S, which was confusing since they are supposed to match with associcated ioctl name. This also fixes the yet unused CAN_REQUEST flag check.
2014-05-08v4l2: Fixup USERPTR/DMABUF capture supportNicolas Dufresne1-8/+1
2014-05-08v4l2: Add DMABUF and USERPTR importationNicolas Dufresne1-0/+20
2014-05-08v4l2: Add dmabuf export supportNicolas Dufresne1-0/+4
This can be enabled sing io-mode=dmabuf. This will enabled mmap base drivers to export the buffers as dmabuf.
2014-05-08Implement V4l2 AllocatorNicolas Dufresne1-0/+137
This goal of this allocator is mainly to allow tracking the memory. Currently, when a buffer memory has been modified, the buffer and it's memory is disposed and lost until the stream is restarted.