diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-10-01 10:44:11 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-10-12 17:33:27 +0200 |
| commit | 0caa6358a49c66d52d2af090bd2a130203673807 (patch) | |
| tree | 7c63dede88cf4283d2d58c1f7e0c0c4cafcc91d6 /test/image_test.cc | |
| parent | 5e4fc69d934546e2170a752bb0bc6d42b0542078 (diff) | |
Remove Image/GraphicsMagick dependency.
Diffstat (limited to 'test/image_test.cc')
| -rw-r--r-- | test/image_test.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/image_test.cc b/test/image_test.cc index 5fccf6b9b..820a44e88 100644 --- a/test/image_test.cc +++ b/test/image_test.cc @@ -172,7 +172,7 @@ alpha_blend_test_one (AVPixelFormat format, string suffix) shared_ptr<Image> save = background->convert_pixel_format (dcp::YUV_TO_RGB_REC709, AV_PIX_FMT_RGB24, false, false); - write_image (save, "build/test/image_test_" + suffix + ".png", "RGB"); + write_image (save, "build/test/image_test_" + suffix + ".png"); check_image ("build/test/image_test_" + suffix + ".png", TestPaths::private_data / ("image_test_" + suffix + ".png")); } @@ -263,7 +263,7 @@ BOOST_AUTO_TEST_CASE (crop_scale_window_test) shared_ptr<Image> raw = proxy->image().image; shared_ptr<Image> out = raw->crop_scale_window(Crop(), dcp::Size(1998, 836), dcp::Size(1998, 1080), dcp::YUV_TO_RGB_REC709, VIDEO_RANGE_FULL, AV_PIX_FMT_YUV420P, true, false); shared_ptr<Image> save = out->scale(dcp::Size(1998, 1080), dcp::YUV_TO_RGB_REC709, AV_PIX_FMT_RGB24, false, false); - write_image(save, "build/test/crop_scale_window_test.png", "RGB"); + write_image(save, "build/test/crop_scale_window_test.png"); check_image("test/data/crop_scale_window_test.png", "build/test/crop_scale_window_test.png"); } @@ -280,7 +280,7 @@ BOOST_AUTO_TEST_CASE (crop_scale_window_test3) shared_ptr<FFmpegImageProxy> proxy(new FFmpegImageProxy("test/data/player_seek_test_0.png")); shared_ptr<Image> xyz = proxy->image().image->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); + write_image(cropped, "build/test/crop_scale_window_test3.png"); check_image("test/data/crop_scale_window_test3.png", "build/test/crop_scale_window_test3.png"); } @@ -289,8 +289,8 @@ BOOST_AUTO_TEST_CASE (crop_scale_window_test4) shared_ptr<FFmpegImageProxy> proxy(new FFmpegImageProxy("test/data/player_seek_test_0.png")); shared_ptr<Image> xyz = proxy->image().image->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"); + write_image(cropped, "build/test/crop_scale_window_test4.png"); + check_image("test/data/crop_scale_window_test4.png", "build/test/crop_scale_window_test4.png", 35000); } BOOST_AUTO_TEST_CASE (crop_scale_window_test5) @@ -298,7 +298,7 @@ BOOST_AUTO_TEST_CASE (crop_scale_window_test5) shared_ptr<FFmpegImageProxy> proxy(new FFmpegImageProxy("test/data/player_seek_test_0.png")); shared_ptr<Image> xyz = proxy->image().image->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); + write_image(cropped, "build/test/crop_scale_window_test5.png"); check_image("test/data/crop_scale_window_test5.png", "build/test/crop_scale_window_test5.png"); } @@ -307,8 +307,8 @@ BOOST_AUTO_TEST_CASE (crop_scale_window_test6) shared_ptr<FFmpegImageProxy> proxy(new FFmpegImageProxy("test/data/player_seek_test_0.png")); shared_ptr<Image> xyz = proxy->image().image->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"); + write_image(cropped, "build/test/crop_scale_window_test6.png"); + check_image("test/data/crop_scale_window_test6.png", "build/test/crop_scale_window_test6.png", 35000); } BOOST_AUTO_TEST_CASE (as_png_test) |
