X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fverify.cc;h=b1d59c9866d6ad80ad5c705aa1a64f34a5d0aa39;hb=7c182bcdc0301edb6ff4ca62be619a02b2c4f3d7;hp=1da1b407cb3a61077babb35a8cc0e7901bedbe8c;hpb=208d1a3f6e634ead7b885728c7f89fa2ad270a4e;p=libdcp.git diff --git a/src/verify.cc b/src/verify.cc index 1da1b407..b1d59c98 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -723,7 +723,7 @@ verify_closed_caption_asset ( static void -check_text_timing ( +verify_text_timing ( vector> reels, optional picture_frame_rate, vector& notes, @@ -813,7 +813,7 @@ struct LinesCharactersResult static void -check_text_lines_and_characters ( +verify_text_lines_and_characters ( shared_ptr asset, int warning_length, int error_length, @@ -904,7 +904,7 @@ check_text_lines_and_characters ( static void -check_text_timing (vector> reels, vector& notes) +verify_text_timing (vector> reels, vector& notes) { if (reels.empty()) { return; @@ -916,7 +916,7 @@ check_text_timing (vector> reels, vector& not } if (reels[0]->main_subtitle()) { - check_text_timing (reels, picture_frame_rate, notes, + verify_text_timing (reels, picture_frame_rate, notes, [](shared_ptr reel) { return static_cast(reel->main_subtitle()); }, @@ -930,7 +930,7 @@ check_text_timing (vector> reels, vector& not } for (auto i = 0U; i < reels[0]->closed_captions().size(); ++i) { - check_text_timing (reels, picture_frame_rate, notes, + verify_text_timing (reels, picture_frame_rate, notes, [i](shared_ptr reel) { return i < reel->closed_captions().size(); }, @@ -946,7 +946,7 @@ check_text_timing (vector> reels, vector& not void -check_extension_metadata (shared_ptr cpl, vector& notes) +verify_extension_metadata (shared_ptr cpl, vector& notes) { DCP_ASSERT (cpl->file()); cxml::Document doc ("CompositionPlaylist"); @@ -1260,12 +1260,12 @@ dcp::verify ( } } - check_text_timing (cpl->reels(), notes); + verify_text_timing (cpl->reels(), notes); LinesCharactersResult result; for (auto reel: cpl->reels()) { if (reel->main_subtitle() && reel->main_subtitle()->asset()) { - check_text_lines_and_characters (reel->main_subtitle()->asset(), 52, 79, &result); + verify_text_lines_and_characters (reel->main_subtitle()->asset(), 52, 79, &result); } } @@ -1282,7 +1282,7 @@ dcp::verify ( for (auto reel: cpl->reels()) { for (auto i: reel->closed_captions()) { if (i->asset()) { - check_text_lines_and_characters (i->asset(), 32, 32, &result); + verify_text_lines_and_characters (i->asset(), 32, 32, &result); } } } @@ -1303,7 +1303,7 @@ dcp::verify ( notes.push_back ({VerificationNote::VERIFY_BV21_ERROR, VerificationNote::MISSING_CPL_METADATA_VERSION_NUMBER, cpl->id(), cpl->file().get()}); } - check_extension_metadata (cpl, notes); + verify_extension_metadata (cpl, notes); if (cpl->any_encrypted()) { cxml::Document doc ("CompositionPlaylist");