采集队列
- G:\GERRIT\zhangbinowt\third_party\webrtc\modules\desktop_capture\screen_capture_frame_queue.h
- 存储 std::unique_ptr类型的数组
- 默认 两帧
ScreenCaptureFrameQueue
- 当前和前一个
- MoveToNextFrame 两帧切换
- current_frame() 返回NULL, 调用者可能要自己分配一帧?
- 如果帧的分辨率变化了,调用者可以让队列重新分配所有帧。
- 调用者query时,队列记录哪个帧需要更新,
- 帧的消费者期望不超过kQueueLength 数量的帧在队列中。
- 并且 在尝试采集一帧新的图像(比如调用MoveToNextFrame())之前,不会释放掉最早的帧。
// Represents a queue of reusable video frames. Provides access to the 'current'
// frame - the frame that the caller is working with at the moment,