Add SWS_ACCURATE_RND to sws flags. Without this, conversions to RGB in
authorCarl Hetherington <cth@carlh.net>
Mon, 12 Feb 2018 23:47:02 +0000 (23:47 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 12 Feb 2018 23:47:02 +0000 (23:47 +0000)
commitb17a5963f9c79e3e99890f32129105dd49fb0c29
tree2dbcc5a254a3ae2b6e2e23c2dd3159c2657cb43f
parent9a663d3f2e467f65dd7a364ed8631107fed5182d
Add SWS_ACCURATE_RND to sws flags.  Without this, conversions to RGB in
crop_scale_window_test leave the 6 pixels at the right side of the image
uninitialised (sws_scale doesn't fill them in with anything) so you get
garbage in the output.  SWS_ACCURATE_RND fixes it.  There are whisperings
that this is slow, so the impact of this patch may need to be measured
in some "real" situations.
src/lib/image.cc