kbingham / libcamera

libcamera - Making complex cameras easy. This is a personal fork, please use the upstream repository at https://git.libcamera.org/libcamera/libcamera.git/
https://libcamera.org
Other
173 stars 69 forks source link

v4l2-compat: V4L2_MEMORY_DMABUF? #32

Closed soyersoyer closed 3 years ago

soyersoyer commented 3 years ago

Could the v4l2-compat layer support buffers with type V4L2_MEMORY_DMABUF? I want to pass these buffers to bcm2835-v4l2-codec and spare one mmap buffer copy to another mmap buffer.

kbingham commented 3 years ago

I'm surprised to hear it doesn't? But I didn't develop that code.

The best way to discuss this is on the libcamera devel list, or in IRC on #libcamera at oftc.net

kbingham commented 3 years ago

Or optionally report it as a feature request, or bug at bugs.libcamera.org

soyersoyer commented 3 years ago

Okey, thanks for the directions!

kbingham commented 3 years ago

I've just heard that DMAbuf isn't actually implemented there, but it shouldn't be too hard to do.