summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-04 10:06:38 +0100
committerCarl Hetherington <cth@carlh.net>2019-11-04 10:06:38 +0100
commit16013e6658cdba6f5682b6e57402094d142b5f84 (patch)
treed49d789d0f6ab74ea51acd43dbb4aa6c40f114a5 /test
parentcb94d6a0c1d1fbfafa10acae62dcb35f51f3ec0f (diff)
Add a test to expose #1654, on valgrind at least.
Diffstat (limited to 'test')
-rw-r--r--test/image_test.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/image_test.cc b/test/image_test.cc
index 0bae58e60..1332f1c52 100644
--- a/test/image_test.cc
+++ b/test/image_test.cc
@@ -267,6 +267,14 @@ BOOST_AUTO_TEST_CASE (crop_scale_window_test)
check_image("test/data/crop_scale_window_test.png", "build/test/crop_scale_window_test.png");
}
+/** Special case of Image::crop_scale_window which triggered some valgrind warnings */
+BOOST_AUTO_TEST_CASE (crop_scale_window_test2)
+{
+ shared_ptr<Image> image (new Image(AV_PIX_FMT_XYZ12LE, dcp::Size(2048, 858), true));
+ image->crop_scale_window (Crop(279, 0, 0, 0), dcp::Size(1069, 448), dcp::Size(1069, 578), dcp::YUV_TO_RGB_REC709, VIDEO_RANGE_FULL, AV_PIX_FMT_RGB24, false, false);
+
+}
+
BOOST_AUTO_TEST_CASE (as_png_test)
{
shared_ptr<FFmpegImageProxy> proxy(new FFmpegImageProxy("test/data/3d_test/000001.png"));