vault backup: 2024-09-29 18:56:14
This commit is contained in:
parent
1e9cfbfab3
commit
89a6c2fbcd
@ -85,4 +85,33 @@ bool UMediaCapture::ValidateMediaOutput() const
|
||||
}
|
||||
return true;
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
```c++
|
||||
bool UDeckLinkMediaCapture::InitBlackmagic(int _Width, int _Height)
|
||||
{
|
||||
if (DeckLinkDiscovery == nullptr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
Width = _Width;
|
||||
Height = _Height;
|
||||
check(Height > 0 && Width > 0)
|
||||
BMDDisplayMode displayMode = GetDisplayMode(Width, Height);
|
||||
m_DeckLinkOutputDevice = DeckLinkDiscovery->GetDeviceByName(m_DeviceName);
|
||||
if (m_DeckLinkOutputDevice.Get() == nullptr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!m_DeckLinkOutputDevice->EnableOutput(displayMode, bmdFormat8BitYUV))
|
||||
{
|
||||
m_DeckLinkOutputDevice.Reset();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
```
|
||||
|
||||
***DeckLinkDiscovery->GetDeviceByName(m_DeviceName);***
|
Loading…
x
Reference in New Issue
Block a user