Mercurial > sdl-ios-xcode
comparison src/video/SDL_yuv_sw_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 | 99210400e8b9 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3143:8fdabaa064c3 | 3144:0d8d1f870964 |
---|---|
24 #include "SDL_video.h" | 24 #include "SDL_video.h" |
25 #include "SDL_sysvideo.h" | 25 #include "SDL_sysvideo.h" |
26 | 26 |
27 /* This is the software implementation of the YUV texture support */ | 27 /* This is the software implementation of the YUV texture support */ |
28 | 28 |
29 struct SDL_SW_YUVTexture | |
30 { | |
31 Uint32 format; | |
32 Uint32 target_format; | |
33 int w, h; | |
34 Uint8 *pixels; | |
35 int *colortab; | |
36 Uint32 *rgb_2_pix; | |
37 void (*Display1X) (int *colortab, Uint32 * rgb_2_pix, | |
38 unsigned char *lum, unsigned char *cr, | |
39 unsigned char *cb, unsigned char *out, | |
40 int rows, int cols, int mod); | |
41 void (*Display2X) (int *colortab, Uint32 * rgb_2_pix, | |
42 unsigned char *lum, unsigned char *cr, | |
43 unsigned char *cb, unsigned char *out, | |
44 int rows, int cols, int mod); | |
45 | |
46 /* These are just so we don't have to allocate them separately */ | |
47 Uint16 pitches[3]; | |
48 Uint8 *planes[3]; | |
49 | |
50 /* This is a temporary surface in case we have to stretch copy */ | |
51 SDL_Surface *stretch; | |
52 SDL_Surface *display; | |
53 }; | |
54 | |
29 typedef struct SDL_SW_YUVTexture SDL_SW_YUVTexture; | 55 typedef struct SDL_SW_YUVTexture SDL_SW_YUVTexture; |
30 | 56 |
31 SDL_SW_YUVTexture *SDL_SW_CreateYUVTexture(Uint32 format, int w, int h); | 57 SDL_SW_YUVTexture *SDL_SW_CreateYUVTexture(Uint32 format, int w, int h); |
32 int SDL_SW_QueryYUVTexturePixels(SDL_SW_YUVTexture * swdata, void **pixels, | 58 int SDL_SW_QueryYUVTexturePixels(SDL_SW_YUVTexture * swdata, void **pixels, |
33 int *pitch); | 59 int *pitch); |