2014-02-23 21:36:39 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Enumeration of the possible video standards the grabber can be set to
|
|
|
|
*/
|
|
|
|
enum VideoStandard {
|
|
|
|
VIDEOSTANDARD_PAL,
|
|
|
|
VIDEOSTANDARD_NTSC,
|
2017-10-04 21:23:45 +02:00
|
|
|
VIDEOSTANDARD_SECAM,
|
2014-02-23 21:36:39 +01:00
|
|
|
VIDEOSTANDARD_NO_CHANGE
|
|
|
|
};
|
|
|
|
|
2017-03-04 22:17:42 +01:00
|
|
|
inline VideoStandard parseVideoStandard(QString videoStandard)
|
2014-02-23 21:36:39 +01:00
|
|
|
{
|
|
|
|
// convert to lower case
|
2017-03-04 22:17:42 +01:00
|
|
|
videoStandard = videoStandard.toLower();
|
2014-02-23 21:36:39 +01:00
|
|
|
|
|
|
|
if (videoStandard == "pal")
|
|
|
|
{
|
|
|
|
return VIDEOSTANDARD_PAL;
|
|
|
|
}
|
|
|
|
else if (videoStandard == "ntsc")
|
|
|
|
{
|
|
|
|
return VIDEOSTANDARD_NTSC;
|
|
|
|
}
|
2017-10-04 21:23:45 +02:00
|
|
|
else if (videoStandard == "secam")
|
|
|
|
{
|
|
|
|
return VIDEOSTANDARD_SECAM;
|
|
|
|
}
|
2014-02-23 21:36:39 +01:00
|
|
|
|
|
|
|
// return the default NO_CHANGE
|
|
|
|
return VIDEOSTANDARD_NO_CHANGE;
|
|
|
|
}
|