10externvoid fb_hPutTrans1MMX(unsignedchar *src, unsignedchar *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param);
11externvoid fb_hPutTrans2MMX(unsignedchar *src, unsignedchar *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param);
12externvoid fb_hPutTrans4MMX(unsignedchar *src, unsignedchar *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param);
13
14#endif
15
16
17/*:::::*/
18voidfb_hPutTrans1C(unsignedchar *src, unsignedchar *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
19 {
20unsignedchar *s = (unsignedchar *)src;
21unsignedchar *d;
22int x;
23
24 src_pitch -= w;
25for (; h; h--) {
26 d = (unsignedchar *)dest;
27for (x = w; x; x--) {
28if (*s)
29 *d = (unsigned int)*s;
30 s++;
31 d++;
32 }
33 s += src_pitch;
34 dest += dest_pitch;
35 }
36 }
37
38
39/*:::::*/
40staticvoidfb_hPutTrans2C(unsignedchar *src, unsignedchar *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)
62staticvoidfb_hPutTrans4C(unsignedchar *src, unsignedchar *dest, int w, int h, int src_pitch, int dest_pitch, int alpha, BLENDER *blender, void *param)