comparison src/video/SDL_yuv_sw.c @ 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
85 85
86 #include "SDL_video.h" 86 #include "SDL_video.h"
87 #include "SDL_cpuinfo.h" 87 #include "SDL_cpuinfo.h"
88 #include "SDL_yuv_sw_c.h" 88 #include "SDL_yuv_sw_c.h"
89 89
90
91 struct SDL_SW_YUVTexture
92 {
93 Uint32 format;
94 Uint32 target_format;
95 int w, h;
96 Uint8 *pixels;
97 int *colortab;
98 Uint32 *rgb_2_pix;
99 void (*Display1X) (int *colortab, Uint32 * rgb_2_pix,
100 unsigned char *lum, unsigned char *cr,
101 unsigned char *cb, unsigned char *out,
102 int rows, int cols, int mod);
103 void (*Display2X) (int *colortab, Uint32 * rgb_2_pix,
104 unsigned char *lum, unsigned char *cr,
105 unsigned char *cb, unsigned char *out,
106 int rows, int cols, int mod);
107
108 /* These are just so we don't have to allocate them separately */
109 Uint16 pitches[3];
110 Uint8 *planes[3];
111
112 /* This is a temporary surface in case we have to stretch copy */
113 SDL_Surface *stretch;
114 SDL_Surface *display;
115 };
116 90
117 /* The colorspace conversion functions */ 91 /* The colorspace conversion functions */
118 92
119 #if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES 93 #if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES
120 extern void Color565DitherYV12MMX1X(int *colortab, Uint32 * rgb_2_pix, 94 extern void Color565DitherYV12MMX1X(int *colortab, Uint32 * rgb_2_pix,