return {{ 0, auto_mode }};
}
+uint32_t BMUSBCapture::get_current_video_mode() const
+{
+ return 0; // Matches get_available_video_modes().
+}
+
void BMUSBCapture::set_video_mode(uint32_t video_mode_id)
{
assert(video_mode_id == 0); // Matches get_available_video_modes().
virtual ~CaptureInterface() {}
virtual std::map<uint32_t, VideoMode> get_available_video_modes() const = 0;
-
+ virtual uint32_t get_current_video_mode() const = 0;
virtual void set_video_mode(uint32_t video_mode_id) = 0;
// Does not take ownership.
~BMUSBCapture() {}
std::map<uint32_t, VideoMode> get_available_video_modes() const override;
-
+ uint32_t get_current_video_mode() const override;
void set_video_mode(uint32_t video_mode_id) override;
// Does not take ownership.