Move video level conversion for RGB from FFmpegImageProxy to Image.
authorCarl Hetherington <cth@carlh.net>
Mon, 24 May 2021 22:57:16 +0000 (00:57 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 25 May 2021 19:35:12 +0000 (21:35 +0200)
commit62f9b78a2eb5f0fc6b9028264bac6ad501d83309
treea187c6385350318f7d96090d09712106ac08ed19
parent5d9ff746138a30c1469b788afe5a4eee25fed368
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).
12 files changed:
src/lib/ffmpeg_image_proxy.cc
src/lib/ffmpeg_image_proxy.h
src/lib/image.cc
src/lib/image.h
src/lib/image_decoder.cc
src/lib/image_examiner.cc
src/lib/image_proxy.cc
src/lib/util.cc
test/image_proxy_test.cc
test/image_test.cc
test/test.cc
test/video_level_test.cc