to send video to the output device.
You allocate 2 pointers with space enough for frame data.
You store data in a buffer while sending the other buffer to the driver.
In the next you switch the buffers. The one sending is now used for storing and vice-versa.
--
Amr