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,
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
// return the default NO_CHANGE
|
|
|
|
return VIDEOSTANDARD_NO_CHANGE;
|
|
|
|
}
|