![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Stream/VideoCameraIoFactory.h>
Factory for VideoCameraStreams used by the framework, in particular the VideoStreamIoAlgorithm and associated controller. More...
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::string > | backends (bool onlyWithAvailableDevices) const |
| Lists the names of all registered backends. Can be filtered to skip backends without available devices. | |
| std::vector< VideoCameraStream::VideoCameraDeviceInfo > | devices (const std::string &backend) const |
| Lists all devices and their capabilities available on the given backend. | |
| std::unique_ptr< VideoCameraStream > | openDevice (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 VideoCameraIoFactory & | get () |