diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-16 23:43:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-16 23:43:22 +0000 |
| commit | 4e79cb88c22a7b2d52381f0a1a1ffdb5015fa617 (patch) | |
| tree | 8f199cd05396353a263e156448ca2ef1bf30eaa6 /test | |
| parent | a7f27819cbb7db110587603c2d0717dd4c018c11 (diff) | |
Try again to sort out image alignment a bit.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc index 2bbf4f08a..595492f7c 100644 --- a/test/test.cc +++ b/test/test.cc @@ -327,7 +327,7 @@ do_remote_encode (shared_ptr<DCPVideoFrame> frame, ServerDescription* descriptio BOOST_AUTO_TEST_CASE (client_server_test) { - shared_ptr<Image> image (new CompactImage (PIX_FMT_RGB24, Size (1998, 1080))); + shared_ptr<Image> image (new SimpleImage (PIX_FMT_RGB24, Size (1998, 1080), false)); uint8_t* p = image->data()[0]; for (int y = 0; y < 1080; ++y) { @@ -338,7 +338,7 @@ BOOST_AUTO_TEST_CASE (client_server_test) } } - shared_ptr<Image> sub_image (new CompactImage (PIX_FMT_RGBA, Size (100, 200))); + shared_ptr<Image> sub_image (new SimpleImage (PIX_FMT_RGBA, Size (100, 200), false)); p = sub_image->data()[0]; for (int y = 0; y < 200; ++y) { for (int x = 0; x < 100; ++x) { |
