hyperion.ng/include/grabber/VideoStandard.h
LordGrey bfb50b8d91
refactor: Address (Windows) compile warnings (#840)
* Windows compile errors and (Qt 5.15 deprecation) warnings

* Usability - Enable/Disable Instance button

Co-authored-by: brindosch <edeltraud70@gmx.de>
2020-06-28 23:05:32 +02:00

34 lines
570 B
C

#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;
}
else if (videoStandard == "secam")
{
return VideoStandard::SECAM;
}
// return the default NO_CHANGE
return VideoStandard::NO_CHANGE;
}