// 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;
+ VAResourcePool::VAResources va_resources;
+ ReleaseVAResources va_resources_release;
int generation;
};
GLenum permissions;
GLenum map_bits;
int generation = 0; // Under freelist_mutex.
+
+ struct LingeringGeneration {
+ std::unique_ptr<Userdata[]> userdata;
+ size_t num_frames_left;
+ };
+ std::map<int, LingeringGeneration> lingering_generations;
};
#endif // !defined(_PBO_FRAME_ALLOCATOR)