2008-12-05, 02:24
a simple ffmpeg update will not be sufficient to get this working.
feerlessleadr Wrote:there is an xbmc developer working on hardware acceleration as a GSoC project and there is a topic in the linux dev forum, but don't ask for any updates there because they will rip your head off....
malloc Wrote:a simple ffmpeg update will not be sufficient to get this working.Well obviously not. The real meat of the implementation this come from the need to have a pluggable video output system, since you can't render VDPAU to a GL context. Or at least that's what I make of it.
CapnBry Wrote:Well obviously not. The real meat of the implementation this come from the need to have a pluggable video output system, since you can't render VDPAU to a GL context. Or at least that's what I make of it.
It was a question for my own curiosity more than a "hey who is in charge? get to work!". XBMC has so much going on with various developers and trees that I'm just trying to wrap my head around it.
malloc Wrote:The hardest part will be adding the OSD overlay to the video since we can't render the video to a GL texture.
jmarshall Wrote:VdpPresentationQueue doesn't appear (on a quick scan) to handle alpha blending, so if we're rendering the video in the background it'll be a no-go, similarly for alpha blended OSDs. I'm sure there must be some way to do it via the API, though I suspect it'll be tricky within the GL setup we have if the video is embedded in the skin and blended with other skin elements (as is frequently the case with newer skins).
Cheers,
Jonathan
00664 typedef uint32_t VdpRGBAFormat;
00665
00678 #define VDP_RGBA_FORMAT_B8G8R8A8 (VdpRGBAFormat)0
00679
00691 #define VDP_RGBA_FORMAT_R8G8B8A8 (VdpRGBAFormat)1
00692
00704 #define VDP_RGBA_FORMAT_R10G10B10A2 (VdpRGBAFormat)2
00705
00717 #define VDP_RGBA_FORMAT_B10G10R10A2 (VdpRGBAFormat)3
00718
00728 #define VDP_RGBA_FORMAT_A8 (VdpRGBAFormat)4
malloc Wrote:Have you tried a mailinator email address?
It does appear that they support alpha, but it would still be a pain to implement without writing to a gl texture. They may not support that for security (drm) reasons.
Quote:>> * Defines an API for compositing sub-picture, on-screen display,
>> and other UI elements.
>
> I assume this indicates that video can easily be used as textures for opengl
> surfaces, and that opengl surfaces (with alpha transparency support) can
> easily be superimposed over video output?
Yes. The VDPAU presentation queue can be created wrt any X drawable.
So you should be able have VDPAU deliver final frames to an X pixmap,
and then use the GLX_EXT_texture_from_pixmap extension to texture from
that pixmap. Note: there is not yet an API in place for synchronizing
between VDPAU and OpenGL, so this would be somewhat racy today.
Quote:Alternate Domains:
* mailinator2.com
* sogetthis.com
* mailin8r.com
* mailinator.net
* spamherelots.com
* thisisnotmyrealemail.com