hyperion.ng/include/grabber/VideoStandard.h

34 lines
570 B
C
Raw Normal View History

#pragma once
/**
* Enumeration of the possible video standards the grabber can be set to
*/
enum class VideoStandard {
PAL,
NTSC,
SECAM,
NO_CHANGE
};
inline VideoStandard parseVideoStandard(QString videoStandard)
{
// convert to lower case
videoStandard = videoStandard.toLower();
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;
2017-10-04 21:23:45 +02:00
}
// return the default NO_CHANGE
return VideoStandard::NO_CHANGE;
}