aravis
aravis copied to clipboard
ArvBuffer clearing after consumption
Hello Emmanuel,
Is it possible that we clear the data in the ArvBuffer object itself after consuming it?
It seems like when the buffers are created and pushed in the stream at first, that they don't occupy a significant part in the memory. It is only when the camera sends its data that those buffers get their memory allocated/filled then reused over and over again in the queue cycle. Therefore, it appears that those buffers sitting at the end of the queue basically have unused data in them and it occupies memory.
Assuming we would like to use let's say 10 buffers, only one or two are mostly out at the same time. We are thinking that it is good to have this safety margin of having multiple buffers available in the queue but at the same time maybe clear those buffers that are returned after their data is consumed.
Thank you