decklink: Query for preroll frame count

Three is recommended though, so use at least that many.
This commit is contained in:
jpark37
2023-03-28 13:47:36 -07:00
committed by Jim
parent b3b5e7eae8
commit e4a80d0396
6 changed files with 29 additions and 7 deletions

View File

@@ -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;