summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-01-03 21:28:56 +0100
committerCarl Hetherington <cth@carlh.net>2024-01-03 21:39:58 +0100
commitf2663fa9a91acadfb014e9fb1da2736009dd3bb6 (patch)
tree9b67f0001c0e39fdc82d5a4a4842cd9ba459b9a6 /test
parent5d3d4fbd355d8d422a4ac17f93d57ab8ef0a22ee (diff)
Report every frame (with index) that is over (or nearly over) the size limit (DoM #2698).v1.8.91
Diffstat (limited to 'test')
-rw-r--r--test/verify_test.cc30
1 files changed, 21 insertions, 9 deletions
diff --git a/test/verify_test.cc b/test/verify_test.cc
index c382b6d1..0e15624d 100644
--- a/test/verify_test.cc
+++ b/test/verify_test.cc
@@ -644,9 +644,13 @@ BOOST_AUTO_TEST_CASE (verify_invalid_picture_frame_size_in_bytes)
);
}
- expected.push_back(
- { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::INVALID_PICTURE_FRAME_SIZE_IN_BYTES, canonical(dir / "pic.mxf") }
- );
+ for (auto i = 0; i < 24; ++i) {
+ expected.push_back(
+ dcp::VerificationNote(
+ dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::INVALID_PICTURE_FRAME_SIZE_IN_BYTES, canonical(dir / "pic.mxf")
+ ).set_frame(i).set_frame_rate(24)
+ );
+ }
expected.push_back(
{ dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::MISSING_CPL_METADATA, cpl->id(), cpl->file().get() }
@@ -684,9 +688,13 @@ BOOST_AUTO_TEST_CASE (verify_nearly_invalid_picture_frame_size_in_bytes)
);
}
- expected.push_back(
- { dcp::VerificationNote::Type::WARNING, dcp::VerificationNote::Code::NEARLY_INVALID_PICTURE_FRAME_SIZE_IN_BYTES, canonical(dir / "pic.mxf") }
- );
+ for (auto i = 0; i < 24; ++i) {
+ expected.push_back(
+ dcp::VerificationNote(
+ dcp::VerificationNote::Type::WARNING, dcp::VerificationNote::Code::NEARLY_INVALID_PICTURE_FRAME_SIZE_IN_BYTES, canonical(dir / "pic.mxf")
+ ).set_frame(i).set_frame_rate(24)
+ );
+ }
expected.push_back(
{ dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::MISSING_CPL_METADATA, cpl->id(), cpl->file().get() }
@@ -3668,9 +3676,13 @@ BOOST_AUTO_TEST_CASE(verify_invalid_tile_part_size)
vector<dcp::VerificationNote> expected;
- expected.push_back(
- { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::INVALID_PICTURE_FRAME_SIZE_IN_BYTES, canonical(path / "video.mxf") }
- );
+ for (auto frame = 0; frame < 24; frame++) {
+ expected.push_back(
+ dcp::VerificationNote(
+ dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::INVALID_PICTURE_FRAME_SIZE_IN_BYTES, canonical(path / "video.mxf")
+ ).set_frame(frame).set_frame_rate(24)
+ );
+ }
int component_sizes[] = {
1321721,