shared_ptr<const MonoPictureAsset> other_picture = dynamic_pointer_cast<const MonoPictureAsset> (other);
DCP_ASSERT (other_picture);
+ bool result = true;
+
for (int i = 0; i < _intrinsic_duration; ++i) {
if (i >= other_picture->intrinsic_duration()) {
return false;
frame_A->j2k_data(), frame_A->j2k_size(),
frame_B->j2k_data(), frame_B->j2k_size()
)) {
- return false;
+ result = false;
+ if (!opt.keep_going) {
+ return result;
+ }
}
}
- return true;
+ return result;
}
shared_ptr<PictureAssetWriter>
shared_ptr<const StereoPictureAsset> other_picture = dynamic_pointer_cast<const StereoPictureAsset> (other);
DCP_ASSERT (other_picture);
+ bool result = true;
+
for (int i = 0; i < _intrinsic_duration; ++i) {
shared_ptr<const StereoPictureFrame> frame_A;
shared_ptr<const StereoPictureFrame> frame_B;
frame_A->left_j2k_data(), frame_A->left_j2k_size(),
frame_B->left_j2k_data(), frame_B->left_j2k_size()
)) {
- return false;
+ result = false;
+ if (!opt.keep_going) {
+ return result;
+ }
}
if (!frame_buffer_equals (
frame_A->right_j2k_data(), frame_A->right_j2k_size(),
frame_B->right_j2k_data(), frame_B->right_j2k_size()
)) {
- return false;
+ result = false;
+ if (!opt.keep_going) {
+ return result;
+ }
}
}
- return true;
+ return result;
}
, reel_annotation_texts_can_differ (false)
, reel_hashes_can_differ (false)
, issue_dates_can_differ (false)
+ , keep_going (false)
{}
/** The maximum allowable mean difference in pixel value between two images */
bool reel_hashes_can_differ;
/** true if IssueDate nodes can differ */
bool issue_dates_can_differ;
+ bool keep_going;
};
/* I've been unable to make mingw happy with ERROR as a symbol, so
options.max_std_dev_pixel_error = 5;
options.reel_hashes_can_differ = true;
options.reel_annotation_texts_can_differ = false;
- bool keep_going = false;
+ options.keep_going = false;
bool ignore_missing_assets = false;
optional<string> key;
options.max_std_dev_pixel_error = atof (optarg);
break;
case 'k':
- keep_going = true;
+ options.keep_going = true;
break;
case 'A':
ignore_missing_assets = true;
exit (EXIT_FAILURE);
}
- DCP* a = load_dcp (argv[optind], keep_going, ignore_missing_assets, key);
- DCP* b = load_dcp (argv[optind + 1], keep_going, ignore_missing_assets, key);
+ DCP* a = load_dcp (argv[optind], options.keep_going, ignore_missing_assets, key);
+ DCP* b = load_dcp (argv[optind + 1], options.keep_going, ignore_missing_assets, key);
/* I think this is just below the LSB at 16-bits (ie the 8th most significant bit at 24-bit) */
options.max_audio_sample_error = 255;