libv4l-rs icon indicating copy to clipboard operation
libv4l-rs copied to clipboard

basic multi-plane support

Open illegalprime opened this issue 1 year ago • 3 comments

I care about creating a capture stream with a multi-plane camera. I have a basic version of it working, with inspiration from your mplane branch. What works:

  1. get/set/list formats
  2. create an mmap capture stream
  3. stream frames from it

illegalprime avatar May 03 '23 14:05 illegalprime

I would like to see this merged into a release as I am also interested in using this on an imx8 system.

tepperson2 avatar Jun 13 '23 14:06 tepperson2

@raymanfx, @illegalprime, and @anatawa12 I have a project that uses a single plane, and a plan to add support for a multiple plane device. This PR only introduced only 1 breaking change (this project is still in 0 major, so that shouldn't be an issue) to my project, which is that Stream::next() gives a slice of slices instead of a slice. The type system will give the user information about what needs changing, and the Cargo.lock file will prevent the change from occurring for people who just want to make a working build of something, and don't want to fix anything to work with newer libs at the moment, so this PR can be merged as soon as https://github.com/illegalprime/libv4l-rs/pull/1 lands. Thanks!

Type1J avatar Dec 21 '23 22:12 Type1J

Thank you for cleaning up the conflicts! Even though nobody's experience would necessarily break with this addition it should still not be merged until the author decides this is the abstraction they prefer.

illegalprime avatar Dec 21 '23 23:12 illegalprime