summaryrefslogtreecommitdiff
path: root/tools/dcpdiff.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-02 12:49:00 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-02 12:49:00 +0000
commit555ced5ed96828bd332623665c0565cd8b3a0df6 (patch)
treedd1cc225304c3d20a69e134a897a19eca1dcf290 /tools/dcpdiff.cc
parent6e9b1b0ca5e839bda7b567b609cebb92a1cb95a7 (diff)
Use OpenMP when comparing picture assets.
Diffstat (limited to 'tools/dcpdiff.cc')
-rw-r--r--tools/dcpdiff.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/dcpdiff.cc b/tools/dcpdiff.cc
index 473efa45..1085e289 100644
--- a/tools/dcpdiff.cc
+++ b/tools/dcpdiff.cc
@@ -48,6 +48,7 @@ help (string n)
<< " -v, --verbose be verbose\n"
<< " --cpl-annotation-texts allow differing CPL annotation texts\n"
<< " --reel-annotation-texts allow differing reel annotation texts\n"
+ << " -a, --annotation-texts allow different CPL and reel annotation texts\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"
<< " --key hexadecimal key to use to decrypt MXFs\n"
@@ -119,6 +120,7 @@ main (int argc, char* argv[])
{ "mean-pixel", required_argument, 0, 'm'},
{ "std-dev-pixel", required_argument, 0, 's'},
{ "keep-going", no_argument, 0, 'k'},
+ { "annotation-texts", no_argument, 0, 'a'},
/* From here we're using random capital letters for the short option */
{ "ignore-missing-assets", no_argument, 0, 'A'},
{ "cpl-annotation-texts", no_argument, 0, 'C'},
@@ -127,7 +129,7 @@ main (int argc, char* argv[])
{ 0, 0, 0, 0 }
};
- int c = getopt_long (argc, argv, "Vhvm:s:kACD:E", long_options, &option_index);
+ int c = getopt_long (argc, argv, "Vhvm:s:kaACD:E", long_options, &option_index);
if (c == -1) {
break;
@@ -152,6 +154,9 @@ main (int argc, char* argv[])
case 'k':
options.keep_going = true;
break;
+ case 'a':
+ options.cpl_annotation_texts_can_differ = options.reel_annotation_texts_can_differ = true;
+ break;
case 'A':
ignore_missing_assets = true;
break;