Changeset e74f1a12 in ffmpeg

Timestamp:
Dec 9, 2015, 11:23:00 AM (9 years ago)
Author:
Michael Niedermayer <michael@niedermayer.cc>
Branches:
master
Children:
cb93df0d
Parents:
c8905e0d
git-author:
Jean Delvare <jdelvare@suse.de> (12/09/15 11:07:47)
git-committer:
Michael Niedermayer <michael@niedermayer.cc> (12/09/15 11:23:00)
Message:

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>

(No files)

Note: See TracChangeset for help on using the changeset viewer.