mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-13 16:55:02 -04:00
decklink: Allow selecting input connections.
This commit is contained in:
@@ -72,6 +72,18 @@ bool DeckLinkDevice::Init()
|
||||
}
|
||||
}
|
||||
|
||||
// Get supported video connections
|
||||
attributes->GetInt(BMDDeckLinkVideoInputConnections,
|
||||
&supportedVideoInputConnections);
|
||||
attributes->GetInt(BMDDeckLinkVideoOutputConnections,
|
||||
&supportedVideoOutputConnections);
|
||||
|
||||
// Get supported audio connections
|
||||
attributes->GetInt(BMDDeckLinkAudioInputConnections,
|
||||
&supportedAudioInputConnections);
|
||||
attributes->GetInt(BMDDeckLinkAudioOutputConnections,
|
||||
&supportedAudioOutputConnections);
|
||||
|
||||
// find output modes
|
||||
ComPtr<IDeckLinkOutput> output;
|
||||
if (device->QueryInterface(IID_IDeckLinkOutput, (void **) &output) == S_OK) {
|
||||
@@ -98,8 +110,14 @@ bool DeckLinkDevice::Init()
|
||||
}
|
||||
|
||||
// get keyer support
|
||||
attributes->GetFlag(BMDDeckLinkSupportsExternalKeying, &supportsExternalKeyer);
|
||||
attributes->GetFlag(BMDDeckLinkSupportsInternalKeying, &supportsInternalKeyer);
|
||||
attributes->GetFlag(BMDDeckLinkSupportsExternalKeying,
|
||||
&supportsExternalKeyer);
|
||||
attributes->GetFlag(BMDDeckLinkSupportsInternalKeying,
|
||||
&supportsInternalKeyer);
|
||||
|
||||
// Sub Device Counts
|
||||
attributes->GetInt(BMDDeckLinkSubDeviceIndex, &subDeviceIndex);
|
||||
attributes->GetInt(BMDDeckLinkNumberOfSubDevices, &numSubDevices);
|
||||
|
||||
decklink_string_t decklinkModelName;
|
||||
decklink_string_t decklinkDisplayName;
|
||||
@@ -207,6 +225,17 @@ const std::vector<DeckLinkDeviceMode *>& DeckLinkDevice::GetOutputModes(void) co
|
||||
return outputModes;
|
||||
}
|
||||
|
||||
int64_t DeckLinkDevice::GetVideoInputConnections()
|
||||
{
|
||||
return supportedVideoInputConnections;
|
||||
}
|
||||
|
||||
int64_t DeckLinkDevice::GetAudioInputConnections()
|
||||
{
|
||||
return supportedAudioInputConnections;
|
||||
}
|
||||
|
||||
|
||||
bool DeckLinkDevice::GetSupportsExternalKeyer(void) const
|
||||
{
|
||||
return supportsExternalKeyer;
|
||||
@@ -217,6 +246,16 @@ bool DeckLinkDevice::GetSupportsInternalKeyer(void) const
|
||||
return supportsInternalKeyer;
|
||||
}
|
||||
|
||||
int64_t DeckLinkDevice::GetSubDeviceCount()
|
||||
{
|
||||
return numSubDevices;
|
||||
}
|
||||
|
||||
int64_t DeckLinkDevice::GetSubDeviceIndex()
|
||||
{
|
||||
return subDeviceIndex;
|
||||
}
|
||||
|
||||
const std::string& DeckLinkDevice::GetName(void) const
|
||||
{
|
||||
return name;
|
||||
|
||||
Reference in New Issue
Block a user