From: Steinar H. Gunderson Date: Fri, 4 Mar 2016 00:24:22 +0000 (+0100) Subject: Add a way to get the current video mode. X-Git-Tag: 0.4~15 X-Git-Url: https://git.sesse.net/?p=bmusb;a=commitdiff_plain;h=5b54cc5acb28f5d2071c99ef7a715044aa30f10c Add a way to get the current video mode. --- diff --git a/bmusb.cpp b/bmusb.cpp index b400ac7..3d2c9f0 100644 --- a/bmusb.cpp +++ b/bmusb.cpp @@ -1240,6 +1240,11 @@ map BMUSBCapture::get_available_video_modes() const 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(). diff --git a/bmusb.h b/bmusb.h index e905e05..9ba27bc 100644 --- a/bmusb.h +++ b/bmusb.h @@ -114,7 +114,7 @@ class CaptureInterface { virtual ~CaptureInterface() {} virtual std::map 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. @@ -153,7 +153,7 @@ class BMUSBCapture : public CaptureInterface { ~BMUSBCapture() {} std::map 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.