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));
}
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));
}
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));
}