Parserparser("V4L capture application for Hyperion. Will automatically search a Hyperion server if -a option isn't used. Please note that if you have more than one server running it's more or less random which one will be used.");
SwitchOption<VideoStandard>&argVideoStandard=parser.add<SwitchOption<VideoStandard>>('v',"video-standard","The used video standard. Valid values are PAL, NTSC, SECAM or no-change. [default: %1]","no-change");
SwitchOption<PixelFormat>&argPixelFormat=parser.add<SwitchOption<PixelFormat>>(0x0,"pixel-format","The use pixel format. Valid values are YUYV, UYVY, RGB32, MJPEG or no-change. [default: %1]","no-change");
IntOption&argCropWidth=parser.add<IntOption>(0x0,"crop-width","Number of pixels to crop from the left and right sides of the picture before decimation [default: %1]","0");
IntOption&argCropHeight=parser.add<IntOption>(0x0,"crop-height","Number of pixels to crop from the top and the bottom of the picture before decimation [default: %1]","0");
IntOption&argCropLeft=parser.add<IntOption>(0x0,"crop-left","Number of pixels to crop from the left of the picture before decimation (overrides --crop-width)");
IntOption&argCropRight=parser.add<IntOption>(0x0,"crop-right","Number of pixels to crop from the right of the picture before decimation (overrides --crop-width)");
IntOption&argCropTop=parser.add<IntOption>(0x0,"crop-top","Number of pixels to crop from the top of the picture before decimation (overrides --crop-height)");
IntOption&argCropBottom=parser.add<IntOption>(0x0,"crop-bottom","Number of pixels to crop from the bottom of the picture before decimation (overrides --crop-height)");
DoubleOption&argSignalThreshold=parser.add<DoubleOption>('t',"signal-threshold","The signal threshold for detecting the presence of a signal. Value should be between 0.0 and 1.0.",QString(),0.0,1.0);
DoubleOption&argRedSignalThreshold=parser.add<DoubleOption>(0x0,"red-threshold","The red signal threshold. Value should be between 0.0 and 1.0. (overrides --signal-threshold)");
DoubleOption&argGreenSignalThreshold=parser.add<DoubleOption>(0x0,"green-threshold","The green signal threshold. Value should be between 0.0 and 1.0. (overrides --signal-threshold)");
DoubleOption&argBlueSignalThreshold=parser.add<DoubleOption>(0x0,"blue-threshold","The blue signal threshold. Value should be between 0.0 and 1.0. (overrides --signal-threshold)");
DoubleOption&argSignalHorizontalMin=parser.add<DoubleOption>(0x0,"signal-horizontal-min","area for signal detection - horizontal minimum offset value. Values between 0.0 and 1.0");
DoubleOption&argSignalVerticalMin=parser.add<DoubleOption>(0x0,"signal-vertical-min","area for signal detection - vertical minimum offset value. Values between 0.0 and 1.0");
DoubleOption&argSignalHorizontalMax=parser.add<DoubleOption>(0x0,"signal-horizontal-max","area for signal detection - horizontal maximum offset value. Values between 0.0 and 1.0");
DoubleOption&argSignalVerticalMax=parser.add<DoubleOption>(0x0,"signal-vertical-max","area for signal detection - vertical maximum offset value. Values between 0.0 and 1.0");