static
void
-check_text_timing (
+verify_text_timing (
vector<shared_ptr<Reel>> reels,
optional<int> picture_frame_rate,
vector<VerificationNote>& notes,
static
void
-check_text_lines_and_characters (
+verify_text_lines_and_characters (
shared_ptr<SubtitleAsset> asset,
int warning_length,
int error_length,
static
void
-check_text_timing (vector<shared_ptr<Reel>> reels, vector<VerificationNote>& notes)
+verify_text_timing (vector<shared_ptr<Reel>> reels, vector<VerificationNote>& notes)
{
if (reels.empty()) {
return;
}
if (reels[0]->main_subtitle()) {
- check_text_timing (reels, picture_frame_rate, notes,
+ verify_text_timing (reels, picture_frame_rate, notes,
[](shared_ptr<Reel> reel) {
return static_cast<bool>(reel->main_subtitle());
},
}
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> reel) {
return i < reel->closed_captions().size();
},
void
-check_extension_metadata (shared_ptr<CPL> cpl, vector<VerificationNote>& notes)
+verify_extension_metadata (shared_ptr<CPL> cpl, vector<VerificationNote>& notes)
{
DCP_ASSERT (cpl->file());
cxml::Document doc ("CompositionPlaylist");
}
}
- 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);
}
}
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);
}
}
}
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");