Re : Re : Intel - XVideo

Eric Anholt eric at anholt.net
Wed Jun 13 23:21:58 PDT 2007


On Wed, 2007-06-13 at 20:45 -0400, manu wrote:
> On 06/13/2007 03:25:22 PM, Lukas Hejtmanek wrote:
> > On Wed, Jun 13, 2007 at 03:20:41PM -0400, manu wrote:
> > > >Is it technically possible to change brightness and contrast on
> > > >textured
> > > >videos (preferably independently of the rest of the screen)?
> > >
> > > The is a matrix in the code to do the YUV-> RGB conversion, so I
> > guess
> > > that you could just have the coefficients dependant upon parameters
> > to
> > > get the brightness/contrast changeable.
> > > Just a wild guess as I am stuck with a i855 for now ;-)
> > 
> > Yeah, I thought so. But the matrix is used only if YUV is in planar
> > mode and
> > currently, planar mode is converted to packed mode before calling
> > display
> > video thus the matrix is not used at all.
> 
> Hmm, OK. But how is the conversion done then? Does the packed video get  
> sent as is and the hw deals with it directly?

The COLORSPACE_CONVERSION flag in the sampler setup means the YUV gets
converted to RGB in the texel fetch.  Turn that off and you get the
unconverted values that you can then manipulate similarly to what we do
for planar.

-- 
Eric Anholt                             anholt at FreeBSD.org
eric at anholt.net                         eric.anholt at intel.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20070613/bf2fac89/attachment.pgp>


More information about the xorg mailing list