diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-05-25 00:57:16 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-05-25 21:35:12 +0200 |
| commit | 62f9b78a2eb5f0fc6b9028264bac6ad501d83309 (patch) | |
| tree | a187c6385350318f7d96090d09712106ac08ed19 /test/image_proxy_test.cc | |
| parent | 5d9ff746138a30c1469b788afe5a4eee25fed368 (diff) | |
Move video level conversion for RGB from FFmpegImageProxy to Image.
Since FFmpeg does not do video level conversion for RGB sources
when we (sort of) ask it to in Image::crop_scale_window() it seems
to make more sense to compensate for that by calling
full_to_video_range() in the same place (rather than in
FFmpegImageProxy).
Diffstat (limited to 'test/image_proxy_test.cc')
| -rw-r--r-- | test/image_proxy_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/image_proxy_test.cc b/test/image_proxy_test.cc index a9872b958..210f32d40 100644 --- a/test/image_proxy_test.cc +++ b/test/image_proxy_test.cc @@ -54,14 +54,14 @@ BOOST_AUTO_TEST_CASE (j2k_image_proxy_same_test) BOOST_AUTO_TEST_CASE (ffmpeg_image_proxy_same_test) { { - auto proxy1 = make_shared<FFmpegImageProxy>(data_file0, VideoRange::FULL); - auto proxy2 = make_shared<FFmpegImageProxy>(data_file0, VideoRange::FULL); + auto proxy1 = make_shared<FFmpegImageProxy>(data_file0); + auto proxy2 = make_shared<FFmpegImageProxy>(data_file0); BOOST_CHECK (proxy1->same(proxy2)); } { - auto proxy1 = make_shared<FFmpegImageProxy>(data_file0, VideoRange::FULL); - auto proxy2 = make_shared<FFmpegImageProxy>(data_file1, VideoRange::FULL); + auto proxy1 = make_shared<FFmpegImageProxy>(data_file0); + auto proxy2 = make_shared<FFmpegImageProxy>(data_file1); BOOST_CHECK (!proxy1->same(proxy2)); } } |
