diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-05 08:49:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-11-05 08:49:03 +0100 |
| commit | 22051b7757c036f95c9c5b8f6749e795fc16d30b (patch) | |
| tree | 2d06df8a8b832b8ef5bff64a32c621349f7459a4 /test | |
| parent | c9cadc1e53abb60a485a8a6de3eeecd54892b4d7 (diff) | |
Provide some test references.
Diffstat (limited to 'test')
| m--------- | test/data | 0 | ||||
| -rw-r--r-- | test/image_test.cc | 4 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/data b/test/data -Subproject 6ca8ac639cd63e909237badb5b564e09d54ee90 +Subproject ab60543ff396cc9cde5a00f23982abbf2afc60f diff --git a/test/image_test.cc b/test/image_test.cc index e5c95ea2d..4eb2f0486 100644 --- a/test/image_test.cc +++ b/test/image_test.cc @@ -281,6 +281,7 @@ BOOST_AUTO_TEST_CASE (crop_scale_window_test3) shared_ptr<Image> xyz = proxy->image().first->convert_pixel_format(dcp::YUV_TO_RGB_REC709, AV_PIX_FMT_RGB24, true, false); shared_ptr<Image> cropped = xyz->crop_scale_window(Crop(512, 0, 0, 0), dcp::Size(1486, 1080), dcp::Size(1998, 1080), dcp::YUV_TO_RGB_REC709, VIDEO_RANGE_FULL, AV_PIX_FMT_RGB24, false, false); write_image(cropped, "build/test/crop_scale_window_test3.png", "RGB", MagickCore::CharPixel); + check_image("test/data/crop_scale_window_test3.png", "build/test/crop_scale_window_test3.png"); } BOOST_AUTO_TEST_CASE (crop_scale_window_test4) @@ -289,6 +290,7 @@ BOOST_AUTO_TEST_CASE (crop_scale_window_test4) shared_ptr<Image> xyz = proxy->image().first->convert_pixel_format(dcp::YUV_TO_RGB_REC709, AV_PIX_FMT_RGB24, true, false); shared_ptr<Image> cropped = xyz->crop_scale_window(Crop(512, 0, 0, 0), dcp::Size(1486, 1080), dcp::Size(1998, 1080), dcp::YUV_TO_RGB_REC709, VIDEO_RANGE_FULL, AV_PIX_FMT_XYZ12LE, false, false); write_image(cropped, "build/test/crop_scale_window_test4.png", "RGB", MagickCore::ShortPixel); + check_image("test/data/crop_scale_window_test4.png", "build/test/crop_scale_window_test4.png"); } BOOST_AUTO_TEST_CASE (crop_scale_window_test5) @@ -297,6 +299,7 @@ BOOST_AUTO_TEST_CASE (crop_scale_window_test5) shared_ptr<Image> xyz = proxy->image().first->convert_pixel_format(dcp::YUV_TO_RGB_REC709, AV_PIX_FMT_XYZ12LE, true, false); shared_ptr<Image> cropped = xyz->crop_scale_window(Crop(512, 0, 0, 0), dcp::Size(1486, 1080), dcp::Size(1998, 1080), dcp::YUV_TO_RGB_REC709, VIDEO_RANGE_FULL, AV_PIX_FMT_RGB24, false, false); write_image(cropped, "build/test/crop_scale_window_test5.png", "RGB", MagickCore::CharPixel); + check_image("test/data/crop_scale_window_test5.png", "build/test/crop_scale_window_test5.png"); } BOOST_AUTO_TEST_CASE (crop_scale_window_test6) @@ -305,6 +308,7 @@ BOOST_AUTO_TEST_CASE (crop_scale_window_test6) shared_ptr<Image> xyz = proxy->image().first->convert_pixel_format(dcp::YUV_TO_RGB_REC709, AV_PIX_FMT_XYZ12LE, true, false); shared_ptr<Image> cropped = xyz->crop_scale_window(Crop(512, 0, 0, 0), dcp::Size(1486, 1080), dcp::Size(1998, 1080), dcp::YUV_TO_RGB_REC709, VIDEO_RANGE_FULL, AV_PIX_FMT_XYZ12LE, false, false); write_image(cropped, "build/test/crop_scale_window_test6.png", "RGB", MagickCore::ShortPixel); + check_image("test/data/crop_scale_window_test6.png", "build/test/crop_scale_window_test6.png"); } BOOST_AUTO_TEST_CASE (as_png_test) |
