diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-06-30 23:45:48 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-07-03 22:48:26 +0200 |
| commit | 5555e580ecbfe6612ac5d18391fc0f6f96b96ac5 (patch) | |
| tree | 89834c2f5e054237fcf87e7c83f4cfccc747edf8 /test/video_level_test.cc | |
| parent | 179a45b67a7deec291a55c4d194e95971618e171 (diff) | |
Bump libdcp to get FFmpeg 7.0.1.
This involves fixing a test whose references were wrong, as far as I can
see. The new comment reflects what I think should have been happening
the whole time.
Diffstat (limited to 'test/video_level_test.cc')
| -rw-r--r-- | test/video_level_test.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/video_level_test.cc b/test/video_level_test.cc index 69a8af89e..f210f2add 100644 --- a/test/video_level_test.cc +++ b/test/video_level_test.cc @@ -324,6 +324,7 @@ movie_V (string name) } +/** @return Film containing video-range content set as full-range */ static shared_ptr<Film> movie_VoF (string name) @@ -353,6 +354,8 @@ movie_F (string name) film->examine_and_add_content (content); BOOST_REQUIRE (!wait_for_jobs()); + BOOST_CHECK(content->video->range() == VideoRange::FULL); + auto range = pixel_range (film, content); BOOST_CHECK_EQUAL (range.first, 0); BOOST_CHECK_EQUAL (range.second, 1023); @@ -546,8 +549,11 @@ BOOST_AUTO_TEST_CASE (movie_VoF_to_V_movie) BOOST_AUTO_TEST_CASE (movie_F_to_V_movie) { auto range = V_movie_range (movie_F("movie_F_to_V_movie")); - BOOST_CHECK_EQUAL (range.first, 4); - BOOST_CHECK_EQUAL (range.second, 1019); + /* A full range input has been converted to video range, so that what was black at 0 + * is not black at 64 (with the corresponding change to white) + */ + BOOST_CHECK_EQUAL(range.first, 64); + BOOST_CHECK_EQUAL(range.second, 963); } |
