ImFusion SDK 4.3
VideoCameraIoFactory Class Reference

#include <ImFusion/Stream/VideoCameraIoFactory.h>

Factory for VideoCameraStreams used by the framework, in particular the VideoStreamIoAlgorithm and associated controller. More...

Detailed Description

Factory for VideoCameraStreams used by the framework, in particular the VideoStreamIoAlgorithm and associated controller.

Public Types

using EnumerateDeviceFunction = std::function<std::vector<VideoCameraStream::VideoCameraDeviceInfo>(void)>
 
using CreateStreamFunction = std::function<std::unique_ptr<VideoCameraStream>(const std::string&)>
 

Public Member Functions

bool registerBackend (const std::string &name, const EnumerateDeviceFunction &enumerateFunc, const CreateStreamFunction createFunc)
 Registers a pair of functions for enumerating devices and opening one of them as stream. Name must be unique. Input for createFunc must be deviceUID from enumerateFunc.
 
std::vector< std::stringbackends (bool onlyWithAvailableDevices) const
 Lists the names of all registered backends. Can be filtered to skip backends without available devices.
 
std::vector< VideoCameraStream::VideoCameraDeviceInfodevices (const std::string &backend) const
 Lists all devices and their capabilities available on the given backend.
 
std::unique_ptr< VideoCameraStreamopenDevice (const std::string &backend, const std::string &deviceUID)
 Opens a specific device on a specific backend. Returns nullptr on error.
 

Static Public Member Functions

static VideoCameraIoFactoryget ()
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close