Basic Image AlgorithmS Library
2.8.0
Main Page
Related Pages
Modules
Classes
Examples
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
VideoSource
VideoSourceCapabilities.hh
1
#ifndef __VIDEOSOURCECPABILITIES_H__
2
#define __VIDEOSOURCECPABILITIES_H__
3
4
#include <Base/Image/ImageBase.hh>
5
#include <vector>
6
#include <utility>
7
8
namespace
BIAS {
9
10
/**
11
\class VideoSourceCapabilities
12
\ingroup g_videosource
13
\relates VideoSource, VideoSource_V4L, VideoSource_DSHOW
14
\author MIP
15
\brief Checks for VideoSource capabilities
16
*/
17
class
BIASVideoSource_EXPORT
VideoSourceCapabilities
{
18
public
:
19
VideoSourceCapabilities
();
20
~
VideoSourceCapabilities
();
21
22
enum
VSType
{
23
TypeCamera, TypeTuner
24
};
25
26
struct
ResolutionEntry
{
27
unsigned
int
width
;
28
unsigned
int
height
;
29
float
fps
;
30
ImageBase::EColorModel
colormodel
;
31
bool
interlaced
;
32
};
33
34
struct
InputDescriptor
{
35
unsigned
int
number
;
36
VSType
type
;
37
std::string
name
;
38
bool
NoSignal
;
39
bool
NoColor
;
40
bool
NoPower
;
41
bool
Active
;
42
43
};
44
45
46
void
Reset();
47
void
AddMode(
unsigned
int
width,
unsigned
int
height,
float
fps,
48
ImageBase::EColorModel
colormodel,
bool
interlaced=
false
);
49
50
bool
HasMode(
unsigned
int
width,
unsigned
int
height,
float
fps,
51
ImageBase::EColorModel
colormodel,
bool
interlaced);
52
53
std::vector<ResolutionEntry>
GetAllResolutionsRef
()
const
54
{
return
AllResolutions_;}
55
56
void
GetBestForEachResolution(std::vector<ResolutionEntry> &res);
57
58
59
void
AddInput(InputDescriptor
id
);
60
61
62
void
Show();
63
64
void
SetName
(
const
std::string &name) {Name_ = name;};
65
std::string
GetName
(){
return
Name_;}
66
67
protected
:
68
std::string
Name_
;
69
70
std::vector<ResolutionEntry>
AllResolutions_
;
71
72
std::vector<InputDescriptor>
Inputs_
;
73
74
};
//class
75
76
}
//namespace
77
78
#endif
BIAS::ImageBase::EColorModel
EColorModel
These are the most often used color models.
Definition:
ImageBase.hh:127
BIAS::VideoSourceCapabilities::GetName
std::string GetName()
Definition:
VideoSourceCapabilities.hh:65
BIAS::VideoSourceCapabilities::ResolutionEntry::fps
float fps
Definition:
VideoSourceCapabilities.hh:29
BIAS::VideoSourceCapabilities::ResolutionEntry
Definition:
VideoSourceCapabilities.hh:26
BIAS::VideoSourceCapabilities::InputDescriptor::Active
bool Active
Definition:
VideoSourceCapabilities.hh:41
BIAS::VideoSourceCapabilities::ResolutionEntry::width
unsigned int width
Definition:
VideoSourceCapabilities.hh:27
BIAS::VideoSourceCapabilities::Name_
std::string Name_
Definition:
VideoSourceCapabilities.hh:68
BIAS::VideoSourceCapabilities::InputDescriptor::type
VSType type
Definition:
VideoSourceCapabilities.hh:36
BIAS::VideoSourceCapabilities::VSType
VSType
Definition:
VideoSourceCapabilities.hh:22
BIAS::VideoSourceCapabilities::InputDescriptor::name
std::string name
Definition:
VideoSourceCapabilities.hh:37
BIAS::VideoSourceCapabilities::ResolutionEntry::height
unsigned int height
Definition:
VideoSourceCapabilities.hh:28
BIAS::VideoSourceCapabilities::InputDescriptor::number
unsigned int number
Definition:
VideoSourceCapabilities.hh:35
BIAS::VideoSourceCapabilities::InputDescriptor::NoPower
bool NoPower
Definition:
VideoSourceCapabilities.hh:40
BIAS::VideoSourceCapabilities::AllResolutions_
std::vector< ResolutionEntry > AllResolutions_
Definition:
VideoSourceCapabilities.hh:70
BIAS::VideoSourceCapabilities::InputDescriptor::NoSignal
bool NoSignal
Definition:
VideoSourceCapabilities.hh:38
BIAS::VideoSourceCapabilities::InputDescriptor
Definition:
VideoSourceCapabilities.hh:34
BIAS::VideoSourceCapabilities
class BIASVideoSource_EXPORT VideoSourceCapabilities
Definition:
VideoSource_Base.hh:48
BIAS::VideoSourceCapabilities::ResolutionEntry::colormodel
ImageBase::EColorModel colormodel
Definition:
VideoSourceCapabilities.hh:30
BIAS::VideoSourceCapabilities
Checks for VideoSource capabilities.
Definition:
VideoSourceCapabilities.hh:17
BIAS::VideoSourceCapabilities::Inputs_
std::vector< InputDescriptor > Inputs_
Definition:
VideoSourceCapabilities.hh:72
BIAS::VideoSourceCapabilities::InputDescriptor::NoColor
bool NoColor
Definition:
VideoSourceCapabilities.hh:39
BIAS::VideoSourceCapabilities::SetName
void SetName(const std::string &name)
Definition:
VideoSourceCapabilities.hh:64
BIAS::VideoSourceCapabilities::GetAllResolutionsRef
std::vector< ResolutionEntry > GetAllResolutionsRef() const
Definition:
VideoSourceCapabilities.hh:53
BIAS::VideoSourceCapabilities::ResolutionEntry::interlaced
bool interlaced
Definition:
VideoSourceCapabilities.hh:31
Generated on Tue Feb 6 2018 02:01:46 for Basic Image AlgorithmS Library by
1.8.5