[MPlayer-dev-eng] RFC on libspe2 detection

Diego Biurrun diego at biurrun.de
Mon May 14 23:17:14 CEST 2007


On Mon, May 14, 2007 at 10:53:17PM +0200, Rasmus Rohde wrote:
> Hopefully we will at some point see some additions to mplayer, which
> will make use of libspe2 (the SPE library for the Cell BE).
> 
> I already have a beta vo_fbdevps3.c, which makes use of the SPEs for
> scaling and color conversion. Also it uses some features found
> specifically in the PS3 framebuffer.
> 
> The attached patch adds detection for libspe2 to the configure script.
> Is this the way to go our should we instead detect the target is e.g.
> PS3 and then add libspe2 as a needed library?

not sure

> --- configure	(revision 23316)
> +++ configure	(working copy)
> @@ -5577,7 +5580,22 @@
>  
> +echocheck "libspe2"
> +cat > $TMPC << EOF
> +#include <libspe2.h>
> +int main(void) { spe_program_handle_t *p=spe_image_open("t"); return 0; }
> +EOF
> +_libspe2=no
> +cc_check -lspe2 && _libspe2=yes

Only run the test when _libspe2 is set to auto.

Diego



More information about the MPlayer-dev-eng mailing list