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()))
+ guess_crop(film, content, 0.1, ContentTime::from_seconds(5))
== Crop(0, 0, 11, 11)
);
}
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()))
+ guess_crop(film, content, 0.1, ContentTime::from_seconds(5))
== Crop(0, 0, 22, 22)
);
}
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()))
+ guess_crop(film, content, 0.1, ContentTime::from_seconds(5))
== Crop(113, 262, 0, 0)
);
}