X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fimage_test.cc;h=82ebe0b1ff5e6825c0db29bbd92f8fc2495092f8;hb=8b6b8d85ae9a008ada08ce5c51c16ad2238239c9;hp=750612cf42524d4de8c090641a969b5d45b3e606;hpb=4421884e04945a5251f37e892386a5f1d32d8881;p=dcpomatic.git diff --git a/test/image_test.cc b/test/image_test.cc index 750612cf4..82ebe0b1f 100644 --- a/test/image_test.cc +++ b/test/image_test.cc @@ -17,6 +17,12 @@ */ +#include +#include "lib/image.h" +#include "lib/scaler.h" + +using boost::shared_ptr; + BOOST_AUTO_TEST_CASE (aligned_image_test) { Image* s = new Image (PIX_FMT_RGB24, libdcp::Size (50, 50), true); @@ -141,7 +147,7 @@ BOOST_AUTO_TEST_CASE (crop_image_test2) image = image->crop (crop, true); /* Convert it back to RGB to make comparison to black easier */ - image = image->scale_and_convert_to_rgb (image->size(), Scaler::from_id ("bicubic"), true); + image = image->scale (image->size(), Scaler::from_id ("bicubic"), PIX_FMT_RGB24, true); /* Check that its still black after the crop */ uint8_t* p = image->data()[0];