void mouseReleaseEvent(QMouseEvent *e);
void mouseMoveEvent(QMouseEvent *e);
- // Should really have a PBO, but this is OK for now.
// public due to shared_ptr.
struct Frame {
unsigned width, height;
unsigned chroma_width, chroma_height;
- std::unique_ptr<uint8_t[]> data; // Y, followed by Cb, followed by Cr.
VideoWidget *owner; // For the freelist.
+ GLuint pbo;
+ uint8_t *data; // Persistently mapped into the PBO. Y, followed by Cb, followed by Cr.
+ size_t need_flush_len; // 0 = no flush needed.
};
signals: