64{
66 PBYTE SourceBits_24BPP, SourceLine_24BPP;
67 PBYTE DestBits, DestLine, SourceBits_8BPP, SourceLine_8BPP;
68 PBYTE SourceBits, SourceLine;
69 BOOLEAN bTopToBottom, bLeftToRight;
70
71 DPRINT(
"DIB_4BPP_BitBltSrcCopy: SrcSurf cx/cy (%d/%d), DestSuft cx/cy (%d/%d) dstRect: (%d,%d)-(%d,%d)\n",
75
76
78
79
81
82
84
85 DPRINT(
"BPP is '%d/%d' & BltInfo->SourcePoint.x is '%d' & BltInfo->SourcePoint.y is '%d'.\n",
87
91
93 {
95 DPRINT(
"1BPP Case Selected with DestRect Width of '%d'.\n",
97
99
100
102
103 if (bTopToBottom)
104 {
105
107 }
108
109 for (
j=BltInfo->
DestRect.
top; j<BltInfo->DestRect.bottom;
j++)
110 {
112
113 if (bLeftToRight)
114 {
115
117 }
118
120 {
122 {
124 }
125 else
126 {
128 }
130 }
132 }
133 break;
134
136 DPRINT(
"4BPP Case Selected with DestRect Width of '%d'.\n",
138
139
141
142 if (bTopToBottom)
143 {
144
147 }
148
149 for (
j=BltInfo->
DestRect.
top; j<BltInfo->DestRect.bottom;
j++)
150 {
152
153 if (bLeftToRight)
154 {
155
157 }
158
160 {
162 {
166 }
167 else
168 {
171 }
173 }
175 }
176 break;
177
179 DPRINT(
"8BPP-dstRect: (%d,%d)-(%d,%d) and Width of '%d'.\n",
183
186
187 if (bTopToBottom)
188 {
189
193 }
194
195 for (
j=BltInfo->
DestRect.
top; j<BltInfo->DestRect.bottom;
j++)
196 {
197 SourceLine_8BPP = SourceBits_8BPP;
198 DestLine = DestBits;
199
200 if (bLeftToRight)
201 {
202
204 }
205
207
209 {
212 if (
f2 == 1) { DestLine++;
f2 = 0; }
else {
f2 = 1; }
214 }
217 }
218 break;
219
221 DPRINT(
"16BPP Case Selected with DestRect Width of '%d'.\n",
223
224 DPRINT(
"BMF_16BPP-dstRect: (%d,%d)-(%d,%d) and Width of '%d'.\n",
228
232
233 if (bTopToBottom)
234 {
235
238 }
239
240 DestLine = DestBits;
241
242 for (
j = BltInfo->
DestRect.
top; j < BltInfo->DestRect.bottom;
j++)
243 {
244 SourceBits = SourceLine;
245
246 if (bLeftToRight)
247 {
248
250 }
251
252 DestBits = DestLine;
254
255 for (
i = BltInfo->
DestRect.
left; i < BltInfo->DestRect.right;
i++)
256 {
257 xColor = *((
PWORD) SourceBits);
260 if(
f2 == 1) { DestBits++;
f2 = 0; }
else {
f2 = 1; }
261
263 }
264
267 }
268 break;
269
271
272 DPRINT(
"24BPP-dstRect: (%d,%d)-(%d,%d) and Width of '%d'.\n",
276
280
281 if (bTopToBottom)
282 {
283
286 }
287
288 for (
j=BltInfo->
DestRect.
top; j<BltInfo->DestRect.bottom;
j++)
289 {
290 SourceLine_24BPP = SourceBits_24BPP;
291 DestLine = DestBits;
293
294 if (bLeftToRight)
295 {
296
298 }
299
301 {
302 xColor = (*(SourceLine_24BPP + 2) << 0x10) +
303 (*(SourceLine_24BPP + 1) << 0x08) +
304 (*(SourceLine_24BPP));
307 if(
f2 == 1) { DestLine++;
f2 = 0; }
else {
f2 = 1; }
308 DEC_OR_INC(SourceLine_24BPP, bLeftToRight, 3);
309 }
312 }
313 break;
314
316 DPRINT(
"32BPP Case Selected with DestRect Width of '%d'.\n",
318
322
323 if (bTopToBottom)
324 {
325
327 }
328
329 DestLine = DestBits;
330
331 for (
j = BltInfo->
DestRect.
top; j < BltInfo->DestRect.bottom;
j++)
332 {
333 SourceBits = SourceLine;
334 DestBits = DestLine;
335
336 if (bLeftToRight)
337 {
338
340 }
341
343
344 for (
i = BltInfo->
DestRect.
left; i < BltInfo->DestRect.right;
i++)
345 {
346 xColor = *((
PDWORD) SourceBits);
349 if(
f2 == 1) { DestBits++;
f2 = 0; }
else {
f2 = 1; }
350
352 }
353
356 }
357 break;
358
359 default:
360 DbgPrint(
"DIB_4BPP_BitBltSrcCopy: Unhandled Source BPP: %u\n",
363 }
365}
#define DEC_OR_INC(var, decTrue, amount)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
ULONG DIB_1BPP_GetPixel(SURFOBJ *, LONG, LONG)
#define BitsPerFormat(Format)
VOID FASTCALL RECTL_vMakeWellOrdered(_Inout_ RECTL *prcl)
ENGAPI ULONG APIENTRY XLATEOBJ_iXlate(_In_ XLATEOBJ *pxlo, _In_ ULONG iColor)