X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bmusb.h;h=9ba27bcc111234040d807bbcd0fafbb3f3cd9275;hb=5b54cc5acb28f5d2071c99ef7a715044aa30f10c;hp=8178ac0ba3e992fd1a6cb350143c9b9cb57ca12f;hpb=753cbaf5cec7411bdfe5171404c8586b8015faec;p=bmusb diff --git a/bmusb.h b/bmusb.h index 8178ac0..9ba27bc 100644 --- a/bmusb.h +++ b/bmusb.h @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -80,7 +81,6 @@ private: // Represents an input mode you can tune a card to. struct VideoMode { - uint32_t id = 0; std::string name; bool autodetect = false; // If true, all the remaining fields are irrelevant. unsigned width = 0, height = 0; @@ -113,8 +113,8 @@ class CaptureInterface { public: virtual ~CaptureInterface() {} - virtual std::vector get_available_video_modes() const = 0; - + 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. @@ -152,8 +152,8 @@ class BMUSBCapture : public CaptureInterface { ~BMUSBCapture() {} - std::vector get_available_video_modes() const override; - + 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.