card->frame_allocator->reconfigure(pixel_format, FRAME_SIZE, global_flags.width, global_flags.height, card_index, mjpeg_encoder.get());
}
card->capture->set_video_frame_allocator(card->frame_allocator.get());
- if (card->surface == nullptr) {
- card->surface = create_surface_with_same_format(mixer_surface);
- }
while (!card->new_frames.empty()) card->new_frames.pop_front();
card->last_timecode = -1;
card->capture->set_pixel_format(pixel_format);
std::unique_ptr<PBOFrameAllocator> frame_allocator;
- // Stuff for the OpenGL context (for texture uploading).
- QSurface *surface = nullptr;
-
struct NewFrame {
RefCountedFrame frame;
int64_t length; // In TIMEBASE units.