[MPlayer-dev-eng] RFC on libspe2 detection

Rasmus Rohde rohde at duff.dk
Tue May 15 22:52:17 CEST 2007


> > 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.
> Nice, would be hard split the scaling&color conversion and have it also
> in swscale? (I know it won't be _that_ easy)
Color conversion and scaling is already done as two different jobs.
I'm not sure how difficult it would be to put in swscale, but it seems
to me that it normally works on slices of the picture.
For the SPUs to be effective it is much easier to work on entire frames.
In this way we can kick off a SPU doing e.g. scaling and color
conversion on an entire frame, while we work on the next frame.

> > 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?
> I like this way better.
Okie - I've put together an updated patch which also detects if we have
spu-gcc and ppu-embedspu available. Furthermore I've included my current
version of vo_fbdevps3.c together with the SPU code that does color
conversion and scaling.

At the moment color conversion (yuv to rgb) is done before scaling,
which will probably change at a later stage. This will also fix the
problems that is present now with color conversion only working on
widths that are multiples of 32.

However if anybody should be interested the patch can be found here:
http://www.duff.dk/ps3/vo_fbdevps3-patch-1

Since it is rather large I will not post it to the mailing list.




More information about the MPlayer-dev-eng mailing list