diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-06 00:01:26 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-06 00:01:26 +0000 |
| commit | d759f6003067e8376899b50e5692b2bbb4e870cc (patch) | |
| tree | d6c5846b2c391a663a2e096016070712f721192a /test/player_test.cc | |
| parent | 0b3264bb9a4be0870c1f1491b54c2e0931a8f7af (diff) | |
Add some code to help with profiling the player.
Diffstat (limited to 'test/player_test.cc')
| -rw-r--r-- | test/player_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/player_test.cc b/test/player_test.cc index 0fe1d953b..60b5debff 100644 --- a/test/player_test.cc +++ b/test/player_test.cc @@ -226,7 +226,7 @@ BOOST_AUTO_TEST_CASE (player_seek_test) butler->seek (t, true); pair<shared_ptr<PlayerVideo>, DCPTime> video = butler->get_video(); BOOST_CHECK_EQUAL(video.second.get(), t.get()); - write_image(video.first->image(note_handler, PlayerVideo::always_rgb, false, true), String::compose("build/test/player_seek_test_%1.png", i), "RGB"); + write_image(video.first->image(optional<dcp::NoteHandler>(note_handler), PlayerVideo::always_rgb, false, true), String::compose("build/test/player_seek_test_%1.png", i), "RGB"); /* This 0.011 is empirically chosen (hopefully) to accept changes in rendering between the reference and a test machine (17.10 and 16.04 seem to anti-alias a little differently) but to reject gross errors e.g. missing fonts or missing text altogether. @@ -259,7 +259,7 @@ BOOST_AUTO_TEST_CASE (player_seek_test2) butler->seek (t, true); pair<shared_ptr<PlayerVideo>, DCPTime> video = butler->get_video(); BOOST_CHECK_EQUAL(video.second.get(), t.get()); - write_image(video.first->image(note_handler, PlayerVideo::always_rgb, false, true), String::compose("build/test/player_seek_test2_%1.png", i), "RGB"); + write_image(video.first->image(optional<dcp::NoteHandler>(note_handler), PlayerVideo::always_rgb, false, true), String::compose("build/test/player_seek_test2_%1.png", i), "RGB"); check_image(String::compose("test/data/player_seek_test2_%1.png", i), String::compose("build/test/player_seek_test2_%1.png", i), 0.011); } } |
