10 for (
int i = 0; i < (int)plugins.size(); ++i) {
14 std::cout << plugins.at(i);
17 std::cout << std::endl;
22 for (
int i = 0; i < (int)devices.size(); ++i) {
23 if (selectedDevice == i) {
30 std::cout << i <<
": " << devices.at(i).uniqueName();
32 if (devices[i].description().
length() > 0) {
33 std::cout <<
", " << devices.at(i).description();
36 std::cout << std::endl;
42 for (
int i = 0; i < (int)devices.size(); ++i) {
43 if (devices.at(i).captureType() ==
"highgui") {
std::vector< CaptureDevice > CaptureDeviceVector
Vector of CaptureDevices.
std::vector< std::string > CapturePluginVector
Vector of strings.
void outputEnumeratedPlugins(CaptureFactory::CapturePluginVector &plugins)
This file implements a capture factory with a plugin interface to allow for different capture backend...
void outputEnumeratedDevices(CaptureFactory::CaptureDeviceVector &devices, int selectedDevice)
TFSIMD_FORCE_INLINE tfScalar length(const Quaternion &q)
int defaultDevice(CaptureFactory::CaptureDeviceVector &devices)