Optimization idea: soft XvPutImage

Michel Dänzer michel at tungstengraphics.com
Mon Sep 22 00:38:59 PDT 2008


On Sun, 2008-09-21 at 13:58 +0200, Soeren Sandmann wrote:
> Adam Richter <adam_richter2004 at yahoo.com> writes:
> 
> > Even if you do not want to do stretch, I believe that the X Render
> > extension would require first copying the YUV data to a drawable and
> > then doing a drawable->drawable block transfer operation to do the
> > YUV transformation.  In comparison, XvPutImage is a single call
> > takes an XImage, which can be in shared memory, and would normally
> > be in YUV, and specifies the YUV->RGB conversion and stretch in a
> > single operation.
> 
> As other people pointed out, XRender does allow arbitrary 3x3
> transformations of source images, but you are right that the XRender
> protocol would require putting the data in a drawable first.

There could be a generic XVideo adaptor which uses RENDER internally.
The Xgl code might already have something like that.


-- 
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer




More information about the xorg mailing list