[libcamera-devel] question about Requests
David Plowman
david.plowman at raspberrypi.com
Fri Oct 16 11:47:30 CEST 2020
Hi everyone
I've been updating my libcamera apps to use the new Request functions
(unique_ptrs and reuse), and I ended up re-inventing the same code as
has been put into qcam (lists of unique_ptrs, "free" Requests, another
mutex). I did find myself wondering whether this could be hidden in
libcamera.
For example, createRequest() gives you a raw pointer, but which
libcamera always owns. When a Request completes and you're done with
it, call reuse() and the next call to createRequest() is allowed to
give it back to you.
Possibly I don't understand the bigger picture here, it was just a thought!
Thanks
David
More information about the libcamera-devel
mailing list