XVideo question?

Matthias Hopf mhopf at suse.de
Wed Nov 24 07:29:08 PST 2004


On Nov 23, 04 09:47:02 -0800, Kendall Bennett wrote:
> So far with my testing of MPlayer and Xine, it appears that only end up 
> going into the drivers PutImage function, and don't seem to use the 
> offscreen video memory functions. This means that all video frames get 
> dumped to system memory first by the player, then copied from there to 
> video memory by the driver. This gets done for every frame. 
> 
> The offscreen functionality is clearly there to avoid this overhead, but 
> I can't yet figure out which applications will make use of this (nor what 
> client level API functions are used so I can code my own tested).

Video players usually have to build up the final image before displaying
it.  This typically involves read/write cycles that do not work well
with AGP or framebuffer memory. For example, the overlay images have to
be blended into the final image for DVD menus.

Thus they always have to work on their own copy. At least the xv driver
of xine tries to avoid copying image data before using PutImage(). This
function can be optimized (thinking about cache-lines, alignment, and
write-behind strategies) without xine being involved.

CU

Matthias

-- 
Matthias Hopf <mhopf at suse.de>      /--       /--  /--         mat at mshopf.de
Maxfeldstr. 5 / 90409 Nuernberg    \-\  | |  \-\  |--         www.mshopf.de
Phone +49-911-74053-715            --/  \_/  --/  \--  labs



More information about the xorg mailing list