17 lines
362 B
C++
17 lines
362 B
C++
#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;
|
|
}
|