diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-08-24 16:43:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-08-25 15:22:38 +0100 |
| commit | a978f3ac575f1af017002c861480d5203cf0a34e (patch) | |
| tree | 5cd7acdcf7b7f493f3d0047ba96adaccf8509a7e /test/image_test.cc | |
| parent | 17d4990d0fca0f38268441a73c73d9e340b4bc85 (diff) | |
Add video waveform viewer.
Diffstat (limited to 'test/image_test.cc')
| -rw-r--r-- | test/image_test.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/image_test.cc b/test/image_test.cc index cb1aa35d7..65a6c5ca7 100644 --- a/test/image_test.cc +++ b/test/image_test.cc @@ -35,7 +35,7 @@ using boost::shared_ptr; BOOST_AUTO_TEST_CASE (aligned_image_test) { Image* s = new Image (PIX_FMT_RGB24, dcp::Size (50, 50), true); - BOOST_CHECK_EQUAL (s->components(), 1); + BOOST_CHECK_EQUAL (s->planes(), 1); /* 160 is 150 aligned to the nearest 32 bytes */ BOOST_CHECK_EQUAL (s->stride()[0], 160); BOOST_CHECK_EQUAL (s->line_size()[0], 150); @@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE (aligned_image_test) /* copy constructor */ Image* t = new Image (*s); - BOOST_CHECK_EQUAL (t->components(), 1); + BOOST_CHECK_EQUAL (t->planes(), 1); BOOST_CHECK_EQUAL (t->stride()[0], 160); BOOST_CHECK_EQUAL (t->line_size()[0], 150); BOOST_CHECK (t->data()[0]); @@ -63,7 +63,7 @@ BOOST_AUTO_TEST_CASE (aligned_image_test) /* assignment operator */ Image* u = new Image (PIX_FMT_YUV422P, dcp::Size (150, 150), false); *u = *s; - BOOST_CHECK_EQUAL (u->components(), 1); + BOOST_CHECK_EQUAL (u->planes(), 1); BOOST_CHECK_EQUAL (u->stride()[0], 160); BOOST_CHECK_EQUAL (u->line_size()[0], 150); BOOST_CHECK (u->data()[0]); @@ -85,7 +85,7 @@ BOOST_AUTO_TEST_CASE (aligned_image_test) BOOST_AUTO_TEST_CASE (compact_image_test) { Image* s = new Image (PIX_FMT_RGB24, dcp::Size (50, 50), false); - BOOST_CHECK_EQUAL (s->components(), 1); + BOOST_CHECK_EQUAL (s->planes(), 1); BOOST_CHECK_EQUAL (s->stride()[0], 50 * 3); BOOST_CHECK_EQUAL (s->line_size()[0], 50 * 3); BOOST_CHECK (s->data()[0]); @@ -95,7 +95,7 @@ BOOST_AUTO_TEST_CASE (compact_image_test) /* copy constructor */ Image* t = new Image (*s); - BOOST_CHECK_EQUAL (t->components(), 1); + BOOST_CHECK_EQUAL (t->planes(), 1); BOOST_CHECK_EQUAL (t->stride()[0], 50 * 3); BOOST_CHECK_EQUAL (t->line_size()[0], 50 * 3); BOOST_CHECK (t->data()[0]); @@ -112,7 +112,7 @@ BOOST_AUTO_TEST_CASE (compact_image_test) /* assignment operator */ Image* u = new Image (PIX_FMT_YUV422P, dcp::Size (150, 150), true); *u = *s; - BOOST_CHECK_EQUAL (u->components(), 1); + BOOST_CHECK_EQUAL (u->planes(), 1); BOOST_CHECK_EQUAL (u->stride()[0], 50 * 3); BOOST_CHECK_EQUAL (u->line_size()[0], 50 * 3); BOOST_CHECK (u->data()[0]); |
