View Full Version : Delete Ring Buffer

Paul Scholz
April 11, 2014, 23:02:16
In my WPF application, I receive live video which is processed in the ImageAvailable event handler. Depending on which mode my application is in, I do certain things with the current buffer.

However, when I set one of the modes, I want to delete everything in the ring buffer before ImageAvailable is called again so I can be certain I am processing fresh data. How can I do that?

Stefan Geissler
April 14, 2014, 10:14:39
The only way is to access each member of the ring buffer, get its image data and set every byte to 0. There os no special function for doing so.