projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
73354a4
)
Fix some tests.
author
Carl Hetherington
<cth@carlh.net>
Fri, 29 Apr 2022 10:30:03 +0000
(12:30 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 29 Apr 2022 10:30:03 +0000
(12:30 +0200)
test/guess_crop_test.cc
patch
|
blob
|
history
diff --git
a/test/guess_crop_test.cc
b/test/guess_crop_test.cc
index c26fc5ee46afa8b61166fa2705f20f0491878466..891ba4036f97493ebe8892deb51f3992e97a7ae9 100644
(file)
--- a/
test/guess_crop_test.cc
+++ b/
test/guess_crop_test.cc
@@
-38,10
+38,7
@@
BOOST_AUTO_TEST_CASE (guess_crop_image_test1)
auto content = content_factory(TestPaths::private_data() / "arrietty_724.tiff").front();
auto film = new_test_film2 ("guess_crop_image_test1", { content });
auto content = content_factory(TestPaths::private_data() / "arrietty_724.tiff").front();
auto film = new_test_film2 ("guess_crop_image_test1", { content });
- BOOST_CHECK (
- guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get()))
- == Crop(0, 0, 11, 11)
- );
+ BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(0, 0, 11, 11));
}
}
@@
-50,10
+47,7
@@
BOOST_AUTO_TEST_CASE (guess_crop_image_test2)
auto content = content_factory(TestPaths::private_data() / "prophet_frame.tiff").front();
auto film = new_test_film2 ("guess_crop_image_test2", { content });
auto content = content_factory(TestPaths::private_data() / "prophet_frame.tiff").front();
auto film = new_test_film2 ("guess_crop_image_test2", { content });
- BOOST_CHECK (
- guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get()))
- == Crop(0, 0, 22, 22)
- );
+ BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(0, 0, 22, 22));
}
}
@@
-62,8
+56,5
@@
BOOST_AUTO_TEST_CASE (guess_crop_image_test3)
auto content = content_factory(TestPaths::private_data() / "pillarbox.png").front();
auto film = new_test_film2 ("guess_crop_image_test3", { content });
auto content = content_factory(TestPaths::private_data() / "pillarbox.png").front();
auto film = new_test_film2 ("guess_crop_image_test3", { content });
- BOOST_CHECK (
- guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get()))
- == Crop(113, 262, 0, 0)
- );
+ BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(113, 262, 0, 0));
}
}