X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fpixel_formats_test.cc;h=1b720d9bf5d3b88fe2ecf1f2399c1c9209674bdc;hb=7f2e74604a51b984e4c8cbb5d5f4bb642677ec00;hp=b788b321972f979a7c841dab904f28251aef62e6;hpb=d8a44f957556cc708f3e718328a6983544c42d81;p=dcpomatic.git diff --git a/test/pixel_formats_test.cc b/test/pixel_formats_test.cc index b788b3219..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; @@ -43,9 +51,6 @@ struct Case BOOST_AUTO_TEST_CASE (pixel_formats_test) { - /* This needs to happen in the first test */ - dvdomatic_setup (); - list cases; cases.push_back(Case(AV_PIX_FMT_RGB24, 1, 480, 480, 480, 3, 0, 0 )); cases.push_back(Case(AV_PIX_FMT_RGBA, 1, 480, 480, 480, 4, 0, 0 )); @@ -65,8 +70,8 @@ BOOST_AUTO_TEST_CASE (pixel_formats_test) f->width = 640; f->height = 480; f->format = static_cast (i->format); - av_frame_get_buffer (f, true); - 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]);