summaryrefslogtreecommitdiff
path: root/tools/dcpdiff.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-19 10:37:56 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-19 10:37:56 +0100
commit060348d088ead2477920b1be9464d9139579493f (patch)
tree7a7139bbe732d0e295b157b0b478ab23c8673d29 /tools/dcpdiff.cc
parent979739e929103dd68f942238303a218296cc90d7 (diff)
Add --cpl-names option to dcpdiff.
Diffstat (limited to 'tools/dcpdiff.cc')
-rw-r--r--tools/dcpdiff.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/dcpdiff.cc b/tools/dcpdiff.cc
index 020c7ce1..19a4e2cf 100644
--- a/tools/dcpdiff.cc
+++ b/tools/dcpdiff.cc
@@ -36,7 +36,8 @@ help (string n)
<< " -V, --version show libdcp version\n"
<< " -h, --help show this help\n"
<< " -v, --verbose be verbose\n"
- << " -n, --names allow differing MXF names\n"
+ << " -n, --mxf-names allow differing MXF names\n"
+ << " --cpl-names allow differing CPL names\n"
<< " -m, --mean-pixel maximum allowed mean pixel error (default 5)\n"
<< " -s, --std-dev-pixel maximum allowed standard deviation of pixel error (default 5)\n"
<< "\n"
@@ -66,13 +67,15 @@ main (int argc, char* argv[])
{ "version", no_argument, 0, 'V'},
{ "help", no_argument, 0, 'h'},
{ "verbose", no_argument, 0, 'v'},
- { "names", no_argument, 0, 'n'},
+ { "mxf-names", no_argument, 0, 'n'},
{ "mean-pixel", required_argument, 0, 'm'},
{ "std-dev-pixel", required_argument, 0, 's'},
+ /* From here we're using random capital letters for the short option */
+ { "cpl-names", no_argument, 0, 'A'},
{ 0, 0, 0, 0 }
};
- int c = getopt_long (argc, argv, "Vhvnm:s:", long_options, &option_index);
+ int c = getopt_long (argc, argv, "Vhvnm:s:A", long_options, &option_index);
if (c == -1) {
break;
@@ -97,6 +100,9 @@ main (int argc, char* argv[])
case 's':
options.max_std_dev_pixel_error = atof (optarg);
break;
+ case 'A':
+ options.cpl_names_can_differ = true;
+ break;
}
}