Obey requests to change the video range of RGB content.
authorCarl Hetherington <cth@carlh.net>
Sun, 8 Nov 2020 21:34:18 +0000 (22:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 16 Nov 2020 00:40:36 +0000 (01:40 +0100)
commite64a1a9aae0200d14feed49a4c6cf537bf5708a4
treeb1b01bb8e6f1872309eb246434120de3b769e9e5
parentf5608308b17c72b3ee459c805663e0103de1d2a4
Obey requests to change the video range of RGB content.

Video that comes in with RGB pixels will not have its video level
ranges changed by libswscale (it only does this for YUV and greyscale).
Here we add code to do it ourselves for RGB content coming in
via image files (e.g. PNG/DPX etc).  Part of #1851.
14 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/types.cc
src/lib/types.h
src/lib/util.cc
test/image_proxy_test.cc
test/image_test.cc
test/test.cc
test/video_level_test.cc [new file with mode: 0644]
test/wscript