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

Any way to tell device to write into a memory region i defined?

Open joepvand opened this issue 2 years ago • 1 comments

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?

joepvand avatar May 08 '23 09:05 joepvand

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?

raymanfx avatar May 09 '23 14:05 raymanfx