On Wed, 30 May 2007 18:19:25 +0200 Ralf Hoffmann <[EMAIL PROTECTED]> wrote:
> Hi, > > I experienced a small bug in the smartyuv filter which inserts black and > white pixels depending on the surrounding pixels. It looks like the > problem was mentioned earlier: > > http://itdp.fh-biergarten.de/~itdp/html/transcode-devel/2004-06/msg00012.html > > The cubic interpolation doesn't check whether the new pixel value is > between 0 and 255. Values over 255 can turn into black pixel due to 8 > bit conversion and values below 0 can be white. > > I have attached a patch which fixes this problem by limiting the value > to 255 or 0. The patch works for me but perhaps different limits are > more suitable (there's some commented code about 240/16 limits, I don't > know what's better). Thanks for pointing out. Your patch was already committed to 1.0.x branch, but I'm studying a more integrated approach. Please stay tuned. Best regards, -- Francesco Romani - Ikitt ['people always complain, no matther what you do'] IM contact : (email first, Antispam default deny!) icq://27-83-87-867 tiny homepage : http://fromani.exit1.org (see IDEAS if you want send code!) known bugs : http://tcfoundry.hostme.it/mantis (EXPERIMENTAL)