Imported Upstream version 0.13.2+dsfg1
This commit is contained in:
commit
fb3990e9e5
2036 changed files with 287360 additions and 0 deletions
47
plugins/decklink/decklink.hpp
Normal file
47
plugins/decklink/decklink.hpp
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
#pragma once
|
||||
|
||||
#include "platform.hpp"
|
||||
|
||||
#include <obs-module.h>
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <mutex>
|
||||
|
||||
class DeckLinkDeviceDiscovery;
|
||||
class DeckLinkDeviceInstance;
|
||||
class DeckLinkDevice;
|
||||
class DeckLinkDeviceMode;
|
||||
|
||||
class DeckLink {
|
||||
protected:
|
||||
ComPtr<DeckLinkDeviceInstance> instance;
|
||||
DeckLinkDeviceDiscovery *discovery;
|
||||
bool isCapturing = false;
|
||||
obs_source_t *source;
|
||||
volatile long activateRefs = 0;
|
||||
std::recursive_mutex deviceMutex;
|
||||
BMDPixelFormat pixelFormat = bmdFormat8BitYUV;
|
||||
|
||||
void SaveSettings();
|
||||
static void DevicesChanged(void *param, DeckLinkDevice *device,
|
||||
bool added);
|
||||
|
||||
public:
|
||||
DeckLink(obs_source_t *source, DeckLinkDeviceDiscovery *discovery);
|
||||
virtual ~DeckLink(void);
|
||||
|
||||
DeckLinkDevice *GetDevice() const;
|
||||
|
||||
long long GetActiveModeId(void) const;
|
||||
obs_source_t *GetSource(void) const;
|
||||
|
||||
inline BMDPixelFormat GetPixelFormat() const {return pixelFormat;}
|
||||
inline void SetPixelFormat(BMDPixelFormat format)
|
||||
{
|
||||
pixelFormat = format;
|
||||
}
|
||||
|
||||
bool Activate(DeckLinkDevice *device, long long modeId);
|
||||
void Deactivate();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue