1 #include "VideoSourceCapabilities.hh"
23 AllResolutions_.clear();
29 AddMode(
unsigned int width,
unsigned int height,
float fps,
32 if (!HasMode(width,height,fps,colormodel,interlaced)) {
39 AllResolutions_.push_back(e);
47 Inputs_.push_back(
id);
53 HasMode(
unsigned int width,
unsigned int height,
float fps,
57 for (
unsigned int i=0;i<AllResolutions_.size();i++ ) {
70 cout <<
"VideoSourceCapabilities for device: "<<endl;
71 cout <<
" "<<Name_<<endl;
72 for (
unsigned int i=0;i<Inputs_.size();i++ ) {
74 cout <<
"Input "<<
id.
number<<endl;
75 cout <<
" Name: "<<
id.name<<endl;
78 for (
unsigned int i=0;i<AllResolutions_.size();i++ ) {
89 for (
unsigned int i=0;i<AllResolutions_.size();i++ ) {
92 for (
unsigned int j=0;j<res.size();j++ ) {
93 if (e.
width == res[j].width && e.
height== res[j].height) {
95 if (e.
fps >res[j].fps) res[j] = e;
100 if (!found) res.push_back(e);
EColorModel
These are the most often used color models.
VideoSourceCapabilities()
void AddInput(InputDescriptor id)
void AddMode(unsigned int width, unsigned int height, float fps, ImageBase::EColorModel colormodel, bool interlaced=false)
ImageBase::EColorModel colormodel
bool HasMode(unsigned int width, unsigned int height, float fps, ImageBase::EColorModel colormodel, bool interlaced)
~VideoSourceCapabilities()
void GetBestForEachResolution(std::vector< ResolutionEntry > &res)