f53df7da64
Code submissions have continually suffered from formatting inconsistencies that constantly have to be addressed. Using clang-format simplifies this by making code formatting more consistent, and allows automation of the code formatting so that maintainers can focus more on the code itself instead of code formatting.
30 lines
605 B
C++
30 lines
605 B
C++
#pragma once
|
|
|
|
#include "platform.hpp"
|
|
|
|
#include <string>
|
|
|
|
#define MODE_ID_AUTO -1
|
|
|
|
class DeckLinkDeviceMode {
|
|
protected:
|
|
long long id;
|
|
IDeckLinkDisplayMode *mode;
|
|
std::string name;
|
|
|
|
public:
|
|
DeckLinkDeviceMode(IDeckLinkDisplayMode *mode, long long id);
|
|
DeckLinkDeviceMode(const std::string &name, long long id);
|
|
virtual ~DeckLinkDeviceMode(void);
|
|
|
|
BMDDisplayMode GetDisplayMode(void) const;
|
|
BMDDisplayModeFlags GetDisplayModeFlags(void) const;
|
|
long long GetId(void) const;
|
|
const std::string &GetName(void) const;
|
|
|
|
void SetMode(IDeckLinkDisplayMode *mode);
|
|
|
|
int GetWidth();
|
|
int GetHeight();
|
|
};
|