Mercurial > sdl-ios-xcode
comparison src/video/ps3/SDL_ps3video.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 | 8fdabaa064c3 |
children | 7828eed2f31a |
comparison
equal
deleted
inserted
replaced
3143:8fdabaa064c3 | 3144:0d8d1f870964 |
---|---|
19 Sam Lantinga | 19 Sam Lantinga |
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 */ | 21 */ |
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 | 23 |
24 #include <libspe2.h> | |
25 | |
26 #ifndef _SDL_ps3video_h | 24 #ifndef _SDL_ps3video_h |
27 #define _SDL_ps3video_h | 25 #define _SDL_ps3video_h |
28 | 26 |
29 #include "../SDL_sysvideo.h" | 27 #include "../SDL_sysvideo.h" |
28 #include "SDL_ps3spe_c.h" | |
30 | 29 |
31 /* Debugging | 30 /* Debugging |
32 * 0: No debug messages | 31 * 0: No debug messages |
33 * 1: Video debug messages | 32 * 1: Video debug messages |
34 * 2: SPE debug messages | 33 * 2: SPE debug messages |
51 #endif | 50 #endif |
52 | 51 |
53 /* Default framebuffer device on PS3 */ | 52 /* Default framebuffer device on PS3 */ |
54 #define PS3DEV "/dev/fb0" | 53 #define PS3DEV "/dev/fb0" |
55 | 54 |
56 /* SPU thread data */ | |
57 typedef struct spu_data { | |
58 spe_context_ptr_t ctx; | |
59 spe_program_handle_t program; | |
60 pthread_t thread; | |
61 char * program_name; | |
62 unsigned int booted; | |
63 unsigned int keepalive; | |
64 unsigned int entry; | |
65 int error_code; | |
66 void * argp; | |
67 } spu_data_t; | |
68 | |
69 /* Private display data */ | 55 /* Private display data */ |
70 typedef struct SDL_VideoData | 56 typedef struct SDL_VideoData |
71 { | 57 { |
72 /* Framebuffer device descriptor */ | 58 /* Framebuffer device descriptor */ |
73 int fbdev; | 59 int fbdev; |