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:
parent
83e3d531dc
commit
ac87106f03
7 changed files with 160 additions and 35 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue