Video backend
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "VideoIOBackendFactory.h"
|
||||
|
||||
#include "DeckLinkSession.h"
|
||||
#include "VideoIOTypes.h"
|
||||
|
||||
std::unique_ptr<VideoIODevice> CreateVideoIODevice(VideoIOBackendId backendId, std::string& error)
|
||||
{
|
||||
switch (backendId)
|
||||
{
|
||||
case VideoIOBackendId::DeckLink:
|
||||
return std::make_unique<DeckLinkSession>();
|
||||
}
|
||||
|
||||
error = "Unsupported video I/O backend.";
|
||||
return nullptr;
|
||||
}
|
||||
Reference in New Issue
Block a user