Use openjpeg v2.5.2 (#2783).
authorCarl Hetherington <cth@carlh.net>
Fri, 8 Mar 2024 21:31:01 +0000 (22:31 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 11 Mar 2024 08:22:02 +0000 (09:22 +0100)
Tests suggest it is considerably faster:

* arrietty on Linux/AMD
  old: 03:35
  new: 03:58

* Sintel.2010.1080p.mkv on Linux/AMD
  old: 0:29:49
  new: 0:22:39

* TRAILER VERSIE 4.mov on Apple M1
  old: 6:22
  new: 5:15

* TRAILER VERSIE 4.mov on Windows/Intel
  old: 6:10
  new: 4:12

cscript
run/tests
test/remake_with_subtitle_test.cc
test/torture_test.cc
test/video_level_test.cc

diff --git a/cscript b/cscript
index cee888420946cbda4b0afdc1663de3ccb116bc0a..3284a6edea0033e5c99073d293451f1d0d8961e4 100644 (file)
--- a/cscript
+++ b/cscript
@@ -534,7 +534,7 @@ def dependencies(target, options):
         # Use distro-provided FFmpeg on Arch
         deps = []
 
-    deps.append(('libdcp', 'v1.8.97'))
+    deps.append(('libdcp', 'v1.9.0'))
     deps.append(('libsub', 'v1.6.47'))
     deps.append(('leqm-nrt', '30dcaea1373ac62fba050e02ce5b0c1085797a23'))
     deps.append(('rtaudio', 'f619b76'))
index 4315e227f8f5171f999461e67c804395120c3905..6f43290c4f1d56488fd719f7a05b89708c71e78a 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -3,7 +3,7 @@
 # e.g. --run_tests=foo
 set -e
 
-PRIVATE_GIT="f4b0c41b263a17cf33edae7565f16bd21eb80b65"
+PRIVATE_GIT="5298360d6bbae434fb4625fda1cc9dd6be101df3"
 
 if [ "$1" == "--check" ]; then
        shift 1
index 57322d3ac3379e4d1dbb0434c21998892c368f9d..70d38c1ebcef63dab0cc8d9989112cd2c7b29eba 100644 (file)
@@ -48,5 +48,9 @@ BOOST_AUTO_TEST_CASE (remake_with_subtitle_test)
        content->only_text()->set_use (false);
        make_and_verify_dcp (film);
 
-       check_one_frame (film->dir(film->dcp_name()), 325, TestPaths::private_data() / "prophet_frame_325_no_subs.j2c");
+#ifdef DCPOMATIC_OSX
+       check_one_frame(film->dir(film->dcp_name()), 325, TestPaths::private_data() / "v2.18.x" / "prophet_frame_325_no_subs_mac.j2c");
+#else
+       check_one_frame(film->dir(film->dcp_name()), 325, TestPaths::private_data() / "v2.18.x" / "prophet_frame_325_no_subs.j2c");
+#endif
 }
index 0c781fdb1218faa4e6c5d0d0f72747a6a59cb94d..8e6a516bd196cb463522fbeeb77245d82058493f 100644 (file)
@@ -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);
                                        }
                                }
                        }
index e2419d8e734c96f0ef92add497afb2062a0d5f75..0ff2c47321231e0f27ff0ed154893fe561ae69ef 100644 (file)
@@ -480,7 +480,7 @@ BOOST_AUTO_TEST_CASE (movie_V_to_dcp)
 {
        auto range = dcp_range (movie_V("movie_V_to_dcp"));
        /* Video range has been correctly expanded to full for the DCP */
-       check_int_close (range, {0, 4083}, 2);
+       check_int_close(range, {0, 4081}, 2);
 }
 
 
@@ -498,7 +498,7 @@ BOOST_AUTO_TEST_CASE (movie_F_to_dcp)
 {
        auto range = dcp_range (movie_F("movie_F_to_dcp"));
        /* The nearly-full-range of the input has been preserved */
-       check_int_close (range, {0, 4083}, 2);
+       check_int_close(range, {0, 4080}, 2);
 }
 
 
@@ -506,14 +506,14 @@ BOOST_AUTO_TEST_CASE (video_FoV_to_dcp)
 {
        auto range = dcp_range (movie_FoV("video_FoV_to_dcp"));
        /* The nearly-full-range of the input has become even more full, and clipped */
-       check_int_close (range, {0, 4095}, 2);
+       check_int_close(range, {0, 4093}, 2);
 }
 
 
 BOOST_AUTO_TEST_CASE (image_F_to_dcp)
 {
        auto range = dcp_range (image_F("image_F_to_dcp"));
-       check_int_close (range, {0, 4083}, 3);
+       check_int_close(range, {0, 4080}, 3);
 }