projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cb94d6a
)
Add a test to expose #1654, on valgrind at least.
author
Carl Hetherington
<cth@carlh.net>
Mon, 4 Nov 2019 09:06:38 +0000
(10:06 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 4 Nov 2019 09:06:38 +0000
(10:06 +0100)
test/image_test.cc
patch
|
blob
|
history
diff --git
a/test/image_test.cc
b/test/image_test.cc
index 0bae58e60146bc42e68f59b0bf552ad933b79be4..1332f1c52ae4540f544e19c1f4859da046e38caf 100644
(file)
--- 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");
}
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"));
BOOST_AUTO_TEST_CASE (as_png_test)
{
shared_ptr<FFmpegImageProxy> proxy(new FFmpegImageProxy("test/data/3d_test/000001.png"));