This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merged Martin's code changes from Google Summer of Code 2009
- Loading branch information
Showing
with
4,744 additions
and 26 deletions.
- +5 −0 Makefile.in
- +35 −0 README.PS3
- +41 −0 configure.in
- +1 −0 include/SDL_config.h.in
- +3 −0 src/video/SDL_sysvideo.h
- +3 −0 src/video/SDL_video.c
- +0 −26 src/video/SDL_yuv_sw.c
- +26 −0 src/video/SDL_yuv_sw_c.h
- +36 −0 src/video/ps3/SDL_ps3events.c
- +28 −0 src/video/ps3/SDL_ps3events_c.h
- +141 −0 src/video/ps3/SDL_ps3modes.c
- +34 −0 src/video/ps3/SDL_ps3modes_c.h
- +746 −0 src/video/ps3/SDL_ps3render.c
- +29 −0 src/video/ps3/SDL_ps3render_c.h
- +166 −0 src/video/ps3/SDL_ps3spe.c
- +87 −0 src/video/ps3/SDL_ps3spe_c.h
- +224 −0 src/video/ps3/SDL_ps3video.c
- +79 −0 src/video/ps3/SDL_ps3video.h
- +47 −0 src/video/ps3/spulibs/Makefile
- +2,050 −0 src/video/ps3/spulibs/bilin_scaler.c
- +193 −0 src/video/ps3/spulibs/fb_writer.c
- +108 −0 src/video/ps3/spulibs/spu_common.h
- +662 −0 src/video/ps3/spulibs/yuv2rgb.c
@@ -0,0 +1,35 @@ | ||
|
||
SDL on Sony Playstation3 | ||
------------------------ | ||
|
||
Installation: | ||
First, you have to install the Cell SDK | ||
- Download the Cell SDK installer RPM and ISO images to | ||
a temporary directory such as /tmp/cellsdk. | ||
- Mount the image: mount -o loop CellSDK-Devel-Fedora_3.1.0.0.0.iso /tmp/cellsdk | ||
- Install the SDK installer: rpm -ivh cell-install-3.1.0-0.0.noarch.rpm | ||
- Install the SDK: cd /opt/cell && ./cellsdk --iso /tmp/cellsdkiso install | ||
|
||
You'll than need to install the SPU-libs | ||
- Run make ps3-libs && make ps3libs-install | ||
|
||
Finally, install SDL | ||
- Go to SDL-1.2/ and build SDL like any other GNU style package. | ||
e.g. | ||
- Build the configure-script with ./autogen.sh | ||
- Configure SDL for your needs: ./configure --enable-video-ps3 ... | ||
- Build and install it: make && make install | ||
|
||
|
||
Todo: | ||
- Mouse & Keyboard support | ||
- On SPU-side the current scaler and converter restrictions are: | ||
- resolution has to be a multiple of 8 (will work on that) | ||
- scaler/converter only supports the YV12 and IYUV format | ||
- the scaler works only bilinear (lanzos would be nice) | ||
- Optimize the SPU-program handling on the PPE side | ||
- Integrate spumedia in SDL | ||
|
||
Have fun! | ||
Dirk Herrendoerfer <d.herrendoerfer [at] de [dot ibm [dot] com> | ||
|
@@ -0,0 +1,36 @@ | ||
/* | ||
SDL - Simple DirectMedia Layer | ||
Copyright (C) 1997-2009 Sam Lantinga | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
Sam Lantinga | ||
slouken@libsdl.org | ||
*/ | ||
#include "SDL_config.h" | ||
|
||
#include "../../events/SDL_sysevents.h" | ||
#include "../../events/SDL_events_c.h" | ||
|
||
#include "SDL_ps3video.h" | ||
#include "SDL_ps3events_c.h" | ||
|
||
void | ||
PS3_PumpEvents(_THIS) | ||
{ | ||
/* do nothing. */ | ||
} | ||
|
||
/* vi: set ts=4 sw=4 expandtab: */ |
@@ -0,0 +1,28 @@ | ||
/* | ||
SDL - Simple DirectMedia Layer | ||
Copyright (C) 1997-2009 Sam Lantinga | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
Sam Lantinga | ||
slouken@libsdl.org | ||
*/ | ||
#include "SDL_config.h" | ||
|
||
#include "SDL_ps3video.h" | ||
|
||
extern void PS3_PumpEvents(_THIS); | ||
|
||
/* vi: set ts=4 sw=4 expandtab: */ |
Oops, something went wrong.