- void upload_frame(int64_t pts, unsigned card_index, RefCountedFrame frame, const bmusb::VideoFormat &video_format, size_t y_offset, size_t cbcr_offset);
-
- // If the frame was started (data_copy != nullptr) but will not be finished
- // (MJPEG decoding was turned off in the meantime), you'll need to call finish_frame()
- // to release any VA-API resources.
- void finish_frame(RefCountedFrame frame);
-
+ void upload_frame(int64_t pts, unsigned card_index, RefCountedFrame frame, const bmusb::VideoFormat &video_format, size_t y_offset, size_t cbcr_offset, std::vector<int32_t> audio);