Jean Delvare e74f1a121e avfilter/vf_delogo: round to the closest value
When the interpolated value is divided by the sum of weights, no
rounding is done, which means the value is truncated. This results in
a slight bias towards dark green in the interpolated area. Rounding
properly removes the bias.

I measured this change to reduce the interpolation error by 1 to 2 %
on average on a number of sample input and logo area combinations.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-09 12:23:00 +01:00
..
2015-11-07 18:46:55 -08:00
2015-12-06 14:37:40 +01:00
2015-10-16 14:02:12 +02:00
2015-11-15 19:22:46 +01:00
2014-11-28 17:55:27 -05:00
2015-10-16 14:02:12 +02:00
2015-02-01 22:38:11 +01:00