We are using openeb sdk, and we added a callback function to acquire the EventCD data like this:
cam_ptr->cd().add_callback(cb)
In cb, the events are copied from driver's memory to our memory. After getting enough events, we feed them to the next-step processing.
To speed up the whole pipeline, we want to provide a pre-allocated buffer to the driver side and let the driver collect batches of events by itself. Then we can directly access the data without need of copying it. I checked the openEB sdk but I did't found a clear solution. Hope anyone can help with this.
Thanks!