Circular Encoder Buffer
Holds encoded video data in a circular buffer.
This is actually a pair of circular buffers, one for the raw data and one for the meta-data (flags and PTS).
Not thread-safe.
Functions
Link copied to clipboard
Adds a new encoded data packet to the buffer.
Link copied to clipboard
Computes the amount of time spanned by the buffered data, based on the presentation time stamps.
Link copied to clipboard
Returns a reference to a "direct" ByteBuffer with the data, and fills in the BufferInfo.
Link copied to clipboard
Returns the index of the oldest sync frame.
Link copied to clipboard
Returns the index of the next packet, or -1 if we've reached the end.