Add video waveform viewer.
[dcpomatic.git] / test / client_server_test.cc
index e97abcec5b34c3003d6ee57fe84d8e85c08c3c58..db198e79c3ebd9d26ab310a74dbf8e8bbb4c01ac 100644 (file)
@@ -85,7 +85,7 @@ BOOST_AUTO_TEST_CASE (client_server_test_rgb)
                        shared_ptr<ImageProxy> (new RawImageProxy (image)),
                        DCPTime (),
                        Crop (),
-                       optional<float> (),
+                       optional<double> (),
                        dcp::Size (1998, 1080),
                        dcp::Size (1998, 1080),
                        EYES_BOTH,
@@ -103,7 +103,6 @@ BOOST_AUTO_TEST_CASE (client_server_test_rgb)
                        24,
                        200000000,
                        RESOLUTION_2K,
-                       true,
                        log
                        )
                );
@@ -140,7 +139,7 @@ BOOST_AUTO_TEST_CASE (client_server_test_yuv)
        shared_ptr<Image> image (new Image (PIX_FMT_YUV420P, dcp::Size (1998, 1080), true));
        uint8_t* p = image->data()[0];
 
-       for (int i = 0; i < image->components(); ++i) {
+       for (int i = 0; i < image->planes(); ++i) {
                uint8_t* p = image->data()[i];
                for (int j = 0; j < image->line_size()[i]; ++j) {
                        *p++ = j % 256;
@@ -167,7 +166,7 @@ BOOST_AUTO_TEST_CASE (client_server_test_yuv)
                        shared_ptr<ImageProxy> (new RawImageProxy (image)),
                        DCPTime (),
                        Crop (),
-                       optional<float> (),
+                       optional<double> (),
                        dcp::Size (1998, 1080),
                        dcp::Size (1998, 1080),
                        EYES_BOTH,
@@ -185,7 +184,6 @@ BOOST_AUTO_TEST_CASE (client_server_test_yuv)
                        24,
                        200000000,
                        RESOLUTION_2K,
-                       true,
                        log
                        )
                );