decklink: Schedule video frames for playback

DisplayVideoFrameSync is unusable at 4K, over 20 milliseconds per call.
ScheduleVideoFrame is probably what we should have been using all along.
This commit is contained in:
jpark37 2023-03-28 09:45:10 -07:00 • committed by Jim
commit ac87106f03
7 changed files with 160 additions and 35 deletions

View file

@ -42,6 +42,15 @@ int DeckLinkDeviceMode::GetHeight()
return 0;
}
bool DeckLinkDeviceMode::GetFrameRate(BMDTimeValue *frameDuration,
BMDTimeScale *timeScale)
{
if (mode != nullptr)
return SUCCEEDED(mode->GetFrameRate(frameDuration, timeScale));
return false;
}
BMDDisplayModeFlags DeckLinkDeviceMode::GetDisplayModeFlags(void) const
{
if (mode != nullptr)