Re: Wishlist: render to OpenGL texture rather than window.
Christophe Thommeret <[email protected]> Sat, 5 Feb 2011 20:31:57 +0100
| Newsgroups | gmane.comp.video.xine.user |
|---|---|
| Message-ID | <[email protected]> |
Le jeudi 3 février 2011 15:59:37, Wouter Verhelst a écrit : > Hi, > > I've been looking through the code of the OpenGL video output plugin in > Xine, since I was planning on creating an application that uses OpenGL > but also displays (sometimes small, sometimes large) videos. > Unfortunately, what I want to do doesn't seem to be possible using the > OpenGL output plugin: have Xine decode the video into a texture rather > than into an entire window. > > As I understand the code (xine 1.1.19), it looks like a texture is > generated, but that texture is displayed by the plugin unconditionally. > > How hard would it be to create the possibility to have the libxine-using > application set up the GL environment and decide where the animated > texture needs to be displayed? > > Thanks, You may want to have a look at the "raw" video out driver. It takes a pointer to a callback as argument and leaves frames in yv12/yuy2/rgb buffers that you can then upload to textures in your app, using some shaders for colorspace conversion. Look for XINE_VO_RAW in xine.h -- Christophe Thommeret ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb