Mailinglist Archive: radeonhd (365 mails)

< Previous Next >
Re: [radeonhd] [PATCH] Fix blurry Xv image
  • From: Matthias Hopf <mhopf@xxxxxxx>
  • Date: Wed, 4 Mar 2009 16:18:16 +0100
  • Message-id: <20090304151816.GA3403@xxxxxxx>
On Mar 03, 09 18:03:22 -0800, Yang Zhao wrote:
The attached patch fixes the issue of blurry images under Xv, compared
to unaccelerated rendering.

The texture sampler for CbCr used to be configured to use bilinear
interpolation when upscaling. This results in a smoothing of the
chroma channels, and is perceived as being blurry when a lot of sharp
changes in colour is present. Simply flip the bits to use
nearest-point interpolation instead.

Yang, I wouldn't change that. AFAIU color subsampling in the normal
YCb'Cr' color spaces is defined to be interpolative. If it does look to
blurry, there could be a different bug. Also, with nearest-neighbor
interpolation at least I always stumble over hard edges at smooth
surfaces, especially if they are red.

BTW - I already tried to use bicubic filters once, and I couldn't get
them to work. Apparently they need a little extra love (read:
coefficients) to actually work.
Of course one can always emulate bicubic filters by manually fetching
the necessary samples.

Matthias

--
Matthias Hopf <mhopf@xxxxxxx> __ __ __
Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat@xxxxxxxxx
Phone +49-911-74053-715 __) |_| __) |__ R & D www.mshopf.de
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References