X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fmake_black_test.cc;h=2ed5db8eff55c91286e7045fde006460328bae39;hb=ec1df37a1940063dc0dbc45ad2dab638bdc92c0d;hp=88bf4bb7a5e1100bd529102d650bb6fb069011e5;hpb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;p=dcpomatic.git diff --git a/test/make_black_test.cc b/test/make_black_test.cc index 88bf4bb7a..2ed5db8ef 100644 --- a/test/make_black_test.cc +++ b/test/make_black_test.cc @@ -19,22 +19,20 @@ */ /** @file test/make_black_test.cc - * @brief Check that Image::make_black works, and doesn't use values which crash + * @brief Check that Image::make_black works and doesn't use values which crash * sws_scale(). - * + * @ingroup selfcontained * @see test/image_test.cc */ +#include #include extern "C" { #include } #include "lib/image.h" -#include -#include using std::list; -using boost::make_shared; BOOST_AUTO_TEST_CASE (make_black_test) { @@ -81,7 +79,7 @@ BOOST_AUTO_TEST_CASE (make_black_test) int N = 0; for (list::const_iterator i = pix_fmts.begin(); i != pix_fmts.end(); ++i) { - boost::shared_ptr foo = make_shared (*i, in_size, true); + boost::shared_ptr foo (new Image (*i, in_size, true)); foo->make_black (); boost::shared_ptr bar = foo->scale (out_size, dcp::YUV_TO_RGB_REC601, AV_PIX_FMT_RGB24, true, false);