unsigned chroma_width, chroma_height;
std::unique_ptr<uint8_t[]> data; // Y, followed by Cb, followed by Cr.
};
- std::shared_ptr<Frame> current_frame;
+ std::mutex current_frame_mu;
+ std::shared_ptr<Frame> current_frame; // Protected by current_frame_mu.
std::deque<AVFrameWithDeleter> queued_frames; // Frames decoded but not displayed. Only used when frame-stepping backwards.
GLuint ycbcr_vertex_shader, ycbcr_fragment_shader, ycbcr_program;