]> git.sesse.net Git - ffmpeg/commit
swscale: use dithering in DITHER_COPY only if not set -sws_dither none
authorMateusz <mateuszb@poczta.onet.pl>
Tue, 24 Oct 2017 08:02:17 +0000 (10:02 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 25 Oct 2017 19:50:37 +0000 (21:50 +0200)
commit50ce2960263daf48227df758df9ade19db7154fa
tree0c291e904b1b91e8d1d8648c65dbc9328a8dbe09
parent736a48901fa0061f52d3f6679546d4d6b5fdb510
swscale: use dithering in DITHER_COPY only if not set -sws_dither none

This patch uses dithering in DITHER_COPY macro only if
it was not used option '-sws_dither none'.
With option '-sws_dither none' it uses downshift.

For human eye dithering is OK, for video codecs not necessarily.
If user don't want to use dithering, we should respect that.

Signed-off-by: Mateusz Brzostek <mateuszb@poczta.onet.pl>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libswscale/swscale_unscaled.c