+ // 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.
+ };
+