- void upload_frame(int64_t pts, unsigned card_index, RefCountedFrame frame, const bmusb::VideoFormat &video_format, size_t y_offset, size_t cbcr_offset);
+ 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);
+ bool using_vaapi() const { return va_dpy != nullptr; }
+
+ // Returns -1 for inactive (ie., don't encode frames for this card right now).
+ int get_mjpeg_stream_for_card(unsigned card_index);