refactoring

This commit is contained in:
Devaev Maxim
2019-03-05 12:42:03 +03:00
parent 9a38078c72
commit 69d6fda56b

View File

@@ -43,53 +43,53 @@
static const char _short_opts[] = "d:i:x:y:m:a:f:z:tb:w:q:c:s:p:u:ro:e:h"; static const char _short_opts[] = "d:i:x:y:m:a:f:z:tb:w:q:c:s:p:u:ro:e:h";
static const struct option _long_opts[] = { static const struct option _long_opts[] = {
{"device", required_argument, NULL, 'd'}, {"device", required_argument, NULL, 'd'},
{"input", required_argument, NULL, 'i'}, {"input", required_argument, NULL, 'i'},
{"width", required_argument, NULL, 'x'}, {"width", required_argument, NULL, 'x'},
{"height", required_argument, NULL, 'y'}, {"height", required_argument, NULL, 'y'},
{"format", required_argument, NULL, 'm'}, {"format", required_argument, NULL, 'm'},
{"tv-standard", required_argument, NULL, 'a'}, {"tv-standard", required_argument, NULL, 'a'},
{"desired-fps", required_argument, NULL, 'f'}, {"desired-fps", required_argument, NULL, 'f'},
{"min-frame-size", required_argument, NULL, 'z'}, {"min-frame-size", required_argument, NULL, 'z'},
{"dv-timings", no_argument, NULL, 't'}, {"dv-timings", no_argument, NULL, 't'},
{"buffers", required_argument, NULL, 'b'}, {"buffers", required_argument, NULL, 'b'},
{"workers", required_argument, NULL, 'w'}, {"workers", required_argument, NULL, 'w'},
{"quality", required_argument, NULL, 'q'}, {"quality", required_argument, NULL, 'q'},
{"encoder", required_argument, NULL, 'c'}, {"encoder", required_argument, NULL, 'c'},
{"device-timeout", required_argument, NULL, 1000}, {"device-timeout", required_argument, NULL, 1000},
{"device-persistent", no_argument, NULL, 1001}, {"device-persistent", no_argument, NULL, 1001},
{"device-error-delay", required_argument, NULL, 1002}, {"device-error-delay", required_argument, NULL, 1002},
{"image-brightness", required_argument, NULL, 2000}, {"image-brightness", required_argument, NULL, 2000},
{"image-brightness-auto", no_argument, NULL, 2001}, {"image-brightness-auto", no_argument, NULL, 2001},
{"image-contrast", required_argument, NULL, 2002}, {"image-contrast", required_argument, NULL, 2002},
{"image-saturation", required_argument, NULL, 2003}, {"image-saturation", required_argument, NULL, 2003},
{"image-hue", required_argument, NULL, 2004}, {"image-hue", required_argument, NULL, 2004},
{"image-hue-auto", no_argument, NULL, 2005}, {"image-hue-auto", no_argument, NULL, 2005},
{"image-gamma", required_argument, NULL, 2006}, {"image-gamma", required_argument, NULL, 2006},
{"image-sharpness", required_argument, NULL, 2007}, {"image-sharpness", required_argument, NULL, 2007},
{"image-backlight-compensation", required_argument, NULL, 2008}, {"image-backlight-compensation", required_argument, NULL, 2008},
{"image-white-balance", required_argument, NULL, 2009}, {"image-white-balance", required_argument, NULL, 2009},
{"image-white-balance-auto", no_argument, NULL, 2010}, {"image-white-balance-auto", no_argument, NULL, 2010},
{"image-gain", required_argument, NULL, 2011}, {"image-gain", required_argument, NULL, 2011},
{"image-gain-auto", no_argument, NULL, 2012}, {"image-gain-auto", no_argument, NULL, 2012},
{"host", required_argument, NULL, 's'}, {"host", required_argument, NULL, 's'},
{"port", required_argument, NULL, 'p'}, {"port", required_argument, NULL, 'p'},
{"unix", required_argument, NULL, 'u'}, {"unix", required_argument, NULL, 'u'},
{"unix-rm", no_argument, NULL, 'r'}, {"unix-rm", no_argument, NULL, 'r'},
{"unix-mode", required_argument, NULL, 'o'}, {"unix-mode", required_argument, NULL, 'o'},
{"drop-same-frames", required_argument, NULL, 'e'}, {"drop-same-frames", required_argument, NULL, 'e'},
{"fake-width", required_argument, NULL, 3001}, {"fake-width", required_argument, NULL, 3001},
{"fake-height", required_argument, NULL, 3002}, {"fake-height", required_argument, NULL, 3002},
{"server-timeout", required_argument, NULL, 3003}, {"server-timeout", required_argument, NULL, 3003},
{"perf", no_argument, NULL, 5000}, {"perf", no_argument, NULL, 5000},
{"verbose", no_argument, NULL, 5001}, {"verbose", no_argument, NULL, 5001},
{"debug", no_argument, NULL, 5002}, {"debug", no_argument, NULL, 5002},
{"log-level", required_argument, NULL, 5010}, {"log-level", required_argument, NULL, 5010},
{"help", no_argument, NULL, 'h'}, {"help", no_argument, NULL, 'h'},
{"version", no_argument, NULL, 6000}, {"version", no_argument, NULL, 6000},
{NULL, 0, NULL, 0}, {NULL, 0, NULL, 0},
}; };