30 #include "videoDeviceConfig.hpp"
31 #include "dsVideoDeviceSettings.h"
40 VideoDeviceConfig::VideoDeviceConfig() {
45 VideoDeviceConfig::~VideoDeviceConfig() {
49 VideoDeviceConfig & VideoDeviceConfig::getInstance() {
50 static VideoDeviceConfig _singleton;
54 List<VideoDevice> VideoDeviceConfig::getDevices()
56 List<VideoDevice> devices;
57 for (std::vector<VideoDevice>::const_iterator it = _vDevices.begin(); it != _vDevices.end(); it++) {
58 devices.push_back(*it);
64 VideoDevice &VideoDeviceConfig::getDevice(
int i)
66 return _vDevices.at(i);
69 List<VideoDFC> VideoDeviceConfig::getDFCs()
72 for (std::vector<VideoDFC>::iterator it = _vDFCs.begin(); it != _vDFCs.end(); it++) {
79 VideoDFC & VideoDeviceConfig::getDFC(
int id)
84 VideoDFC & VideoDeviceConfig::getDefaultDFC()
89 void VideoDeviceConfig::load()
95 _vDFCs.push_back(VideoDFC(i));
101 for (
size_t i = 0; i <
dsUTL_DIM(kConfigs); i++) {
102 _vDevices.push_back(VideoDevice(i));
104 for (
size_t j = 0; j < kConfigs[i].numSupportedDFCs; j++) {
110 void VideoDeviceConfig::release()