New libXvMC wrapper.

Thomas Hellstrom unichrome at shipmail.org
Tue Sep 21 15:34:47 PDT 2004


Hi, list!

Anybody opposed to this going in it's current form? If not, it will be 
enabled for
linux and gcc, where I know the -nostartfiles option will work.

/Thomas



Thomas Hellström wrote:

> Hi!
>
> I've attached a patch for a proposal of a libXvMC wrapper.
> The purpose of the wrapper is to allow XvMC clients to link to different
> hardware-specific dynamic XvMC libraries runtime. Contrary to the 
> situation with libGL.so and the dri 3D drivers there is no builtin 
> mechanism for this.
>
> Current available XvMC libs include
> libI810XvMC.so                       (in the Xorg tree)
> libXvMCNVIDIA.so                  (Closed-source from Nvidia site)
> libviaXvMC.so                         (With a nonstandard VLD 
> extension available from the unichrome project)
> and the savage XvMC code, which I haven't looked closer at.
>
> Up to now the option has been to link to either of these (Xine, for 
> example, links to the Nvidia driver) and this will mean the lib has to 
> be present at runtime and the code will only work with Nvidia hardware.
>
> The proposed solution eliminates this problem by providing a 
> libXvMCW.so, which, at runtime, dlopens the library listed in the file 
> <configdir>XvMCConfig and resolves the  necessary symbols, including , 
> if present, the nonstandard VLD extension. This will make it possible 
> for codes implementing this extension to also runtime link to 
> libraries not including it.
>
> Packagers wanting to include XvMC support for a media player can 
> easily do so for all hardware that supports it, without having to 
> include the HW specific libraries.
>
> I've tested it with with linux, xine and the via (xine-xxmc) and 
> Nvidia (xine-xvmc) drivers and it works as expected. It also loads and 
> fires up the I810 driver but unfortunately I have no hardware to test 
> it against.
>
> Caveats could be portability: linking the lib requires the 
> -nostartfiles gcc flag. I'm also not sure which implementations of 
> dlopen supports library wrapping in this way.
>
> Comments / Opinions would be appreciated. The diff is against current 
> Xorg CVS, and also includes the
> VLD extension header.
>
> Thomas Hellström
> The Unichrome project
>
>------------------------------------------------------------------------
>
>_______________________________________________
>xorg mailing list
>xorg at freedesktop.org
>http://freedesktop.org/mailman/listinfo/xorg
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20040922/79aa8e40/attachment.html>


More information about the xorg mailing list