AJA NTV2 SDK  18.0.0.2122
NTV2 SDK 18.0.0.2122
circularbuffer.h File Reference

Declaration of AJACircularBuffer template class. More...

Include dependency graph for circularbuffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AJACircularBuffer< FrameDataPtr >
 I am a circular frame buffer that simplifies implementing a type-safe producer/consumer model for processing frame-based streaming media. I can be used with any client-defined "frame", be it a struct or class. To use me:

  1. Instantiate me.
  2. Initialize me by calling my Add method, adding client-defined frames for me to manage.
  3. Spawn a producer thread and a consumer thread.
  4. The producer thread repeatedly calls my StartProduceNextBuffer, puts data in the frame, then calls EndProduceNextBuffer when finished.
  5. The consumer thread repeatedly calls my StartConsumeNextBuffer, processes data in the frame, then calls EndConsumeNextBuffer when finished.
More...
 

Detailed Description

Declaration of AJACircularBuffer template class.

Definition in file circularbuffer.h.