- 08 May, 2014 40 commits
-
-
This ensure that the buffer pool won't always discard buffer with these memory when they are released.
-
This ensure that a flushed group memory are the same size as when they where originally allocated / imported.
-
The value of num_allocated buffer would get confused when buffer are being discarded.
-
-
-
-
-
Need to include config.h, otherwise we endup directly using the ioct/mmap/munmap calls and need to vall v4l2_munmap.
-
Nicolas Dufresne authored
We where not setting the probed flags on the allocator, which mean even if CREATE_BUFS was supported on some driver, it would endup being ignored.
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
Return a buffer from an otherpool has unwanted side effects that lead to leaks and prevents deactivating the pool. Instead, we change the _process() API so it can replace the internal buffer with the buffer from the downstream pool. This implied moving from _fill() to _create() method in the src.
-
Nicolas Dufresne authored
The acquire is done in _prepare now.
-
Nicolas Dufresne authored
Buffer refcounting is a bit hard, because of the duality between CAPTURE and OUTPUT mode. In the long term, we should consider having two seperate pool instead of this mess. At least state should be better kept this way.
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
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.
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
Rather then hard failure, we should update the config with the meta option we need and return false.
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
parse_nth_allocation_pool() give a ref on the pool, we need to unref it when done.
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
This can be enabled sing io-mode=dmabuf. This will enabled mmap base drivers to export the buffers as dmabuf.
-
Nicolas Dufresne authored
Because of the buf in videobuf2, dqbuf may leave the DONE flag being, which would implied that the buffer is queued. As this has been broken for 4 years, simply guaranty the state flags integrity when doing qbuf/dqbuf. See https://patchwork.linuxtv.org/patch/23641/
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
In set_caps, now checks if caps actually changed and succeed if they didn't change.
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
Improve decide allocation so it properly configure both local and downstream buffer pools. Also read back the pool config if it was changed to to driver limitations.
-
Nicolas Dufresne authored
Pre-configuring the pool is error prone, since it may hide a configuration failure and endup with a pool that is not configured the way it should (e.g. no video meta, wrong queue size, etc.)
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
Turn crop meta into a custom option and make sure it's there is needed.
-
Nicolas Dufresne authored
Catch short allocation after saving the format. This is not a catch all, but should catch most of the miss-behaving drivers when doing S_FMT/G_FMT and avoid potential crash.
-
Nicolas Dufresne authored
-
Nicolas Dufresne authored
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.
-
Nicolas Dufresne authored
Currently we advertise crop meta, but not element handle support this meta.
-