2 // Convert 0000bbb0 ggg0rrr0 0000bbb0 ggg0rrr0
3 // to 00000000 rrr00000 ggg00000 bbb00000 ...
5 void vidConvCpyRGB32 (void *to, void *from, int pixels)
7 unsigned short *ps = from;
10 for (; pixels; pixels--, ps++, pd++)
12 *pd = ((*ps<<20)&0xe00000) | ((*ps<<8)&0xe000) | ((*ps>>4)&0xe0);
17 void vidConvCpyRGB32sh(void *to, void *from, int pixels)
19 unsigned short *ps = from;
20 unsigned int *pd = to;
22 for (; pixels; pixels--, ps++, pd++)
24 *pd = ((*ps<<20)&0xe00000) | ((*ps<<8)&0xe000) | ((*ps>>4)&0xe0);
30 void vidConvCpyRGB32hi(void *to, void *from, int pixels)
32 unsigned short *ps = from;
33 unsigned int *pd = to;
35 for (; pixels; pixels--, ps++, pd++)
37 *pd = ((*ps<<20)&0xe00000) | ((*ps<<8)&0xe000) | ((*ps>>4)&0xe0);
40 if (*pd & 0x01000000) *pd |= 0x00e00000;
41 if (*pd & 0x00010000) *pd |= 0x0000e000;
42 if (*pd & 0x00000100) *pd |= 0x000000e0;
48 void vidCpyM2_40col(void *dest, void *src)
50 unsigned char *pd = dest, *ps = src;
53 for (i = 0; i < 224; i++)
56 for (u = 0; u < 320; u++)
61 void vidCpyM2_32col(void *dest, void *src)
63 unsigned char *pd = dest, *ps = src;
66 for (i = 0; i < 224; i++)
70 for (u = 0; u < 256; u++)
77 void vidCpyM2_32col_nobord(void *dest, void *src)
79 vidCpyM2_32col(dest, src);