Mercurial > sdl-ios-xcode
comparison src/video/ps3/SDL_ps3spe_c.h @ 3144:0d8d1f870964 gsoc2009_ps3
Moved SPE-functions to SDL_ps3spe.c.
Added ActivateRenderer() and PS3_QueryTexturePixels().
Added yuv2rgb_spu but not yet in use.
author | Martin Lowinski <martin@goldtopf.org> |
---|---|
date | Wed, 10 Jun 2009 09:15:33 +0000 |
parents | |
children | 0cf7bff804ad |
comparison
equal
deleted
inserted
replaced
3143:8fdabaa064c3 | 3144:0d8d1f870964 |
---|---|
1 /* | |
2 SDL - Simple DirectMedia Layer | |
3 Copyright (C) 1997-2009 Sam Lantinga | |
4 | |
5 This library is free software; you can redistribute it and/or | |
6 modify it under the terms of the GNU Lesser General Public | |
7 License as published by the Free Software Foundation; either | |
8 version 2.1 of the License, or (at your option) any later version. | |
9 | |
10 This library is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 Lesser General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU Lesser General Public | |
16 License along with this library; if not, write to the Free Software | |
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | |
19 Sam Lantinga | |
20 slouken@libsdl.org | |
21 */ | |
22 #include "SDL_config.h" | |
23 | |
24 #include "spulibs/spu_common.h" | |
25 | |
26 #include <libspe2.h> | |
27 | |
28 #ifndef _SDL_ps3spe_h | |
29 #define _SDL_ps3spe_h | |
30 | |
31 /* SPU thread data */ | |
32 typedef struct spu_data { | |
33 spe_context_ptr_t ctx; | |
34 spe_program_handle_t program; | |
35 pthread_t thread; | |
36 char * program_name; | |
37 unsigned int booted; | |
38 unsigned int keepalive; | |
39 unsigned int entry; | |
40 int error_code; | |
41 void * argp; | |
42 } spu_data_t; | |
43 | |
44 /* SPU specific functions */ | |
45 int SPE_Start(spu_data_t * spe_data); | |
46 int SPE_Stop(spu_data_t * spe_data); | |
47 int SPE_Boot(spu_data_t * spe_data); | |
48 int SPE_Shutdown(spu_data_t * spe_data); | |
49 int SPE_SendMsg(spu_data_t * spe_data, unsigned int msg); | |
50 int SPE_WaitForMsg(spu_data_t * spe_data, unsigned int msg); | |
51 void SPE_RunContext(void *thread_argp); | |
52 | |
53 #endif /* _SDL_ps3spe_h */ | |
54 | |
55 /* vi: set ts=4 sw=4 expandtab: */ |