2009-01-09, 00:39
Gamester17 Wrote:Might not be a bad idea though to look at both MythTV and Xine's VDPAU implementations?(Regarding MythTV) I did that the day the patches showed up on mythtv-dev It is actually built inside their XVideo video output renderer. VDPAU and XV are very similar in setting up their presentation regions so it does make sense to do that. A quick check again shows that they allocate an OSD image the same size as the screen and composite UI elements together onto it, then pass the final image to VDPAU. So basically a software renderer. They also only have to deal with the OSD only being an OSD, which is pretty simplistic compared to the XBMC skinning engine (which would have to be ported in its entirety).
Maybe an option would be to do the render-to-texture-and-read-back for XBMC while playing video but run it at a reduced frame rate, like the OpenGL rendered part only updates 5 times a second? It would look like shit but it would work.
I still think the VDPAU->Pixmap and Pixmap->Texture method is the best option. I haven't had a chance to try it yet though, the hdflagging branch is where I spend any spare time I've got.