decklink: Query for preroll frame count
Three is recommended though, so use at least that many.
This commit is contained in:
parent
b3b5e7eae8
commit
e4a80d0396
6 changed files with 29 additions and 7 deletions
|
|
@ -114,6 +114,11 @@ bool DeckLinkDevice::Init()
|
|||
attributes->GetInt(BMDDeckLinkSubDeviceIndex, &subDeviceIndex);
|
||||
attributes->GetInt(BMDDeckLinkNumberOfSubDevices, &numSubDevices);
|
||||
|
||||
if (FAILED(attributes->GetInt(BMDDeckLinkMinimumPrerollFrames,
|
||||
&minimumPrerollFrames))) {
|
||||
minimumPrerollFrames = 3;
|
||||
}
|
||||
|
||||
decklink_string_t decklinkModelName;
|
||||
decklink_string_t decklinkDisplayName;
|
||||
|
||||
|
|
@ -255,6 +260,11 @@ int64_t DeckLinkDevice::GetSubDeviceIndex()
|
|||
return subDeviceIndex;
|
||||
}
|
||||
|
||||
int64_t DeckLinkDevice::GetMinimumPrerollFrames()
|
||||
{
|
||||
return minimumPrerollFrames;
|
||||
}
|
||||
|
||||
const std::string &DeckLinkDevice::GetName(void) const
|
||||
{
|
||||
return name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue