libv4l-rs
libv4l-rs copied to clipboard
Any way to tell device to write into a memory region i defined?
I am trying to minimize latency as much as possible, so i want to tell the stream to write directly into a region of memory i reserved elsewhere. Where another piece of my code reads out of it. Is that possible with this crate?
Not possible at the moment, unfortunately. I am working on this, but it requires a bit of rearchitecturing in the I/O module.
You would probably want to use the userptr module for that in the future.
Is the memory-mapped access not good enough for you right now? If you can e.g. directly blit the mapped buffers, there will be no copying required. What does your usecase look like? What are you doing with the buffers after they are filled?