cc68a136 |
1 | \r |
2 | /*\r |
3 | void vidConvCpyRGB32 (void *to, void *from, int lines, int p240)\r |
4 | {\r |
5 | unsigned short *ps = (unsigned short *) from;\r |
6 | unsigned long *pd = (unsigned long *) to;\r |
7 | int x, y;\r |
8 | int to_x = p240 ? 240 : 224;\r |
9 | if(!p240) pd += 8;\r |
10 | \r |
11 | for(y = 0; y < lines; y++) // ps < ps_end; ps++)\r |
12 | for(x = 0; x < to_x; x++, ps++)\r |
13 | // Convert 0000bbb0 ggg0rrr0\r |
14 | // to ..0 rrr00000 ggg00000 bbb00000\r |
15 | *(pd+y*256+x) = ((*ps&0x000F)<<20) | ((*ps&0x00F0)<<8) | ((*ps&0x0F00)>>4);\r |
16 | }\r |
17 | */\r |
18 | \r |
19 | // stubs\r |
20 | void vidConvCpyRGB32 (void *to, void *from, int pixels) {}\r |
21 | void vidConvCpyRGB32sh(void *to, void *from, int pixels) {}\r |
22 | void vidConvCpyRGB32hi(void *to, void *from, int pixels) {}\r |
23 | \r |
24 | void vidConvCpy_90 (void *to, void *from, void *pal, int width) {}\r |
25 | void vidConvCpy_270 (void *to, void *from, void *pal, int width) {}\r |
26 | void vidConvCpy_center_0 (void *to, void *from, void *pal) {}\r |
27 | void vidConvCpy_center_180(void *to, void *from, void *pal) {}\r |
28 | void vidConvCpy_center2_40c_0 (void *to, void *from, void *pal, int lines) {}\r |
29 | void vidConvCpy_center2_40c_180(void *to, void *from, void *pal, int lines) {}\r |
30 | void vidConvCpy_center2_32c_0 (void *to, void *from, void *pal, int lines) {}\r |
31 | void vidConvCpy_center2_32c_180(void *to, void *from, void *pal, int lines) {}\r |
32 | \r |
33 | void vidClear(void *to, int lines) {}\r |
34 | \r |