comparison src/hermes/HeadX86.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents bb5ace455586
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
15 15
16 /* If you can't stand IFDEFS, then close your eyes now, please :) */ 16 /* If you can't stand IFDEFS, then close your eyes now, please :) */
17 17
18 /* Ok, we start with normal function definitions */ 18 /* Ok, we start with normal function definitions */
19 #ifdef __cplusplus 19 #ifdef __cplusplus
20 extern "C" { 20 extern "C"
21 {
21 #endif 22 #endif
22 23
23 24
24 void STACKCALL ConvertX86(HermesConverterInterface *); 25 void STACKCALL ConvertX86 (HermesConverterInterface *);
25 void STACKCALL ClearX86_32(HermesClearInterface *); 26 void STACKCALL ClearX86_32 (HermesClearInterface *);
26 void STACKCALL ClearX86_24(HermesClearInterface *); 27 void STACKCALL ClearX86_24 (HermesClearInterface *);
27 void STACKCALL ClearX86_16(HermesClearInterface *); 28 void STACKCALL ClearX86_16 (HermesClearInterface *);
28 void STACKCALL ClearX86_8(HermesClearInterface *); 29 void STACKCALL ClearX86_8 (HermesClearInterface *);
29 30
30 int STACKCALL Hermes_X86_CPU(); 31 int STACKCALL Hermes_X86_CPU ();
31 32
32 void ConvertX86p32_32BGR888(); 33 void ConvertX86p32_32BGR888 ();
33 void ConvertX86p32_32RGBA888(); 34 void ConvertX86p32_32RGBA888 ();
34 void ConvertX86p32_32BGRA888(); 35 void ConvertX86p32_32BGRA888 ();
35 void ConvertX86p32_24RGB888(); 36 void ConvertX86p32_24RGB888 ();
36 void ConvertX86p32_24BGR888(); 37 void ConvertX86p32_24BGR888 ();
37 void ConvertX86p32_16RGB565(); 38 void ConvertX86p32_16RGB565 ();
38 void ConvertX86p32_16BGR565(); 39 void ConvertX86p32_16BGR565 ();
39 void ConvertX86p32_16RGB555(); 40 void ConvertX86p32_16RGB555 ();
40 void ConvertX86p32_16BGR555(); 41 void ConvertX86p32_16BGR555 ();
41 void ConvertX86p32_8RGB332(); 42 void ConvertX86p32_8RGB332 ();
42 43
43 void ConvertX86p16_32RGB888(); 44 void ConvertX86p16_32RGB888 ();
44 void ConvertX86p16_32BGR888(); 45 void ConvertX86p16_32BGR888 ();
45 void ConvertX86p16_32RGBA888(); 46 void ConvertX86p16_32RGBA888 ();
46 void ConvertX86p16_32BGRA888(); 47 void ConvertX86p16_32BGRA888 ();
47 void ConvertX86p16_24RGB888(); 48 void ConvertX86p16_24RGB888 ();
48 void ConvertX86p16_24BGR888(); 49 void ConvertX86p16_24BGR888 ();
49 void ConvertX86p16_16BGR565(); 50 void ConvertX86p16_16BGR565 ();
50 void ConvertX86p16_16RGB555(); 51 void ConvertX86p16_16RGB555 ();
51 void ConvertX86p16_16BGR555(); 52 void ConvertX86p16_16BGR555 ();
52 void ConvertX86p16_8RGB332(); 53 void ConvertX86p16_8RGB332 ();
53 54
54 void CopyX86p_4byte(); 55 void CopyX86p_4byte ();
55 void CopyX86p_3byte(); 56 void CopyX86p_3byte ();
56 void CopyX86p_2byte(); 57 void CopyX86p_2byte ();
57 void CopyX86p_1byte(); 58 void CopyX86p_1byte ();
58 59
59 void ConvertX86pI8_32(); 60 void ConvertX86pI8_32 ();
60 void ConvertX86pI8_24(); 61 void ConvertX86pI8_24 ();
61 void ConvertX86pI8_16(); 62 void ConvertX86pI8_16 ();
62 63
63 extern int ConvertX86p16_32RGB888_LUT_X86[512]; 64 extern int ConvertX86p16_32RGB888_LUT_X86[512];
64 extern int ConvertX86p16_32BGR888_LUT_X86[512]; 65 extern int ConvertX86p16_32BGR888_LUT_X86[512];
65 extern int ConvertX86p16_32RGBA888_LUT_X86[512]; 66 extern int ConvertX86p16_32RGBA888_LUT_X86[512];
66 extern int ConvertX86p16_32BGRA888_LUT_X86[512]; 67 extern int ConvertX86p16_32BGRA888_LUT_X86[512];
67 68
68 #ifdef __cplusplus 69 #ifdef __cplusplus
69 } 70 }
70 #endif 71 #endif
71 72
72 73
73 74
74 75
75 /* Now fix up the ELF underscore problem */ 76 /* Now fix up the ELF underscore problem */
76 77
77 #if defined(__ELF__) && defined(__GNUC__) 78 #if defined(__ELF__) && defined(__GNUC__)
78 #ifdef __cplusplus 79 #ifdef __cplusplus
79 extern "C" { 80 extern "C"
80 #endif 81 {
82 #endif
81 83
82 extern int _Hermes_X86_CPU(); 84 extern int _Hermes_X86_CPU ();
83 85
84 extern void _ConvertX86(HermesConverterInterface *); 86 extern void _ConvertX86 (HermesConverterInterface *);
85 87
86 extern void _ConvertX86p32_32BGR888(); 88 extern void _ConvertX86p32_32BGR888 ();
87 extern void _ConvertX86p32_32RGBA888(); 89 extern void _ConvertX86p32_32RGBA888 ();
88 extern void _ConvertX86p32_32BGRA888(); 90 extern void _ConvertX86p32_32BGRA888 ();
89 extern void _ConvertX86p32_24RGB888(); 91 extern void _ConvertX86p32_24RGB888 ();
90 extern void _ConvertX86p32_24BGR888(); 92 extern void _ConvertX86p32_24BGR888 ();
91 extern void _ConvertX86p32_16RGB565(); 93 extern void _ConvertX86p32_16RGB565 ();
92 extern void _ConvertX86p32_16BGR565(); 94 extern void _ConvertX86p32_16BGR565 ();
93 extern void _ConvertX86p32_16RGB555(); 95 extern void _ConvertX86p32_16RGB555 ();
94 extern void _ConvertX86p32_16BGR555(); 96 extern void _ConvertX86p32_16BGR555 ();
95 extern void _ConvertX86p32_8RGB332(); 97 extern void _ConvertX86p32_8RGB332 ();
96 98
97 extern void _ConvertX86p16_16BGR565(); 99 extern void _ConvertX86p16_16BGR565 ();
98 extern void _ConvertX86p16_16RGB555(); 100 extern void _ConvertX86p16_16RGB555 ();
99 extern void _ConvertX86p16_16BGR555(); 101 extern void _ConvertX86p16_16BGR555 ();
100 extern void _ConvertX86p16_8RGB332(); 102 extern void _ConvertX86p16_8RGB332 ();
101 103
102 104
103 #define Hermes_X86_CPU _Hermes_X86_CPU 105 #define Hermes_X86_CPU _Hermes_X86_CPU
104 106
105 #define ConvertX86 _ConvertX86 107 #define ConvertX86 _ConvertX86
106 108
107 #define ConvertX86p32_32BGR888 _ConvertX86p32_32BGR888 109 #define ConvertX86p32_32BGR888 _ConvertX86p32_32BGR888
108 #define ConvertX86p32_32RGBA888 _ConvertX86p32_32RGBA888 110 #define ConvertX86p32_32RGBA888 _ConvertX86p32_32RGBA888
109 #define ConvertX86p32_32BGRA888 _ConvertX86p32_32BGRA888 111 #define ConvertX86p32_32BGRA888 _ConvertX86p32_32BGRA888
110 #define ConvertX86p32_24RGB888 _ConvertX86p32_24RGB888 112 #define ConvertX86p32_24RGB888 _ConvertX86p32_24RGB888
111 #define ConvertX86p32_24BGR888 _ConvertX86p32_24BGR888 113 #define ConvertX86p32_24BGR888 _ConvertX86p32_24BGR888
112 #define ConvertX86p32_16RGB565 _ConvertX86p32_16RGB565 114 #define ConvertX86p32_16RGB565 _ConvertX86p32_16RGB565
113 #define ConvertX86p32_16BGR565 _ConvertX86p32_16BGR565 115 #define ConvertX86p32_16BGR565 _ConvertX86p32_16BGR565
114 #define ConvertX86p32_16RGB555 _ConvertX86p32_16RGB555 116 #define ConvertX86p32_16RGB555 _ConvertX86p32_16RGB555
115 #define ConvertX86p32_16BGR555 _ConvertX86p32_16BGR555 117 #define ConvertX86p32_16BGR555 _ConvertX86p32_16BGR555
116 #define ConvertX86p32_8RGB332 _ConvertX86p32_8RGB332 118 #define ConvertX86p32_8RGB332 _ConvertX86p32_8RGB332
117 119
118 #define ConvertX86p16_16BGR565 _ConvertX86p16_16BGR565 120 #define ConvertX86p16_16BGR565 _ConvertX86p16_16BGR565
119 #define ConvertX86p16_16RGB555 _ConvertX86p16_16RGB555 121 #define ConvertX86p16_16RGB555 _ConvertX86p16_16RGB555
120 #define ConvertX86p16_16BGR555 _ConvertX86p16_16BGR555 122 #define ConvertX86p16_16BGR555 _ConvertX86p16_16BGR555
121 #define ConvertX86p16_8RGB332 _ConvertX86p16_8RGB332 123 #define ConvertX86p16_8RGB332 _ConvertX86p16_8RGB332
122 124
123 125
124 #ifdef __cplusplus 126 #ifdef __cplusplus
125 } 127 }
126 #endif 128 #endif
127 129
128 #endif /* ELF & GNU */ 130 #endif /* ELF & GNU */
129 131
130 132
131 133
132 /* Make it run with WATCOM C */ 134 /* Make it run with WATCOM C */
133 #ifdef __WATCOMC__ 135 #ifdef __WATCOMC__
175 #pragma aux ConvertX86p16_32RGB888_LUT_X86 "_*" 177 #pragma aux ConvertX86p16_32RGB888_LUT_X86 "_*"
176 #pragma aux ConvertX86p16_32BGR888_LUT_X86 "_*" 178 #pragma aux ConvertX86p16_32BGR888_LUT_X86 "_*"
177 #pragma aux ConvertX86p16_32RGBA888_LUT_X86 "_*" 179 #pragma aux ConvertX86p16_32RGBA888_LUT_X86 "_*"
178 #pragma aux ConvertX86p16_32BGRA888_LUT_X86 "_*" 180 #pragma aux ConvertX86p16_32BGRA888_LUT_X86 "_*"
179 181
180 #endif /* __WATCOMC__ */ 182 #endif /* __WATCOMC__ */
181 183
182 184
183 #endif /* X86_ASSEMBLER */ 185 #endif /* X86_ASSEMBLER */
184 186
185 187
186 #endif 188 #endif
189 /* vi: set ts=4 sw=4 expandtab: */