fixup! WIP: stop using video directory and hard-linking (#2756).
[dcpomatic.git] / test / torture_test.cc
index 0c781fdb1218faa4e6c5d0d0f72747a6a59cb94d..e5ce694ce6e083300b0c5fe458bf1953f1f1a742 100644 (file)
@@ -35,8 +35,8 @@
 #include "lib/video_content.h"
 #include "test.h"
 #include <dcp/cpl.h>
-#include <dcp/mono_picture_asset.h>
-#include <dcp/mono_picture_frame.h>
+#include <dcp/mono_j2k_picture_asset.h>
+#include <dcp/mono_j2k_picture_frame.h>
 #include <dcp/openjpeg_image.h>
 #include <dcp/reel.h>
 #include <dcp/reel_picture_asset.h>
@@ -230,7 +230,7 @@ BOOST_AUTO_TEST_CASE (torture_test1)
 
        auto reel_picture = reels.front()->main_picture();
        BOOST_REQUIRE (reel_picture);
-       auto picture = dynamic_pointer_cast<dcp::MonoPictureAsset> (reel_picture->asset());
+       auto picture = dynamic_pointer_cast<dcp::MonoJ2KPictureAsset>(reel_picture->asset());
        BOOST_REQUIRE (picture);
        BOOST_CHECK_EQUAL (picture->intrinsic_duration(), 144);
 
@@ -248,7 +248,7 @@ BOOST_AUTO_TEST_CASE (torture_test1)
                        for (int c = 0; c < 3; ++c) {
                                for (int y = 0; y < size.height; ++y) {
                                        for (int x = 0; x < size.width; ++x) {
-                                               BOOST_REQUIRE (image->data(c)[y * size.height + x] <= 3);
+                                               BOOST_REQUIRE (image->data(c)[y * size.height + x] <= 5);
                                        }
                                }
                        }