ffmpeg/libavfilter
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-10-26 20:56:17 +01:00
2015-11-08 18:50:26 +01:00
2015-10-28 03:26:08 +01:00
2015-10-26 23:24:30 -07:00
2014-08-13 01:00:38 +02:00
2015-12-04 17:52:57 +01:00
2015-01-06 10:02:11 +00:00
2015-01-05 01:45:49 +01:00
2015-12-04 17:52:57 +01:00
2015-11-01 18:52:50 -08:00
2015-03-20 09:41:32 +01:00
2015-11-09 08:09:41 +01:00
2015-08-18 10:24:01 -04:00
2015-09-12 02:14:44 +00:00
2015-01-09 17:26:31 +01:00
2015-10-10 17:33:43 +02:00
2015-10-22 10:44:30 -08:00
2015-11-09 08:09:41 +01:00
2015-10-10 17:33:43 +02:00