summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-08-17 23:00:12 +0100
committerCarl Hetherington <cth@carlh.net>2015-08-17 23:00:12 +0100
commitd184945d41ea7d6e489621dc6492a93b5d91f7de (patch)
treed464fc4d700a2bee193ea0d0bf584700af07e692 /test
parent59dd3e3f06efb6249c1e4105ca746f877bc8ca93 (diff)
Do filling correctly for separate-content L/R 3D; before it was
trying to fill each individual piece of content as if it was providing both L and R frames.
Diffstat (limited to 'test')
-rw-r--r--test/video_decoder_fill_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/video_decoder_fill_test.cc b/test/video_decoder_fill_test.cc
index 25f754853..6d75e30da 100644
--- a/test/video_decoder_fill_test.cc
+++ b/test/video_decoder_fill_test.cc
@@ -32,7 +32,7 @@ BOOST_AUTO_TEST_CASE (video_decoder_fill_test1)
shared_ptr<ImageContent> c (new ImageContent (film, "test/data/simple_testcard_640x480.png"));
ImageDecoder decoder (c);
- decoder.fill_2d (0, 4);
+ decoder.fill_one_eye (0, 4, EYES_BOTH);
BOOST_CHECK_EQUAL (decoder._decoded_video.size(), 4U);
list<ContentVideo>::iterator i = decoder._decoded_video.begin();
for (int j = 0; j < 4; ++j) {
@@ -42,7 +42,7 @@ BOOST_AUTO_TEST_CASE (video_decoder_fill_test1)
decoder._decoded_video.clear ();
- decoder.fill_2d (0, 7);
+ decoder.fill_one_eye (0, 7, EYES_BOTH);
BOOST_CHECK_EQUAL (decoder._decoded_video.size(), 7);
i = decoder._decoded_video.begin();
for (int j = 0; j < 7; ++j) {
@@ -57,7 +57,7 @@ BOOST_AUTO_TEST_CASE (video_decoder_fill_test2)
shared_ptr<ImageContent> c (new ImageContent (film, "test/data/simple_testcard_640x480.png"));
ImageDecoder decoder (c);
- decoder.fill_3d (0, 4, EYES_LEFT);
+ decoder.fill_both_eyes (0, 4, EYES_LEFT);
BOOST_CHECK_EQUAL (decoder._decoded_video.size(), 8);
list<ContentVideo>::iterator i = decoder._decoded_video.begin();
for (int j = 0; j < 8; ++j) {
@@ -66,7 +66,7 @@ BOOST_AUTO_TEST_CASE (video_decoder_fill_test2)
++i;
}
- decoder.fill_3d (0, 7, EYES_RIGHT);
+ decoder.fill_both_eyes (0, 7, EYES_RIGHT);
BOOST_CHECK_EQUAL (decoder._decoded_video.size(), 15);
i = decoder._decoded_video.begin();
for (int j = 0; j < 15; ++j) {