summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-02-22 01:07:09 +0100
committerCarl Hetherington <cth@carlh.net>2025-02-23 01:47:38 +0100
commit1e50de1e7f3eb2b22fd1df815722355a1f853088 (patch)
treed0b8a9daba4fcc8e59556f58e8c8aefd6088be8e /src
parent757f378e2819b33a8260823b373c7117741cbbee (diff)
Add option to disable detailed picture asset checks.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_verifier.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_verifier.cc b/src/tools/dcpomatic_verifier.cc
index 1163b2fce..984d58a97 100644
--- a/src/tools/dcpomatic_verifier.cc
+++ b/src/tools/dcpomatic_verifier.cc
@@ -122,6 +122,13 @@ public:
overall_sizer->Add(dcp_sizer, 0, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
auto options_sizer = new wxBoxSizer(wxVERTICAL);
+ _check_picture_details = new CheckBox(this, _("Verify picture asset details"));
+ _check_picture_details->set(true);
+ _check_picture_details->SetToolTip(
+ _("Tick to check details of the picture asset, such as frame sizes and JPEG2000 bitstream validity. "
+ "These checks are quite time-consuming.")
+ );
+ options_sizer->Add(_check_picture_details, 0, wxBOTTOM, DCPOMATIC_SIZER_GAP);
_write_log = new CheckBox(this, _("Write logs to DCP folders"));
options_sizer->Add(_write_log, 0, wxBOTTOM, DCPOMATIC_SIZER_GAP);
overall_sizer->Add(options_sizer, 0, wxLEFT, DCPOMATIC_DIALOG_BORDER);
@@ -162,10 +169,16 @@ private:
void verify_clicked()
{
+ dcp::VerificationOptions options;
+ options.check_picture_details = _check_picture_details->get();
auto job_manager = JobManager::instance();
vector<shared_ptr<const VerifyDCPJob>> jobs;
for (auto const& dcp: _dcp_paths) {
- auto job = make_shared<VerifyDCPJob>(std::vector<boost::filesystem::path>{dcp}, std::vector<boost::filesystem::path>());
+ auto job = make_shared<VerifyDCPJob>(
+ std::vector<boost::filesystem::path>{dcp},
+ std::vector<boost::filesystem::path>(),
+ options
+ );
job_manager->add(job);
jobs.push_back(job);
}
@@ -216,6 +229,7 @@ private:
}
std::vector<boost::filesystem::path> _dcp_paths;
+ CheckBox* _check_picture_details;
CheckBox* _write_log;
Button* _cancel;
Button* _verify;