[FFmpeg-devel] [PATCH] avfilter/vf_delogo: round to the closest value

Michael Niedermayer michaelni at gmx.at
Wed Dec 9 13:13:19 CET 2015


On Wed, Dec 09, 2015 at 12:07:47PM +0100, Jean Delvare wrote:
> 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 at suse.de>
> ---
> We are having hack week 13 at SUSE and my project this time is to
> improve and clean up vf_delogo.
> 
> Note: All testing was done with band=1 as this is the new default
> value. I purposely left the code branch dealing with the band area
> untouched as it will ultimately be removed anyway.
> 
>  libavfilter/vf_delogo.c      |    5 
>  tests/ref/fate/filter-delogo |  218 +++++++++++++++++++++----------------------
>  2 files changed, 112 insertions(+), 111 deletions(-)

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151209/8774f092/attachment.sig>


More information about the ffmpeg-devel mailing list