} // namespace
PBOFrameAllocator::PBOFrameAllocator(bmusb::PixelFormat pixel_format, size_t frame_size, GLuint width, GLuint height, unsigned card_index, MJPEGEncoder *mjpeg_encoder, size_t num_queued_frames, GLenum buffer, GLenum permissions, GLenum map_bits)
- : card_index(card_index),
+ : card_index(card_index),
mjpeg_encoder(mjpeg_encoder),
pixel_format(pixel_format),
buffer(buffer),
bmusb::FrameAllocator::Frame PBOFrameAllocator::alloc_frame()
{
- Frame vf;
+ Frame vf;
lock_guard<mutex> lock(freelist_mutex); // Meh.
if (freelist.empty()) {
bmusb::FrameAllocator::Frame PBOFrameAllocator::create_frame(size_t width, size_t height, size_t stride)
{
- Frame vf;
+ Frame vf;
size_t desired_frame_bytes = width * stride;
if (stride > 8192 * 4 || height > 8192 || desired_frame_bytes > MAX_FRAME_SIZE) {