From 5b54cc5acb28f5d2071c99ef7a715044aa30f10c Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 4 Mar 2016 01:24:22 +0100 Subject: [PATCH] Add a way to get the current video mode. --- bmusb.cpp | 5 +++++ bmusb.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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. -- 2.39.2