David wrote:<br><br><span class="gmail_quote">On 3/5/07, <b class="gmail_sendername">David Reveman</b> <<a href="mailto:davidr@novell.com">davidr@novell.com</a>> wrote:</span>I've added a simple plugin to compiz that provides a way to render video
<br>efficiently on a composited desktop.<br><br>A video playback client basically copies video data to a pixmap and sets<br>an X property on a client window that describes the image format of the<br>data and where it should be rendered.
<br><br>The compiz video plugin will scale and perform necessary colorspace<br>conversions when compositing the desktop.<br><br>It provides very efficient playback of video on a composited desktop and<br>it requires much less resources than
e.g. XVideo as no intermediate<br>buffer is required and hence also no accelerated offscreen rendering.<br><br>RGB and YV12 image formats are currently supported but it's of course<br>very easy to add support for additional formats.
<br><br>YV12 format requires GL_ARB_fragment_program and 8 bpp alpha only GLX<br>pixmap support. The server doesn't provide alpha only pixmaps today. The<br>attached patch adds an alternative PICT_a8 visual to composite and that
<br>is enough for xgl to support alpha only GLX pixmaps (not sure it will<br>work with aiglx or nvidia's driver, I would guess not).<br><br>Adding an alpha only X visual might be a bad idea. It doesn't cause any<br>
issues with the clients I've been running but I've seen that GDK thinks<br>the server is broken and spits out some warnings when it finds a visual<br>with masks set to 0. Might be a better idea to just add the fbconfig and
<br>no visual but the current GLX code in the server relies on every<br>fbconfig having a matching X visual so it will need a bit more work and<br>I'd like some feedback before I start doing anything like that.<br><br>
I've created a patch to mplayer's xv output code that makes it use<br>compiz video interface when available. Works pretty well and it even<br>dynamically detects when the compiz video interface isn't available
<br>anymore and then switches to xv instead. Similar patches can easily be<br>created for other video playback clients, of course.<br><br>- David<br><br>______________________________<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
_________________<br>compiz mailing list<br><a href="mailto:compiz@lists.freedesktop.org">compiz@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/compiz">http://lists.freedesktop.org/mailman/listinfo/compiz
</a><br><br></blockquote><br><br><div><span class="gmail_quote">On 3/7/07, <b class="gmail_sendername">dragoran</b> <<a href="mailto:drago01@gmail.com">drago01@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>I updated to current git and find the video plugin.<br>What exactly is it supposed to do?<br>I want to test it but I don't know exactly what to test....<br>Enabling it did not make any difference (it loaded successfully).
<br><br>_______________________________________________<br>compiz mailing list<br><a href="mailto:compiz@lists.freedesktop.org">compiz@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/compiz">
http://lists.freedesktop.org/mailman/listinfo/compiz</a><br></blockquote></div><br><br clear="all"><br>-- <br>Andrés Blanco Morales