mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-30 17:58:37 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user