Manages a buffer of captured frames for recording. Thread-safe for concurrent capture and consumption.
public class FrameBuffer : IDisposable
kind:method, kind:property, kind:ctor. Press Esc to clear.FrameBuffer(Int32)Creates a new frame buffer with the specified maximum capacity.CountGets the current number of frames in the buffer.DroppedFrameCountGets the number of frames that were dropped due to buffer overflow.IsEmptyGets whether the buffer is empty.IsFullGets whether the buffer is full.MaxFramesGets the maximum number of frames this buffer can hold.TotalBytesBufferedGets the total bytes currently buffered.Clear()Clears all frames from the buffer and disposes them.Dispose()Disposes the frame buffer and all contained frames.GetAllFrames()Gets all frames from the buffer without removing them.TakeAll()Takes all frames from the buffer, clearing it.TryAdd(CapturedFrame)Adds a frame to the buffer.TryTake(out CapturedFrame?)Attempts to take a frame from the buffer.BufferFullEvent raised when the buffer becomes full.FrameDroppedEvent raised when a frame is dropped.