mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 14:40:22 +00:00
Hd-rum-transcode: added -v option
This commit is contained in:
@@ -379,7 +379,8 @@ static void usage(const char *progname) {
|
||||
"\t\t--blend - enable blending from original to newly received stream, increases latency\n"
|
||||
"\t\t--capture-filter <cfg_string> - apply video capture filter to incoming video\n"
|
||||
"\t\t--help\n"
|
||||
"\t\t--verbose\n");
|
||||
"\t\t--verbose\n"
|
||||
"\t\t-v\n");
|
||||
printf("\tand hostX_options may be:\n"
|
||||
"\t\t-P <port> - TX port to be used\n"
|
||||
"\t\t-c <compression> - compression\n"
|
||||
@@ -441,6 +442,9 @@ static bool parse_fmt(int argc, char **argv, struct cmdline_parameters *parsed)
|
||||
} else if(strcmp(argv[start_index], "--help") == 0) {
|
||||
usage(argv[0]);
|
||||
return false;
|
||||
} else if(strcmp(argv[start_index], "-v") == 0) {
|
||||
print_version();
|
||||
return false;
|
||||
} else if(strcmp(argv[start_index], "--verbose") == 0) {
|
||||
parsed->verbose = true;
|
||||
} else {
|
||||
|
||||
11
src/host.cpp
11
src/host.cpp
@@ -194,3 +194,14 @@ void print_capabilities(struct module *root, bool use_vidcap)
|
||||
}
|
||||
}
|
||||
|
||||
void print_version()
|
||||
{
|
||||
printf("%s", PACKAGE_STRING);
|
||||
#ifdef GIT_VERSION
|
||||
printf(" (rev %s)", GIT_VERSION);
|
||||
#endif
|
||||
printf("\n");
|
||||
printf("\n" PACKAGE_NAME " was compiled with following features:\n");
|
||||
printf(AUTOCONF_RESULT);
|
||||
}
|
||||
|
||||
|
||||
@@ -130,6 +130,8 @@ bool common_preinit(int argc, char *argv[]);
|
||||
*/
|
||||
void print_capabilities(struct module *root, bool use_vidcap);
|
||||
|
||||
void print_version(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -575,13 +575,7 @@ int main(int argc, char *argv[])
|
||||
postprocess = optarg;
|
||||
break;
|
||||
case 'v':
|
||||
printf("%s", PACKAGE_STRING);
|
||||
#ifdef GIT_VERSION
|
||||
printf(" (rev %s)", GIT_VERSION);
|
||||
#endif
|
||||
printf("\n");
|
||||
printf("\n" PACKAGE_NAME " was compiled with following features:\n");
|
||||
printf(AUTOCONF_RESULT);
|
||||
print_version();
|
||||
return EXIT_SUCCESS;
|
||||
case 'c':
|
||||
requested_compression = optarg;
|
||||
|
||||
Reference in New Issue
Block a user