summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-16 14:53:35 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-16 14:53:35 +0100
commit4699463e19b2a153d64aeb0e00c62be1157bfc1b (patch)
tree971d505d0b5a8253a24eb95854effb5e34893c8c /test
parent12074b64d64c1fe76a9cf07a46683b7db96fc56e (diff)
Some work on cropping in the film viewer; also prevent player from always scaling up to DCP resolution.
Diffstat (limited to 'test')
-rw-r--r--test/image_test.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/image_test.cc b/test/image_test.cc
index a9ec3042a..9dd3a1ba4 100644
--- a/test/image_test.cc
+++ b/test/image_test.cc
@@ -97,3 +97,13 @@ BOOST_AUTO_TEST_CASE (compact_image_test)
delete t;
delete u;
}
+
+BOOST_AUTO_TEST_CASE (crop_image_test)
+{
+ /* This was to check out a bug with valgrind, and is probably not very useful */
+ shared_ptr<SimpleImage> image (new SimpleImage (PIX_FMT_YUV420P, libdcp::Size (16, 16), true));
+ image->make_black ();
+ Crop crop;
+ crop.top = 3;
+ image->crop (crop, false);
+}