X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fpixel_formats_test.cc;h=1b720d9bf5d3b88fe2ecf1f2399c1c9209674bdc;hb=734340b52d30cb2dde9aa9e81c77277b261b128e;hp=08c9f2d2def524e250692d67be7bcdc498ba5d35;hpb=996b0c06e23bcb6b300d7b8799df94993692e07d;p=dcpomatic.git diff --git a/test/pixel_formats_test.cc b/test/pixel_formats_test.cc index 08c9f2d2d..1b720d9bf 100644 --- a/test/pixel_formats_test.cc +++ b/test/pixel_formats_test.cc @@ -17,6 +17,14 @@ */ +#include +#include +extern "C" { +#include +#include +} +#include "lib/image.h" + using std::list; using std::cout; @@ -62,7 +70,8 @@ BOOST_AUTO_TEST_CASE (pixel_formats_test) f->width = 640; f->height = 480; f->format = static_cast (i->format); - SimpleImage t (f); + av_frame_get_buffer (f, true); + Image t (f); BOOST_CHECK_EQUAL(t.components(), i->components); BOOST_CHECK_EQUAL(t.lines(0), i->lines[0]); BOOST_CHECK_EQUAL(t.lines(1), i->lines[1]);