comparison configure.in @ 4165:3b8ac3d311a2 SDL-1.2

Hello. This patch provides basic support for video on the Sony PS3 Linux framebuffer. Scaling, format-conversion, and drawing is done from the SPEs, so there is little performance impact to PPE applications. This is by no means production quality code, but it is a very good start and a good example of how to use the PS3's hardware capabilities to accelerate video playback on the box. The driver has been verified to work with ffplay, mplayer and xine. This piece of software has been developed at the IBM R&D Lab in Boeblingen, Germany and is now returned to the community. Enjoy ! Signed-off-by: D.Herrendoerfer < d.herrendoerfer [at] de [dot] ibm [dot] com >
author Sam Lantinga <slouken@libsdl.org>
date Thu, 02 Apr 2009 04:06:55 +0000
parents 7a4c511c980a
children a6f635e5eaa6
comparison
equal deleted inserted replaced
4164:7a4c511c980a 4165:3b8ac3d311a2
1285 have_video=yes 1285 have_video=yes
1286 fi 1286 fi
1287 fi 1287 fi
1288 } 1288 }
1289 1289
1290 dnl See if we're running on PlayStation 3 Cell hardware
1291 CheckPS3()
1292 {
1293 AC_ARG_ENABLE(video-ps3,
1294 AC_HELP_STRING([--enable-video-ps3], [use PlayStation 3 Cell driver [[default=yes]]]),
1295 , enable_video_ps3=yes)
1296 if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then
1297 AC_MSG_CHECKING(for PlayStation 3 Cell support)
1298 video_ps3=no
1299 AC_TRY_COMPILE([
1300 #include <linux/fb.h>
1301 #include <asm/ps3fb.h>
1302 ],[
1303 ],[
1304 video_ps3=yes
1305 ])
1306 AC_MSG_RESULT($video_ps3)
1307 if test x$video_ps3 = xyes; then
1308 AC_DEFINE(SDL_VIDEO_DRIVER_PS3)
1309 SOURCES="$SOURCES $srcdir/src/video/ps3/*.c"
1310 EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/cell/sdk/usr/include"
1311 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lbilin_scaler_spu -lfb_writer_spu -lyuv2rgb_spu -L/opt/cell/sdk/usr/lib -lspe2"
1312 have_video=yes
1313 fi
1314 fi
1315 }
1316
1290 dnl Find the GGI includes 1317 dnl Find the GGI includes
1291 CheckGGI() 1318 CheckGGI()
1292 { 1319 {
1293 AC_ARG_ENABLE(video-ggi, 1320 AC_ARG_ENABLE(video-ggi,
1294 AC_HELP_STRING([--enable-video-ggi], [use GGI video driver [[default=no]]]), 1321 AC_HELP_STRING([--enable-video-ggi], [use GGI video driver [[default=no]]]),
2249 CheckX11 2276 CheckX11
2250 CheckNANOX 2277 CheckNANOX
2251 CheckFBCON 2278 CheckFBCON
2252 CheckDirectFB 2279 CheckDirectFB
2253 CheckPS2GS 2280 CheckPS2GS
2281 CheckPS3
2254 CheckGGI 2282 CheckGGI
2255 CheckSVGA 2283 CheckSVGA
2256 CheckVGL 2284 CheckVGL
2257 CheckWscons 2285 CheckWscons
2258 CheckAAlib 2286 CheckAAlib