Add video waveform viewer.
[dcpomatic.git] / test / client_server_test.cc
index 99cc845bcd1eb5f9ba5c2a60bb68c0e8d0284071..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,
@@ -139,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;
@@ -166,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,