+ bool has_last_subtitle = false;
+ std::string last_subtitle;
+ movit::RGBTriplet white_balance{1.0f, 1.0f, 1.0f};
+
+ // These are the source of the “data_copy” member in Frame,
+ // used for MJPEG encoding. There are three possibilities:
+ //
+ // - MJPEG encoding is not active (at all, or for this specific
+ // card). Then data_copy is nullptr, and what's in here
+ // does not matter at all.
+ // - We can encode directly into VA-API buffers (ie., VA-API
+ // is active, and nothing strange happened wrt. strides);
+ // then va_resources, va_resources_release and va_image
+ // are fetched from MJPEGEncoder at create_frame() and released
+ // back when the frame is uploaded (or would have been).
+ // In this case, data_copy points into the mapped VAImage.
+ // - If not, data_copy points to data_copy_malloc, and is copied
+ // from there into VA-API buffers (by MJPEGEncoder) if needed.
+ enum { FROM_MALLOC, FROM_VA_API } data_copy_current_src;
+ uint8_t *data_copy_malloc;
+ MJPEGEncoder::VAResources va_resources;
+ MJPEGEncoder::ReleaseVAResources va_resources_release;
+
+ int generation;