yolobs-studio/plugins/decklink/decklink-device-mode.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
605 B
C++
Raw Permalink Normal View History

2016-02-23 23:16:51 +00:00
#pragma once
#include "platform.hpp"
#include <string>
2019-09-22 21:19:10 +00:00
#define MODE_ID_AUTO -1
2018-02-19 19:54:37 +00:00
2016-02-23 23:16:51 +00:00
class DeckLinkDeviceMode {
protected:
2019-09-22 21:19:10 +00:00
long long id;
2016-02-23 23:16:51 +00:00
IDeckLinkDisplayMode *mode;
2019-09-22 21:19:10 +00:00
std::string name;
2016-02-23 23:16:51 +00:00
public:
DeckLinkDeviceMode(IDeckLinkDisplayMode *mode, long long id);
2019-09-22 21:19:10 +00:00
DeckLinkDeviceMode(const std::string &name, long long id);
2016-02-23 23:16:51 +00:00
virtual ~DeckLinkDeviceMode(void);
BMDDisplayMode GetDisplayMode(void) const;
2018-02-19 19:54:37 +00:00
BMDDisplayModeFlags GetDisplayModeFlags(void) const;
2016-02-23 23:16:51 +00:00
long long GetId(void) const;
2019-09-22 21:19:10 +00:00
const std::string &GetName(void) const;
2018-02-19 19:54:37 +00:00
void SetMode(IDeckLinkDisplayMode *mode);
2019-07-27 12:47:10 +00:00
int GetWidth();
int GetHeight();
2016-02-23 23:16:51 +00:00
};