Lines Matching refs:i

67       GLuint i;  in nonlinear_to_linear()  local
68 for (i = 0; i < 256; i++) { in nonlinear_to_linear()
69 const GLfloat cs = UBYTE_TO_FLOAT(i); in nonlinear_to_linear()
71 table[i] = cs / 12.92f; in nonlinear_to_linear()
74 table[i] = (GLfloat) pow((cs + 0.055) / 1.055, 2.4); in nonlinear_to_linear()
94 GLuint i; in unpack_RGBA8888() local
95 for (i = 0; i < n; i++) { in unpack_RGBA8888()
96 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_RGBA8888()
97 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_RGBA8888()
98 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_RGBA8888()
99 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_RGBA8888()
107 GLuint i; in unpack_RGBA8888_REV() local
108 for (i = 0; i < n; i++) { in unpack_RGBA8888_REV()
109 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_RGBA8888_REV()
110 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_RGBA8888_REV()
111 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_RGBA8888_REV()
112 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_RGBA8888_REV()
120 GLuint i; in unpack_ARGB8888() local
121 for (i = 0; i < n; i++) { in unpack_ARGB8888()
122 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_ARGB8888()
123 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_ARGB8888()
124 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_ARGB8888()
125 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_ARGB8888()
133 GLuint i; in unpack_ARGB8888_REV() local
134 for (i = 0; i < n; i++) { in unpack_ARGB8888_REV()
135 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_ARGB8888_REV()
136 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_ARGB8888_REV()
137 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_ARGB8888_REV()
138 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_ARGB8888_REV()
146 GLuint i; in unpack_RGBX8888() local
147 for (i = 0; i < n; i++) { in unpack_RGBX8888()
148 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_RGBX8888()
149 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_RGBX8888()
150 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_RGBX8888()
151 dst[i][ACOMP] = 1.0f; in unpack_RGBX8888()
159 GLuint i; in unpack_RGBX8888_REV() local
160 for (i = 0; i < n; i++) { in unpack_RGBX8888_REV()
161 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_RGBX8888_REV()
162 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_RGBX8888_REV()
163 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_RGBX8888_REV()
164 dst[i][ACOMP] = 1.0f; in unpack_RGBX8888_REV()
172 GLuint i; in unpack_XRGB8888() local
173 for (i = 0; i < n; i++) { in unpack_XRGB8888()
174 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_XRGB8888()
175 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_XRGB8888()
176 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_XRGB8888()
177 dst[i][ACOMP] = 1.0f; in unpack_XRGB8888()
185 GLuint i; in unpack_XRGB8888_REV() local
186 for (i = 0; i < n; i++) { in unpack_XRGB8888_REV()
187 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_XRGB8888_REV()
188 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_XRGB8888_REV()
189 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_XRGB8888_REV()
190 dst[i][ACOMP] = 1.0f; in unpack_XRGB8888_REV()
198 GLuint i; in unpack_RGB888() local
199 for (i = 0; i < n; i++) { in unpack_RGB888()
200 dst[i][RCOMP] = UBYTE_TO_FLOAT( s[i*3+2] ); in unpack_RGB888()
201 dst[i][GCOMP] = UBYTE_TO_FLOAT( s[i*3+1] ); in unpack_RGB888()
202 dst[i][BCOMP] = UBYTE_TO_FLOAT( s[i*3+0] ); in unpack_RGB888()
203 dst[i][ACOMP] = 1.0F; in unpack_RGB888()
211 GLuint i; in unpack_BGR888() local
212 for (i = 0; i < n; i++) { in unpack_BGR888()
213 dst[i][RCOMP] = UBYTE_TO_FLOAT( s[i*3+0] ); in unpack_BGR888()
214 dst[i][GCOMP] = UBYTE_TO_FLOAT( s[i*3+1] ); in unpack_BGR888()
215 dst[i][BCOMP] = UBYTE_TO_FLOAT( s[i*3+2] ); in unpack_BGR888()
216 dst[i][ACOMP] = 1.0F; in unpack_BGR888()
224 GLuint i; in unpack_RGB565() local
225 for (i = 0; i < n; i++) { in unpack_RGB565()
226 dst[i][RCOMP] = ((s[i] >> 11) & 0x1f) * (1.0F / 31.0F); in unpack_RGB565()
227 dst[i][GCOMP] = ((s[i] >> 5 ) & 0x3f) * (1.0F / 63.0F); in unpack_RGB565()
228 dst[i][BCOMP] = ((s[i] ) & 0x1f) * (1.0F / 31.0F); in unpack_RGB565()
229 dst[i][ACOMP] = 1.0F; in unpack_RGB565()
237 GLuint i; in unpack_RGB565_REV() local
238 for (i = 0; i < n; i++) { in unpack_RGB565_REV()
239 GLuint t = (s[i] >> 8) | (s[i] << 8); /* byte swap */ in unpack_RGB565_REV()
240 dst[i][RCOMP] = UBYTE_TO_FLOAT( ((t >> 8) & 0xf8) | ((t >> 13) & 0x7) ); in unpack_RGB565_REV()
241 dst[i][GCOMP] = UBYTE_TO_FLOAT( ((t >> 3) & 0xfc) | ((t >> 9) & 0x3) ); in unpack_RGB565_REV()
242 dst[i][BCOMP] = UBYTE_TO_FLOAT( ((t << 3) & 0xf8) | ((t >> 2) & 0x7) ); in unpack_RGB565_REV()
243 dst[i][ACOMP] = 1.0F; in unpack_RGB565_REV()
251 GLuint i; in unpack_ARGB4444() local
252 for (i = 0; i < n; i++) { in unpack_ARGB4444()
253 dst[i][RCOMP] = ((s[i] >> 8) & 0xf) * (1.0F / 15.0F); in unpack_ARGB4444()
254 dst[i][GCOMP] = ((s[i] >> 4) & 0xf) * (1.0F / 15.0F); in unpack_ARGB4444()
255 dst[i][BCOMP] = ((s[i] ) & 0xf) * (1.0F / 15.0F); in unpack_ARGB4444()
256 dst[i][ACOMP] = ((s[i] >> 12) & 0xf) * (1.0F / 15.0F); in unpack_ARGB4444()
264 GLuint i; in unpack_ARGB4444_REV() local
265 for (i = 0; i < n; i++) { in unpack_ARGB4444_REV()
266 dst[i][RCOMP] = ((s[i] ) & 0xf) * (1.0F / 15.0F); in unpack_ARGB4444_REV()
267 dst[i][GCOMP] = ((s[i] >> 12) & 0xf) * (1.0F / 15.0F); in unpack_ARGB4444_REV()
268 dst[i][BCOMP] = ((s[i] >> 8) & 0xf) * (1.0F / 15.0F); in unpack_ARGB4444_REV()
269 dst[i][ACOMP] = ((s[i] >> 4) & 0xf) * (1.0F / 15.0F); in unpack_ARGB4444_REV()
277 GLuint i; in unpack_RGBA5551() local
278 for (i = 0; i < n; i++) { in unpack_RGBA5551()
279 dst[i][RCOMP] = ((s[i] >> 11) & 0x1f) * (1.0F / 31.0F); in unpack_RGBA5551()
280 dst[i][GCOMP] = ((s[i] >> 6) & 0x1f) * (1.0F / 31.0F); in unpack_RGBA5551()
281 dst[i][BCOMP] = ((s[i] >> 1) & 0x1f) * (1.0F / 31.0F); in unpack_RGBA5551()
282 dst[i][ACOMP] = ((s[i] ) & 0x01) * 1.0F; in unpack_RGBA5551()
290 GLuint i; in unpack_ARGB1555() local
291 for (i = 0; i < n; i++) { in unpack_ARGB1555()
292 dst[i][RCOMP] = ((s[i] >> 10) & 0x1f) * (1.0F / 31.0F); in unpack_ARGB1555()
293 dst[i][GCOMP] = ((s[i] >> 5) & 0x1f) * (1.0F / 31.0F); in unpack_ARGB1555()
294 dst[i][BCOMP] = ((s[i] >> 0) & 0x1f) * (1.0F / 31.0F); in unpack_ARGB1555()
295 dst[i][ACOMP] = ((s[i] >> 15) & 0x01) * 1.0F; in unpack_ARGB1555()
303 GLuint i; in unpack_ARGB1555_REV() local
304 for (i = 0; i < n; i++) { in unpack_ARGB1555_REV()
305 GLushort tmp = (s[i] << 8) | (s[i] >> 8); /* byteswap */ in unpack_ARGB1555_REV()
306 dst[i][RCOMP] = ((tmp >> 10) & 0x1f) * (1.0F / 31.0F); in unpack_ARGB1555_REV()
307 dst[i][GCOMP] = ((tmp >> 5) & 0x1f) * (1.0F / 31.0F); in unpack_ARGB1555_REV()
308 dst[i][BCOMP] = ((tmp >> 0) & 0x1f) * (1.0F / 31.0F); in unpack_ARGB1555_REV()
309 dst[i][ACOMP] = ((tmp >> 15) & 0x01) * 1.0F; in unpack_ARGB1555_REV()
317 GLuint i; in unpack_AL44() local
318 for (i = 0; i < n; i++) { in unpack_AL44()
319 dst[i][RCOMP] = in unpack_AL44()
320 dst[i][GCOMP] = in unpack_AL44()
321 dst[i][BCOMP] = (s[i] & 0xf) * (1.0F / 15.0F); in unpack_AL44()
322 dst[i][ACOMP] = ((s[i] >> 4) & 0xf) * (1.0F / 15.0F); in unpack_AL44()
330 GLuint i; in unpack_AL88() local
331 for (i = 0; i < n; i++) { in unpack_AL88()
332 dst[i][RCOMP] = in unpack_AL88()
333 dst[i][GCOMP] = in unpack_AL88()
334 dst[i][BCOMP] = UBYTE_TO_FLOAT( s[i] & 0xff ); in unpack_AL88()
335 dst[i][ACOMP] = UBYTE_TO_FLOAT( s[i] >> 8 ); in unpack_AL88()
343 GLuint i; in unpack_AL88_REV() local
344 for (i = 0; i < n; i++) { in unpack_AL88_REV()
345 dst[i][RCOMP] = in unpack_AL88_REV()
346 dst[i][GCOMP] = in unpack_AL88_REV()
347 dst[i][BCOMP] = UBYTE_TO_FLOAT( s[i] >> 8 ); in unpack_AL88_REV()
348 dst[i][ACOMP] = UBYTE_TO_FLOAT( s[i] & 0xff ); in unpack_AL88_REV()
356 GLuint i; in unpack_AL1616() local
357 for (i = 0; i < n; i++) { in unpack_AL1616()
358 dst[i][RCOMP] = in unpack_AL1616()
359 dst[i][GCOMP] = in unpack_AL1616()
360 dst[i][BCOMP] = USHORT_TO_FLOAT( s[i] & 0xffff ); in unpack_AL1616()
361 dst[i][ACOMP] = USHORT_TO_FLOAT( s[i] >> 16 ); in unpack_AL1616()
369 GLuint i; in unpack_AL1616_REV() local
370 for (i = 0; i < n; i++) { in unpack_AL1616_REV()
371 dst[i][RCOMP] = in unpack_AL1616_REV()
372 dst[i][GCOMP] = in unpack_AL1616_REV()
373 dst[i][BCOMP] = USHORT_TO_FLOAT( s[i] >> 16 ); in unpack_AL1616_REV()
374 dst[i][ACOMP] = USHORT_TO_FLOAT( s[i] & 0xffff ); in unpack_AL1616_REV()
382 GLuint i; in unpack_RGB332() local
383 for (i = 0; i < n; i++) { in unpack_RGB332()
384 dst[i][RCOMP] = ((s[i] >> 5) & 0x7) * (1.0F / 7.0F); in unpack_RGB332()
385 dst[i][GCOMP] = ((s[i] >> 2) & 0x7) * (1.0F / 7.0F); in unpack_RGB332()
386 dst[i][BCOMP] = ((s[i] ) & 0x3) * (1.0F / 3.0F); in unpack_RGB332()
387 dst[i][ACOMP] = 1.0F; in unpack_RGB332()
396 GLuint i; in unpack_A8() local
397 for (i = 0; i < n; i++) { in unpack_A8()
398 dst[i][RCOMP] = in unpack_A8()
399 dst[i][GCOMP] = in unpack_A8()
400 dst[i][BCOMP] = 0.0F; in unpack_A8()
401 dst[i][ACOMP] = UBYTE_TO_FLOAT(s[i]); in unpack_A8()
409 GLuint i; in unpack_A16() local
410 for (i = 0; i < n; i++) { in unpack_A16()
411 dst[i][RCOMP] = in unpack_A16()
412 dst[i][GCOMP] = in unpack_A16()
413 dst[i][BCOMP] = 0.0F; in unpack_A16()
414 dst[i][ACOMP] = USHORT_TO_FLOAT(s[i]); in unpack_A16()
422 GLuint i; in unpack_L8() local
423 for (i = 0; i < n; i++) { in unpack_L8()
424 dst[i][RCOMP] = in unpack_L8()
425 dst[i][GCOMP] = in unpack_L8()
426 dst[i][BCOMP] = UBYTE_TO_FLOAT(s[i]); in unpack_L8()
427 dst[i][ACOMP] = 1.0F; in unpack_L8()
435 GLuint i; in unpack_L16() local
436 for (i = 0; i < n; i++) { in unpack_L16()
437 dst[i][RCOMP] = in unpack_L16()
438 dst[i][GCOMP] = in unpack_L16()
439 dst[i][BCOMP] = USHORT_TO_FLOAT(s[i]); in unpack_L16()
440 dst[i][ACOMP] = 1.0F; in unpack_L16()
448 GLuint i; in unpack_I8() local
449 for (i = 0; i < n; i++) { in unpack_I8()
450 dst[i][RCOMP] = in unpack_I8()
451 dst[i][GCOMP] = in unpack_I8()
452 dst[i][BCOMP] = in unpack_I8()
453 dst[i][ACOMP] = UBYTE_TO_FLOAT(s[i]); in unpack_I8()
461 GLuint i; in unpack_I16() local
462 for (i = 0; i < n; i++) { in unpack_I16()
463 dst[i][RCOMP] = in unpack_I16()
464 dst[i][GCOMP] = in unpack_I16()
465 dst[i][BCOMP] = in unpack_I16()
466 dst[i][ACOMP] = USHORT_TO_FLOAT(s[i]); in unpack_I16()
473 GLuint i; in unpack_YCBCR() local
474 for (i = 0; i < n; i++) { in unpack_YCBCR()
475 const GLushort *src0 = ((const GLushort *) src) + i * 2; /* even */ in unpack_YCBCR()
481 const GLubyte y = (i & 1) ? y1 : y0; /* choose even/odd luminance */ in unpack_YCBCR()
488 dst[i][RCOMP] = CLAMP(r, 0.0F, 1.0F); in unpack_YCBCR()
489 dst[i][GCOMP] = CLAMP(g, 0.0F, 1.0F); in unpack_YCBCR()
490 dst[i][BCOMP] = CLAMP(b, 0.0F, 1.0F); in unpack_YCBCR()
491 dst[i][ACOMP] = 1.0F; in unpack_YCBCR()
498 GLuint i; in unpack_YCBCR_REV() local
499 for (i = 0; i < n; i++) { in unpack_YCBCR_REV()
500 const GLushort *src0 = ((const GLushort *) src) + i * 2; /* even */ in unpack_YCBCR_REV()
506 const GLubyte y = (i & 1) ? y1 : y0; /* choose even/odd luminance */ in unpack_YCBCR_REV()
513 dst[i][RCOMP] = CLAMP(r, 0.0F, 1.0F); in unpack_YCBCR_REV()
514 dst[i][GCOMP] = CLAMP(g, 0.0F, 1.0F); in unpack_YCBCR_REV()
515 dst[i][BCOMP] = CLAMP(b, 0.0F, 1.0F); in unpack_YCBCR_REV()
516 dst[i][ACOMP] = 1.0F; in unpack_YCBCR_REV()
524 GLuint i; in unpack_R8() local
525 for (i = 0; i < n; i++) { in unpack_R8()
526 dst[i][0] = UBYTE_TO_FLOAT(s[i]); in unpack_R8()
527 dst[i][1] = in unpack_R8()
528 dst[i][2] = 0.0F; in unpack_R8()
529 dst[i][3] = 1.0F; in unpack_R8()
537 GLuint i; in unpack_GR88() local
538 for (i = 0; i < n; i++) { in unpack_GR88()
539 dst[i][RCOMP] = UBYTE_TO_FLOAT( s[i] & 0xff ); in unpack_GR88()
540 dst[i][GCOMP] = UBYTE_TO_FLOAT( s[i] >> 8 ); in unpack_GR88()
541 dst[i][BCOMP] = 0.0; in unpack_GR88()
542 dst[i][ACOMP] = 1.0; in unpack_GR88()
550 GLuint i; in unpack_RG88() local
551 for (i = 0; i < n; i++) { in unpack_RG88()
552 dst[i][RCOMP] = UBYTE_TO_FLOAT( s[i] >> 8 ); in unpack_RG88()
553 dst[i][GCOMP] = UBYTE_TO_FLOAT( s[i] & 0xff ); in unpack_RG88()
554 dst[i][BCOMP] = 0.0; in unpack_RG88()
555 dst[i][ACOMP] = 1.0; in unpack_RG88()
563 GLuint i; in unpack_R16() local
564 for (i = 0; i < n; i++) { in unpack_R16()
565 dst[i][RCOMP] = USHORT_TO_FLOAT(s[i]); in unpack_R16()
566 dst[i][GCOMP] = 0.0; in unpack_R16()
567 dst[i][BCOMP] = 0.0; in unpack_R16()
568 dst[i][ACOMP] = 1.0; in unpack_R16()
576 GLuint i; in unpack_RG1616() local
577 for (i = 0; i < n; i++) { in unpack_RG1616()
578 dst[i][RCOMP] = USHORT_TO_FLOAT( s[i] & 0xffff ); in unpack_RG1616()
579 dst[i][GCOMP] = USHORT_TO_FLOAT( s[i] >> 16 ); in unpack_RG1616()
580 dst[i][BCOMP] = 0.0; in unpack_RG1616()
581 dst[i][ACOMP] = 1.0; in unpack_RG1616()
589 GLuint i; in unpack_RG1616_REV() local
590 for (i = 0; i < n; i++) { in unpack_RG1616_REV()
591 dst[i][RCOMP] = USHORT_TO_FLOAT( s[i] >> 16 ); in unpack_RG1616_REV()
592 dst[i][GCOMP] = USHORT_TO_FLOAT( s[i] & 0xffff ); in unpack_RG1616_REV()
593 dst[i][BCOMP] = 0.0; in unpack_RG1616_REV()
594 dst[i][ACOMP] = 1.0; in unpack_RG1616_REV()
602 GLuint i; in unpack_ARGB2101010() local
603 for (i = 0; i < n; i++) { in unpack_ARGB2101010()
604 dst[i][RCOMP] = ((s[i] >> 20) & 0x3ff) * (1.0F / 1023.0F); in unpack_ARGB2101010()
605 dst[i][GCOMP] = ((s[i] >> 10) & 0x3ff) * (1.0F / 1023.0F); in unpack_ARGB2101010()
606 dst[i][BCOMP] = ((s[i] >> 0) & 0x3ff) * (1.0F / 1023.0F); in unpack_ARGB2101010()
607 dst[i][ACOMP] = ((s[i] >> 30) & 0x03) * (1.0F / 3.0F); in unpack_ARGB2101010()
616 GLuint i; in unpack_ABGR2101010_UINT() local
617 for (i = 0; i < n; i++) { in unpack_ABGR2101010_UINT()
618 dst[i][RCOMP] = (GLfloat)((s[i] >> 0) & 0x3ff); in unpack_ABGR2101010_UINT()
619 dst[i][GCOMP] = (GLfloat)((s[i] >> 10) & 0x3ff); in unpack_ABGR2101010_UINT()
620 dst[i][BCOMP] = (GLfloat)((s[i] >> 20) & 0x3ff); in unpack_ABGR2101010_UINT()
621 dst[i][ACOMP] = (GLfloat)((s[i] >> 30) & 0x03); in unpack_ABGR2101010_UINT()
632 GLuint i; in unpack_Z24_S8() local
633 for (i = 0; i < n; i++) { in unpack_Z24_S8()
634 dst[i][0] = in unpack_Z24_S8()
635 dst[i][1] = in unpack_Z24_S8()
636 dst[i][2] = (s[i] >> 8) * scale; in unpack_Z24_S8()
637 dst[i][3] = 1.0F; in unpack_Z24_S8()
638 ASSERT(dst[i][0] >= 0.0F); in unpack_Z24_S8()
639 ASSERT(dst[i][0] <= 1.0F); in unpack_Z24_S8()
649 GLuint i; in unpack_S8_Z24() local
650 for (i = 0; i < n; i++) { in unpack_S8_Z24()
651 dst[i][0] = in unpack_S8_Z24()
652 dst[i][1] = in unpack_S8_Z24()
653 dst[i][2] = (s[i] & 0x00ffffff) * scale; in unpack_S8_Z24()
654 dst[i][3] = 1.0F; in unpack_S8_Z24()
655 ASSERT(dst[i][0] >= 0.0F); in unpack_S8_Z24()
656 ASSERT(dst[i][0] <= 1.0F); in unpack_S8_Z24()
664 GLuint i; in unpack_Z16() local
665 for (i = 0; i < n; i++) { in unpack_Z16()
666 dst[i][0] = in unpack_Z16()
667 dst[i][1] = in unpack_Z16()
668 dst[i][2] = s[i] * (1.0F / 65535.0F); in unpack_Z16()
669 dst[i][3] = 1.0F; in unpack_Z16()
689 GLuint i; in unpack_Z32() local
690 for (i = 0; i < n; i++) { in unpack_Z32()
691 dst[i][0] = in unpack_Z32()
692 dst[i][1] = in unpack_Z32()
693 dst[i][2] = s[i] * (1.0F / 0xffffffff); in unpack_Z32()
694 dst[i][3] = 1.0F; in unpack_Z32()
702 GLuint i; in unpack_Z32_FLOAT() local
703 for (i = 0; i < n; i++) { in unpack_Z32_FLOAT()
704 dst[i][0] = in unpack_Z32_FLOAT()
705 dst[i][1] = in unpack_Z32_FLOAT()
706 dst[i][2] = s[i * 2]; in unpack_Z32_FLOAT()
707 dst[i][3] = 1.0F; in unpack_Z32_FLOAT()
715 GLuint i; in unpack_Z32_FLOAT_X24S8() local
716 for (i = 0; i < n; i++) { in unpack_Z32_FLOAT_X24S8()
717 dst[i][0] = in unpack_Z32_FLOAT_X24S8()
718 dst[i][1] = in unpack_Z32_FLOAT_X24S8()
719 dst[i][2] = s[i]; in unpack_Z32_FLOAT_X24S8()
720 dst[i][3] = 1.0F; in unpack_Z32_FLOAT_X24S8()
729 GLuint i; in unpack_S8() local
730 for (i = 0; i < n; i++) { in unpack_S8()
731 dst[i][0] = in unpack_S8()
732 dst[i][1] = in unpack_S8()
733 dst[i][2] = 0.0F; in unpack_S8()
734 dst[i][3] = 1.0F; in unpack_S8()
743 GLuint i; in unpack_SRGB8() local
744 for (i = 0; i < n; i++) { in unpack_SRGB8()
745 dst[i][RCOMP] = nonlinear_to_linear(s[i*3+2]); in unpack_SRGB8()
746 dst[i][GCOMP] = nonlinear_to_linear(s[i*3+1]); in unpack_SRGB8()
747 dst[i][BCOMP] = nonlinear_to_linear(s[i*3+0]); in unpack_SRGB8()
748 dst[i][ACOMP] = 1.0F; in unpack_SRGB8()
756 GLuint i; in unpack_SRGBA8() local
757 for (i = 0; i < n; i++) { in unpack_SRGBA8()
758 dst[i][RCOMP] = nonlinear_to_linear( (s[i] >> 24) ); in unpack_SRGBA8()
759 dst[i][GCOMP] = nonlinear_to_linear( (s[i] >> 16) & 0xff ); in unpack_SRGBA8()
760 dst[i][BCOMP] = nonlinear_to_linear( (s[i] >> 8) & 0xff ); in unpack_SRGBA8()
761 dst[i][ACOMP] = UBYTE_TO_FLOAT( s[i] & 0xff ); /* linear! */ in unpack_SRGBA8()
769 GLuint i; in unpack_SARGB8() local
770 for (i = 0; i < n; i++) { in unpack_SARGB8()
771 dst[i][RCOMP] = nonlinear_to_linear( (s[i] >> 16) & 0xff ); in unpack_SARGB8()
772 dst[i][GCOMP] = nonlinear_to_linear( (s[i] >> 8) & 0xff ); in unpack_SARGB8()
773 dst[i][BCOMP] = nonlinear_to_linear( (s[i] ) & 0xff ); in unpack_SARGB8()
774 dst[i][ACOMP] = UBYTE_TO_FLOAT( s[i] >> 24 ); /* linear! */ in unpack_SARGB8()
782 GLuint i; in unpack_SL8() local
783 for (i = 0; i < n; i++) { in unpack_SL8()
784 dst[i][RCOMP] = in unpack_SL8()
785 dst[i][GCOMP] = in unpack_SL8()
786 dst[i][BCOMP] = nonlinear_to_linear(s[i]); in unpack_SL8()
787 dst[i][ACOMP] = 1.0F; in unpack_SL8()
795 GLuint i; in unpack_SLA8() local
796 for (i = 0; i < n; i++) { in unpack_SLA8()
797 dst[i][RCOMP] = in unpack_SLA8()
798 dst[i][GCOMP] = in unpack_SLA8()
799 dst[i][BCOMP] = nonlinear_to_linear(s[i] & 0xff); in unpack_SLA8()
800 dst[i][ACOMP] = UBYTE_TO_FLOAT(s[i] >> 8); /* linear! */ in unpack_SLA8()
859 GLuint i; in unpack_RGBA_FLOAT32() local
860 for (i = 0; i < n; i++) { in unpack_RGBA_FLOAT32()
861 dst[i][RCOMP] = s[i*4+0]; in unpack_RGBA_FLOAT32()
862 dst[i][GCOMP] = s[i*4+1]; in unpack_RGBA_FLOAT32()
863 dst[i][BCOMP] = s[i*4+2]; in unpack_RGBA_FLOAT32()
864 dst[i][ACOMP] = s[i*4+3]; in unpack_RGBA_FLOAT32()
872 GLuint i; in unpack_RGBA_FLOAT16() local
873 for (i = 0; i < n; i++) { in unpack_RGBA_FLOAT16()
874 dst[i][RCOMP] = _mesa_half_to_float(s[i*4+0]); in unpack_RGBA_FLOAT16()
875 dst[i][GCOMP] = _mesa_half_to_float(s[i*4+1]); in unpack_RGBA_FLOAT16()
876 dst[i][BCOMP] = _mesa_half_to_float(s[i*4+2]); in unpack_RGBA_FLOAT16()
877 dst[i][ACOMP] = _mesa_half_to_float(s[i*4+3]); in unpack_RGBA_FLOAT16()
885 GLuint i; in unpack_RGB_FLOAT32() local
886 for (i = 0; i < n; i++) { in unpack_RGB_FLOAT32()
887 dst[i][RCOMP] = s[i*3+0]; in unpack_RGB_FLOAT32()
888 dst[i][GCOMP] = s[i*3+1]; in unpack_RGB_FLOAT32()
889 dst[i][BCOMP] = s[i*3+2]; in unpack_RGB_FLOAT32()
890 dst[i][ACOMP] = 1.0F; in unpack_RGB_FLOAT32()
898 GLuint i; in unpack_RGB_FLOAT16() local
899 for (i = 0; i < n; i++) { in unpack_RGB_FLOAT16()
900 dst[i][RCOMP] = _mesa_half_to_float(s[i*3+0]); in unpack_RGB_FLOAT16()
901 dst[i][GCOMP] = _mesa_half_to_float(s[i*3+1]); in unpack_RGB_FLOAT16()
902 dst[i][BCOMP] = _mesa_half_to_float(s[i*3+2]); in unpack_RGB_FLOAT16()
903 dst[i][ACOMP] = 1.0F; in unpack_RGB_FLOAT16()
911 GLuint i; in unpack_ALPHA_FLOAT32() local
912 for (i = 0; i < n; i++) { in unpack_ALPHA_FLOAT32()
913 dst[i][RCOMP] = in unpack_ALPHA_FLOAT32()
914 dst[i][GCOMP] = in unpack_ALPHA_FLOAT32()
915 dst[i][BCOMP] = 0.0F; in unpack_ALPHA_FLOAT32()
916 dst[i][ACOMP] = s[i]; in unpack_ALPHA_FLOAT32()
924 GLuint i; in unpack_ALPHA_FLOAT16() local
925 for (i = 0; i < n; i++) { in unpack_ALPHA_FLOAT16()
926 dst[i][RCOMP] = in unpack_ALPHA_FLOAT16()
927 dst[i][GCOMP] = in unpack_ALPHA_FLOAT16()
928 dst[i][BCOMP] = 0.0F; in unpack_ALPHA_FLOAT16()
929 dst[i][ACOMP] = _mesa_half_to_float(s[i]); in unpack_ALPHA_FLOAT16()
937 GLuint i; in unpack_LUMINANCE_FLOAT32() local
938 for (i = 0; i < n; i++) { in unpack_LUMINANCE_FLOAT32()
939 dst[i][RCOMP] = in unpack_LUMINANCE_FLOAT32()
940 dst[i][GCOMP] = in unpack_LUMINANCE_FLOAT32()
941 dst[i][BCOMP] = s[i]; in unpack_LUMINANCE_FLOAT32()
942 dst[i][ACOMP] = 1.0F; in unpack_LUMINANCE_FLOAT32()
950 GLuint i; in unpack_LUMINANCE_FLOAT16() local
951 for (i = 0; i < n; i++) { in unpack_LUMINANCE_FLOAT16()
952 dst[i][RCOMP] = in unpack_LUMINANCE_FLOAT16()
953 dst[i][GCOMP] = in unpack_LUMINANCE_FLOAT16()
954 dst[i][BCOMP] = _mesa_half_to_float(s[i]); in unpack_LUMINANCE_FLOAT16()
955 dst[i][ACOMP] = 1.0F; in unpack_LUMINANCE_FLOAT16()
963 GLuint i; in unpack_LUMINANCE_ALPHA_FLOAT32() local
964 for (i = 0; i < n; i++) { in unpack_LUMINANCE_ALPHA_FLOAT32()
965 dst[i][RCOMP] = in unpack_LUMINANCE_ALPHA_FLOAT32()
966 dst[i][GCOMP] = in unpack_LUMINANCE_ALPHA_FLOAT32()
967 dst[i][BCOMP] = s[i*2+0]; in unpack_LUMINANCE_ALPHA_FLOAT32()
968 dst[i][ACOMP] = s[i*2+1]; in unpack_LUMINANCE_ALPHA_FLOAT32()
976 GLuint i; in unpack_LUMINANCE_ALPHA_FLOAT16() local
977 for (i = 0; i < n; i++) { in unpack_LUMINANCE_ALPHA_FLOAT16()
978 dst[i][RCOMP] = in unpack_LUMINANCE_ALPHA_FLOAT16()
979 dst[i][GCOMP] = in unpack_LUMINANCE_ALPHA_FLOAT16()
980 dst[i][BCOMP] = _mesa_half_to_float(s[i*2+0]); in unpack_LUMINANCE_ALPHA_FLOAT16()
981 dst[i][ACOMP] = _mesa_half_to_float(s[i*2+1]); in unpack_LUMINANCE_ALPHA_FLOAT16()
989 GLuint i; in unpack_INTENSITY_FLOAT32() local
990 for (i = 0; i < n; i++) { in unpack_INTENSITY_FLOAT32()
991 dst[i][RCOMP] = in unpack_INTENSITY_FLOAT32()
992 dst[i][GCOMP] = in unpack_INTENSITY_FLOAT32()
993 dst[i][BCOMP] = in unpack_INTENSITY_FLOAT32()
994 dst[i][ACOMP] = s[i]; in unpack_INTENSITY_FLOAT32()
1002 GLuint i; in unpack_INTENSITY_FLOAT16() local
1003 for (i = 0; i < n; i++) { in unpack_INTENSITY_FLOAT16()
1004 dst[i][RCOMP] = in unpack_INTENSITY_FLOAT16()
1005 dst[i][GCOMP] = in unpack_INTENSITY_FLOAT16()
1006 dst[i][BCOMP] = in unpack_INTENSITY_FLOAT16()
1007 dst[i][ACOMP] = _mesa_half_to_float(s[i]); in unpack_INTENSITY_FLOAT16()
1015 GLuint i; in unpack_R_FLOAT32() local
1016 for (i = 0; i < n; i++) { in unpack_R_FLOAT32()
1017 dst[i][RCOMP] = s[i]; in unpack_R_FLOAT32()
1018 dst[i][GCOMP] = 0.0F; in unpack_R_FLOAT32()
1019 dst[i][BCOMP] = 0.0F; in unpack_R_FLOAT32()
1020 dst[i][ACOMP] = 1.0F; in unpack_R_FLOAT32()
1028 GLuint i; in unpack_R_FLOAT16() local
1029 for (i = 0; i < n; i++) { in unpack_R_FLOAT16()
1030 dst[i][RCOMP] = _mesa_half_to_float(s[i]); in unpack_R_FLOAT16()
1031 dst[i][GCOMP] = 0.0F; in unpack_R_FLOAT16()
1032 dst[i][BCOMP] = 0.0F; in unpack_R_FLOAT16()
1033 dst[i][ACOMP] = 1.0F; in unpack_R_FLOAT16()
1041 GLuint i; in unpack_RG_FLOAT32() local
1042 for (i = 0; i < n; i++) { in unpack_RG_FLOAT32()
1043 dst[i][RCOMP] = s[i*2+0]; in unpack_RG_FLOAT32()
1044 dst[i][GCOMP] = s[i*2+1]; in unpack_RG_FLOAT32()
1045 dst[i][BCOMP] = 0.0F; in unpack_RG_FLOAT32()
1046 dst[i][ACOMP] = 1.0F; in unpack_RG_FLOAT32()
1054 GLuint i; in unpack_RG_FLOAT16() local
1055 for (i = 0; i < n; i++) { in unpack_RG_FLOAT16()
1056 dst[i][RCOMP] = _mesa_half_to_float(s[i*2+0]); in unpack_RG_FLOAT16()
1057 dst[i][GCOMP] = _mesa_half_to_float(s[i*2+1]); in unpack_RG_FLOAT16()
1058 dst[i][BCOMP] = 0.0F; in unpack_RG_FLOAT16()
1059 dst[i][ACOMP] = 1.0F; in unpack_RG_FLOAT16()
1068 GLuint i; in unpack_RGBA_INT8() local
1069 for (i = 0; i < n; i++) { in unpack_RGBA_INT8()
1070 dst[i][RCOMP] = (GLfloat) s[i*4+0]; in unpack_RGBA_INT8()
1071 dst[i][GCOMP] = (GLfloat) s[i*4+1]; in unpack_RGBA_INT8()
1072 dst[i][BCOMP] = (GLfloat) s[i*4+2]; in unpack_RGBA_INT8()
1073 dst[i][ACOMP] = (GLfloat) s[i*4+3]; in unpack_RGBA_INT8()
1081 GLuint i; in unpack_RGBA_INT16() local
1082 for (i = 0; i < n; i++) { in unpack_RGBA_INT16()
1083 dst[i][RCOMP] = (GLfloat) s[i*4+0]; in unpack_RGBA_INT16()
1084 dst[i][GCOMP] = (GLfloat) s[i*4+1]; in unpack_RGBA_INT16()
1085 dst[i][BCOMP] = (GLfloat) s[i*4+2]; in unpack_RGBA_INT16()
1086 dst[i][ACOMP] = (GLfloat) s[i*4+3]; in unpack_RGBA_INT16()
1094 GLuint i; in unpack_RGBA_INT32() local
1095 for (i = 0; i < n; i++) { in unpack_RGBA_INT32()
1096 dst[i][RCOMP] = (GLfloat) s[i*4+0]; in unpack_RGBA_INT32()
1097 dst[i][GCOMP] = (GLfloat) s[i*4+1]; in unpack_RGBA_INT32()
1098 dst[i][BCOMP] = (GLfloat) s[i*4+2]; in unpack_RGBA_INT32()
1099 dst[i][ACOMP] = (GLfloat) s[i*4+3]; in unpack_RGBA_INT32()
1107 GLuint i; in unpack_RGBA_UINT8() local
1108 for (i = 0; i < n; i++) { in unpack_RGBA_UINT8()
1109 dst[i][RCOMP] = (GLfloat) s[i*4+0]; in unpack_RGBA_UINT8()
1110 dst[i][GCOMP] = (GLfloat) s[i*4+1]; in unpack_RGBA_UINT8()
1111 dst[i][BCOMP] = (GLfloat) s[i*4+2]; in unpack_RGBA_UINT8()
1112 dst[i][ACOMP] = (GLfloat) s[i*4+3]; in unpack_RGBA_UINT8()
1120 GLuint i; in unpack_RGBA_UINT16() local
1121 for (i = 0; i < n; i++) { in unpack_RGBA_UINT16()
1122 dst[i][RCOMP] = (GLfloat) s[i*4+0]; in unpack_RGBA_UINT16()
1123 dst[i][GCOMP] = (GLfloat) s[i*4+1]; in unpack_RGBA_UINT16()
1124 dst[i][BCOMP] = (GLfloat) s[i*4+2]; in unpack_RGBA_UINT16()
1125 dst[i][ACOMP] = (GLfloat) s[i*4+3]; in unpack_RGBA_UINT16()
1133 GLuint i; in unpack_RGBA_UINT32() local
1134 for (i = 0; i < n; i++) { in unpack_RGBA_UINT32()
1135 dst[i][RCOMP] = (GLfloat) s[i*4+0]; in unpack_RGBA_UINT32()
1136 dst[i][GCOMP] = (GLfloat) s[i*4+1]; in unpack_RGBA_UINT32()
1137 dst[i][BCOMP] = (GLfloat) s[i*4+2]; in unpack_RGBA_UINT32()
1138 dst[i][ACOMP] = (GLfloat) s[i*4+3]; in unpack_RGBA_UINT32()
1146 GLuint i; in unpack_DUDV8() local
1147 for (i = 0; i < n; i++) { in unpack_DUDV8()
1148 dst[i][RCOMP] = BYTE_TO_FLOAT(s[i*2+0]); in unpack_DUDV8()
1149 dst[i][GCOMP] = BYTE_TO_FLOAT(s[i*2+1]); in unpack_DUDV8()
1150 dst[i][BCOMP] = 0; in unpack_DUDV8()
1151 dst[i][ACOMP] = 0; in unpack_DUDV8()
1159 GLuint i; in unpack_SIGNED_R8() local
1160 for (i = 0; i < n; i++) { in unpack_SIGNED_R8()
1161 dst[i][RCOMP] = BYTE_TO_FLOAT_TEX( s[i] ); in unpack_SIGNED_R8()
1162 dst[i][GCOMP] = 0.0F; in unpack_SIGNED_R8()
1163 dst[i][BCOMP] = 0.0F; in unpack_SIGNED_R8()
1164 dst[i][ACOMP] = 1.0F; in unpack_SIGNED_R8()
1172 GLuint i; in unpack_SIGNED_RG88_REV() local
1173 for (i = 0; i < n; i++) { in unpack_SIGNED_RG88_REV()
1174 dst[i][RCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] & 0xff) ); in unpack_SIGNED_RG88_REV()
1175 dst[i][GCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 8) ); in unpack_SIGNED_RG88_REV()
1176 dst[i][BCOMP] = 0.0F; in unpack_SIGNED_RG88_REV()
1177 dst[i][ACOMP] = 1.0F; in unpack_SIGNED_RG88_REV()
1185 GLuint i; in unpack_SIGNED_RGBX8888() local
1186 for (i = 0; i < n; i++) { in unpack_SIGNED_RGBX8888()
1187 dst[i][RCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 24) ); in unpack_SIGNED_RGBX8888()
1188 dst[i][GCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 16) ); in unpack_SIGNED_RGBX8888()
1189 dst[i][BCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 8) ); in unpack_SIGNED_RGBX8888()
1190 dst[i][ACOMP] = 1.0f; in unpack_SIGNED_RGBX8888()
1198 GLuint i; in unpack_SIGNED_RGBA8888() local
1199 for (i = 0; i < n; i++) { in unpack_SIGNED_RGBA8888()
1200 dst[i][RCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 24) ); in unpack_SIGNED_RGBA8888()
1201 dst[i][GCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 16) ); in unpack_SIGNED_RGBA8888()
1202 dst[i][BCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 8) ); in unpack_SIGNED_RGBA8888()
1203 dst[i][ACOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] ) ); in unpack_SIGNED_RGBA8888()
1211 GLuint i; in unpack_SIGNED_RGBA8888_REV() local
1212 for (i = 0; i < n; i++) { in unpack_SIGNED_RGBA8888_REV()
1213 dst[i][RCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] ) ); in unpack_SIGNED_RGBA8888_REV()
1214 dst[i][GCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 8) ); in unpack_SIGNED_RGBA8888_REV()
1215 dst[i][BCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 16) ); in unpack_SIGNED_RGBA8888_REV()
1216 dst[i][ACOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 24) ); in unpack_SIGNED_RGBA8888_REV()
1224 GLuint i; in unpack_SIGNED_R16() local
1225 for (i = 0; i < n; i++) { in unpack_SIGNED_R16()
1226 dst[i][RCOMP] = SHORT_TO_FLOAT_TEX( s[i] ); in unpack_SIGNED_R16()
1227 dst[i][GCOMP] = 0.0F; in unpack_SIGNED_R16()
1228 dst[i][BCOMP] = 0.0F; in unpack_SIGNED_R16()
1229 dst[i][ACOMP] = 1.0F; in unpack_SIGNED_R16()
1237 GLuint i; in unpack_SIGNED_GR1616() local
1238 for (i = 0; i < n; i++) { in unpack_SIGNED_GR1616()
1239 dst[i][RCOMP] = SHORT_TO_FLOAT_TEX( (GLshort) (s[i] & 0xffff) ); in unpack_SIGNED_GR1616()
1240 dst[i][GCOMP] = SHORT_TO_FLOAT_TEX( (GLshort) (s[i] >> 16) ); in unpack_SIGNED_GR1616()
1241 dst[i][BCOMP] = 0.0F; in unpack_SIGNED_GR1616()
1242 dst[i][ACOMP] = 1.0F; in unpack_SIGNED_GR1616()
1250 GLuint i; in unpack_SIGNED_RGB_16() local
1251 for (i = 0; i < n; i++) { in unpack_SIGNED_RGB_16()
1252 dst[i][RCOMP] = SHORT_TO_FLOAT_TEX( s[i*3+0] ); in unpack_SIGNED_RGB_16()
1253 dst[i][GCOMP] = SHORT_TO_FLOAT_TEX( s[i*3+1] ); in unpack_SIGNED_RGB_16()
1254 dst[i][BCOMP] = SHORT_TO_FLOAT_TEX( s[i*3+2] ); in unpack_SIGNED_RGB_16()
1255 dst[i][ACOMP] = 1.0F; in unpack_SIGNED_RGB_16()
1263 GLuint i; in unpack_SIGNED_RGBA_16() local
1264 for (i = 0; i < n; i++) { in unpack_SIGNED_RGBA_16()
1265 dst[i][RCOMP] = SHORT_TO_FLOAT_TEX( s[i*4+0] ); in unpack_SIGNED_RGBA_16()
1266 dst[i][GCOMP] = SHORT_TO_FLOAT_TEX( s[i*4+1] ); in unpack_SIGNED_RGBA_16()
1267 dst[i][BCOMP] = SHORT_TO_FLOAT_TEX( s[i*4+2] ); in unpack_SIGNED_RGBA_16()
1268 dst[i][ACOMP] = SHORT_TO_FLOAT_TEX( s[i*4+3] ); in unpack_SIGNED_RGBA_16()
1276 GLuint i; in unpack_RGBA_16() local
1277 for (i = 0; i < n; i++) { in unpack_RGBA_16()
1278 dst[i][RCOMP] = USHORT_TO_FLOAT( s[i*4+0] ); in unpack_RGBA_16()
1279 dst[i][GCOMP] = USHORT_TO_FLOAT( s[i*4+1] ); in unpack_RGBA_16()
1280 dst[i][BCOMP] = USHORT_TO_FLOAT( s[i*4+2] ); in unpack_RGBA_16()
1281 dst[i][ACOMP] = USHORT_TO_FLOAT( s[i*4+3] ); in unpack_RGBA_16()
1343 GLuint i; in unpack_SIGNED_A8() local
1344 for (i = 0; i < n; i++) { in unpack_SIGNED_A8()
1345 dst[i][RCOMP] = 0.0F; in unpack_SIGNED_A8()
1346 dst[i][GCOMP] = 0.0F; in unpack_SIGNED_A8()
1347 dst[i][BCOMP] = 0.0F; in unpack_SIGNED_A8()
1348 dst[i][ACOMP] = BYTE_TO_FLOAT_TEX( s[i] ); in unpack_SIGNED_A8()
1356 GLuint i; in unpack_SIGNED_L8() local
1357 for (i = 0; i < n; i++) { in unpack_SIGNED_L8()
1358 dst[i][RCOMP] = in unpack_SIGNED_L8()
1359 dst[i][GCOMP] = in unpack_SIGNED_L8()
1360 dst[i][BCOMP] = BYTE_TO_FLOAT_TEX( s[i] ); in unpack_SIGNED_L8()
1361 dst[i][ACOMP] = 1.0F; in unpack_SIGNED_L8()
1369 GLuint i; in unpack_SIGNED_AL88() local
1370 for (i = 0; i < n; i++) { in unpack_SIGNED_AL88()
1371 dst[i][RCOMP] = in unpack_SIGNED_AL88()
1372 dst[i][GCOMP] = in unpack_SIGNED_AL88()
1373 dst[i][BCOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] & 0xff) ); in unpack_SIGNED_AL88()
1374 dst[i][ACOMP] = BYTE_TO_FLOAT_TEX( (GLbyte) (s[i] >> 8) ); in unpack_SIGNED_AL88()
1382 GLuint i; in unpack_SIGNED_I8() local
1383 for (i = 0; i < n; i++) { in unpack_SIGNED_I8()
1384 dst[i][RCOMP] = in unpack_SIGNED_I8()
1385 dst[i][GCOMP] = in unpack_SIGNED_I8()
1386 dst[i][BCOMP] = in unpack_SIGNED_I8()
1387 dst[i][ACOMP] = BYTE_TO_FLOAT_TEX( s[i] ); in unpack_SIGNED_I8()
1395 GLuint i; in unpack_SIGNED_A16() local
1396 for (i = 0; i < n; i++) { in unpack_SIGNED_A16()
1397 dst[i][RCOMP] = 0.0F; in unpack_SIGNED_A16()
1398 dst[i][GCOMP] = 0.0F; in unpack_SIGNED_A16()
1399 dst[i][BCOMP] = 0.0F; in unpack_SIGNED_A16()
1400 dst[i][ACOMP] = SHORT_TO_FLOAT_TEX( s[i] ); in unpack_SIGNED_A16()
1408 GLuint i; in unpack_SIGNED_L16() local
1409 for (i = 0; i < n; i++) { in unpack_SIGNED_L16()
1410 dst[i][RCOMP] = in unpack_SIGNED_L16()
1411 dst[i][GCOMP] = in unpack_SIGNED_L16()
1412 dst[i][BCOMP] = SHORT_TO_FLOAT_TEX( s[i] ); in unpack_SIGNED_L16()
1413 dst[i][ACOMP] = 1.0F; in unpack_SIGNED_L16()
1421 GLuint i; in unpack_SIGNED_AL1616() local
1422 for (i = 0; i < n; i++) { in unpack_SIGNED_AL1616()
1423 dst[i][RCOMP] = in unpack_SIGNED_AL1616()
1424 dst[i][GCOMP] = in unpack_SIGNED_AL1616()
1425 dst[i][BCOMP] = SHORT_TO_FLOAT_TEX( s[i*2+0] ); in unpack_SIGNED_AL1616()
1426 dst[i][ACOMP] = SHORT_TO_FLOAT_TEX( s[i*2+1] ); in unpack_SIGNED_AL1616()
1434 GLuint i; in unpack_SIGNED_I16() local
1435 for (i = 0; i < n; i++) { in unpack_SIGNED_I16()
1436 dst[i][RCOMP] = in unpack_SIGNED_I16()
1437 dst[i][GCOMP] = in unpack_SIGNED_I16()
1438 dst[i][BCOMP] = in unpack_SIGNED_I16()
1439 dst[i][ACOMP] = SHORT_TO_FLOAT_TEX( s[i] ); in unpack_SIGNED_I16()
1447 GLuint i; in unpack_RGB9_E5_FLOAT() local
1448 for (i = 0; i < n; i++) { in unpack_RGB9_E5_FLOAT()
1449 rgb9e5_to_float3(s[i], dst[i]); in unpack_RGB9_E5_FLOAT()
1450 dst[i][ACOMP] = 1.0F; in unpack_RGB9_E5_FLOAT()
1458 GLuint i; in unpack_R11_G11_B10_FLOAT() local
1459 for (i = 0; i < n; i++) { in unpack_R11_G11_B10_FLOAT()
1460 r11g11b10f_to_float3(s[i], dst[i]); in unpack_R11_G11_B10_FLOAT()
1461 dst[i][ACOMP] = 1.0F; in unpack_R11_G11_B10_FLOAT()
1637 GLuint i; in unpack_ubyte_RGBA8888() local
1638 for (i = 0; i < n; i++) { in unpack_ubyte_RGBA8888()
1639 dst[i][RCOMP] = (s[i] >> 24); in unpack_ubyte_RGBA8888()
1640 dst[i][GCOMP] = (s[i] >> 16) & 0xff; in unpack_ubyte_RGBA8888()
1641 dst[i][BCOMP] = (s[i] >> 8) & 0xff; in unpack_ubyte_RGBA8888()
1642 dst[i][ACOMP] = (s[i] ) & 0xff; in unpack_ubyte_RGBA8888()
1650 GLuint i; in unpack_ubyte_RGBA8888_REV() local
1651 for (i = 0; i < n; i++) { in unpack_ubyte_RGBA8888_REV()
1652 dst[i][RCOMP] = (s[i] ) & 0xff; in unpack_ubyte_RGBA8888_REV()
1653 dst[i][GCOMP] = (s[i] >> 8) & 0xff; in unpack_ubyte_RGBA8888_REV()
1654 dst[i][BCOMP] = (s[i] >> 16) & 0xff; in unpack_ubyte_RGBA8888_REV()
1655 dst[i][ACOMP] = (s[i] >> 24); in unpack_ubyte_RGBA8888_REV()
1663 GLuint i; in unpack_ubyte_ARGB8888() local
1664 for (i = 0; i < n; i++) { in unpack_ubyte_ARGB8888()
1665 dst[i][RCOMP] = (s[i] >> 16) & 0xff; in unpack_ubyte_ARGB8888()
1666 dst[i][GCOMP] = (s[i] >> 8) & 0xff; in unpack_ubyte_ARGB8888()
1667 dst[i][BCOMP] = (s[i] ) & 0xff; in unpack_ubyte_ARGB8888()
1668 dst[i][ACOMP] = (s[i] >> 24); in unpack_ubyte_ARGB8888()
1676 GLuint i; in unpack_ubyte_ARGB8888_REV() local
1677 for (i = 0; i < n; i++) { in unpack_ubyte_ARGB8888_REV()
1678 dst[i][RCOMP] = (s[i] >> 8) & 0xff; in unpack_ubyte_ARGB8888_REV()
1679 dst[i][GCOMP] = (s[i] >> 16) & 0xff; in unpack_ubyte_ARGB8888_REV()
1680 dst[i][BCOMP] = (s[i] >> 24); in unpack_ubyte_ARGB8888_REV()
1681 dst[i][ACOMP] = (s[i] ) & 0xff; in unpack_ubyte_ARGB8888_REV()
1689 GLuint i; in unpack_ubyte_RGBX8888() local
1690 for (i = 0; i < n; i++) { in unpack_ubyte_RGBX8888()
1691 dst[i][RCOMP] = (s[i] >> 24); in unpack_ubyte_RGBX8888()
1692 dst[i][GCOMP] = (s[i] >> 16) & 0xff; in unpack_ubyte_RGBX8888()
1693 dst[i][BCOMP] = (s[i] >> 8) & 0xff; in unpack_ubyte_RGBX8888()
1694 dst[i][ACOMP] = 0xff; in unpack_ubyte_RGBX8888()
1702 GLuint i; in unpack_ubyte_RGBX8888_REV() local
1703 for (i = 0; i < n; i++) { in unpack_ubyte_RGBX8888_REV()
1704 dst[i][RCOMP] = (s[i] ) & 0xff; in unpack_ubyte_RGBX8888_REV()
1705 dst[i][GCOMP] = (s[i] >> 8) & 0xff; in unpack_ubyte_RGBX8888_REV()
1706 dst[i][BCOMP] = (s[i] >> 16) & 0xff; in unpack_ubyte_RGBX8888_REV()
1707 dst[i][ACOMP] = 0xff; in unpack_ubyte_RGBX8888_REV()
1715 GLuint i; in unpack_ubyte_XRGB8888() local
1716 for (i = 0; i < n; i++) { in unpack_ubyte_XRGB8888()
1717 dst[i][RCOMP] = (s[i] >> 16) & 0xff; in unpack_ubyte_XRGB8888()
1718 dst[i][GCOMP] = (s[i] >> 8) & 0xff; in unpack_ubyte_XRGB8888()
1719 dst[i][BCOMP] = (s[i] ) & 0xff; in unpack_ubyte_XRGB8888()
1720 dst[i][ACOMP] = 0xff; in unpack_ubyte_XRGB8888()
1728 GLuint i; in unpack_ubyte_XRGB8888_REV() local
1729 for (i = 0; i < n; i++) { in unpack_ubyte_XRGB8888_REV()
1730 dst[i][RCOMP] = (s[i] >> 8) & 0xff; in unpack_ubyte_XRGB8888_REV()
1731 dst[i][GCOMP] = (s[i] >> 16) & 0xff; in unpack_ubyte_XRGB8888_REV()
1732 dst[i][BCOMP] = (s[i] >> 24); in unpack_ubyte_XRGB8888_REV()
1733 dst[i][ACOMP] = 0xff; in unpack_ubyte_XRGB8888_REV()
1741 GLuint i; in unpack_ubyte_RGB888() local
1742 for (i = 0; i < n; i++) { in unpack_ubyte_RGB888()
1743 dst[i][RCOMP] = s[i*3+2]; in unpack_ubyte_RGB888()
1744 dst[i][GCOMP] = s[i*3+1]; in unpack_ubyte_RGB888()
1745 dst[i][BCOMP] = s[i*3+0]; in unpack_ubyte_RGB888()
1746 dst[i][ACOMP] = 0xff; in unpack_ubyte_RGB888()
1754 GLuint i; in unpack_ubyte_BGR888() local
1755 for (i = 0; i < n; i++) { in unpack_ubyte_BGR888()
1756 dst[i][RCOMP] = s[i*3+0]; in unpack_ubyte_BGR888()
1757 dst[i][GCOMP] = s[i*3+1]; in unpack_ubyte_BGR888()
1758 dst[i][BCOMP] = s[i*3+2]; in unpack_ubyte_BGR888()
1759 dst[i][ACOMP] = 0xff; in unpack_ubyte_BGR888()
1767 GLuint i; in unpack_ubyte_RGB565() local
1768 for (i = 0; i < n; i++) { in unpack_ubyte_RGB565()
1769 dst[i][RCOMP] = EXPAND_5_8((s[i] >> 11) & 0x1f); in unpack_ubyte_RGB565()
1770 dst[i][GCOMP] = EXPAND_6_8((s[i] >> 5 ) & 0x3f); in unpack_ubyte_RGB565()
1771 dst[i][BCOMP] = EXPAND_5_8( s[i] & 0x1f); in unpack_ubyte_RGB565()
1772 dst[i][ACOMP] = 0xff; in unpack_ubyte_RGB565()
1780 GLuint i; in unpack_ubyte_RGB565_REV() local
1781 for (i = 0; i < n; i++) { in unpack_ubyte_RGB565_REV()
1782 GLuint t = (s[i] >> 8) | (s[i] << 8); /* byte swap */ in unpack_ubyte_RGB565_REV()
1783 dst[i][RCOMP] = EXPAND_5_8((t >> 11) & 0x1f); in unpack_ubyte_RGB565_REV()
1784 dst[i][GCOMP] = EXPAND_6_8((t >> 5 ) & 0x3f); in unpack_ubyte_RGB565_REV()
1785 dst[i][BCOMP] = EXPAND_5_8( t & 0x1f); in unpack_ubyte_RGB565_REV()
1786 dst[i][ACOMP] = 0xff; in unpack_ubyte_RGB565_REV()
1794 GLuint i; in unpack_ubyte_ARGB4444() local
1795 for (i = 0; i < n; i++) { in unpack_ubyte_ARGB4444()
1796 dst[i][RCOMP] = EXPAND_4_8((s[i] >> 8) & 0xf); in unpack_ubyte_ARGB4444()
1797 dst[i][GCOMP] = EXPAND_4_8((s[i] >> 4) & 0xf); in unpack_ubyte_ARGB4444()
1798 dst[i][BCOMP] = EXPAND_4_8((s[i] ) & 0xf); in unpack_ubyte_ARGB4444()
1799 dst[i][ACOMP] = EXPAND_4_8((s[i] >> 12) & 0xf); in unpack_ubyte_ARGB4444()
1807 GLuint i; in unpack_ubyte_ARGB4444_REV() local
1808 for (i = 0; i < n; i++) { in unpack_ubyte_ARGB4444_REV()
1809 dst[i][RCOMP] = EXPAND_4_8((s[i] ) & 0xf); in unpack_ubyte_ARGB4444_REV()
1810 dst[i][GCOMP] = EXPAND_4_8((s[i] >> 12) & 0xf); in unpack_ubyte_ARGB4444_REV()
1811 dst[i][BCOMP] = EXPAND_4_8((s[i] >> 8) & 0xf); in unpack_ubyte_ARGB4444_REV()
1812 dst[i][ACOMP] = EXPAND_4_8((s[i] >> 4) & 0xf); in unpack_ubyte_ARGB4444_REV()
1820 GLuint i; in unpack_ubyte_RGBA5551() local
1821 for (i = 0; i < n; i++) { in unpack_ubyte_RGBA5551()
1822 dst[i][RCOMP] = EXPAND_5_8((s[i] >> 11) & 0x1f); in unpack_ubyte_RGBA5551()
1823 dst[i][GCOMP] = EXPAND_5_8((s[i] >> 6) & 0x1f); in unpack_ubyte_RGBA5551()
1824 dst[i][BCOMP] = EXPAND_5_8((s[i] >> 1) & 0x1f); in unpack_ubyte_RGBA5551()
1825 dst[i][ACOMP] = EXPAND_1_8((s[i] ) & 0x01); in unpack_ubyte_RGBA5551()
1833 GLuint i; in unpack_ubyte_ARGB1555() local
1834 for (i = 0; i < n; i++) { in unpack_ubyte_ARGB1555()
1835 dst[i][RCOMP] = EXPAND_5_8((s[i] >> 10) & 0x1f); in unpack_ubyte_ARGB1555()
1836 dst[i][GCOMP] = EXPAND_5_8((s[i] >> 5) & 0x1f); in unpack_ubyte_ARGB1555()
1837 dst[i][BCOMP] = EXPAND_5_8((s[i] >> 0) & 0x1f); in unpack_ubyte_ARGB1555()
1838 dst[i][ACOMP] = EXPAND_1_8((s[i] >> 15) & 0x01); in unpack_ubyte_ARGB1555()
1846 GLuint i; in unpack_ubyte_ARGB1555_REV() local
1847 for (i = 0; i < n; i++) { in unpack_ubyte_ARGB1555_REV()
1848 GLushort tmp = (s[i] << 8) | (s[i] >> 8); /* byteswap */ in unpack_ubyte_ARGB1555_REV()
1849 dst[i][RCOMP] = EXPAND_5_8((tmp >> 10) & 0x1f); in unpack_ubyte_ARGB1555_REV()
1850 dst[i][GCOMP] = EXPAND_5_8((tmp >> 5) & 0x1f); in unpack_ubyte_ARGB1555_REV()
1851 dst[i][BCOMP] = EXPAND_5_8((tmp >> 0) & 0x1f); in unpack_ubyte_ARGB1555_REV()
1852 dst[i][ACOMP] = EXPAND_1_8((tmp >> 15) & 0x01); in unpack_ubyte_ARGB1555_REV()
1860 GLuint i; in unpack_ubyte_AL44() local
1861 for (i = 0; i < n; i++) { in unpack_ubyte_AL44()
1862 dst[i][RCOMP] = in unpack_ubyte_AL44()
1863 dst[i][GCOMP] = in unpack_ubyte_AL44()
1864 dst[i][BCOMP] = EXPAND_4_8(s[i] & 0xf); in unpack_ubyte_AL44()
1865 dst[i][ACOMP] = EXPAND_4_8(s[i] >> 4); in unpack_ubyte_AL44()
1873 GLuint i; in unpack_ubyte_AL88() local
1874 for (i = 0; i < n; i++) { in unpack_ubyte_AL88()
1875 dst[i][RCOMP] = in unpack_ubyte_AL88()
1876 dst[i][GCOMP] = in unpack_ubyte_AL88()
1877 dst[i][BCOMP] = EXPAND_4_8(s[i] & 0xff); in unpack_ubyte_AL88()
1878 dst[i][ACOMP] = EXPAND_4_8(s[i] >> 8); in unpack_ubyte_AL88()
1886 GLuint i; in unpack_ubyte_AL88_REV() local
1887 for (i = 0; i < n; i++) { in unpack_ubyte_AL88_REV()
1888 dst[i][RCOMP] = in unpack_ubyte_AL88_REV()
1889 dst[i][GCOMP] = in unpack_ubyte_AL88_REV()
1890 dst[i][BCOMP] = EXPAND_4_8(s[i] >> 8); in unpack_ubyte_AL88_REV()
1891 dst[i][ACOMP] = EXPAND_4_8(s[i] & 0xff); in unpack_ubyte_AL88_REV()
1899 GLuint i; in unpack_ubyte_RGB332() local
1900 for (i = 0; i < n; i++) { in unpack_ubyte_RGB332()
1901 dst[i][RCOMP] = EXPAND_3_8((s[i] >> 5) & 0x7); in unpack_ubyte_RGB332()
1902 dst[i][GCOMP] = EXPAND_3_8((s[i] >> 2) & 0x7); in unpack_ubyte_RGB332()
1903 dst[i][BCOMP] = EXPAND_2_8((s[i] ) & 0x3); in unpack_ubyte_RGB332()
1904 dst[i][ACOMP] = 0xff; in unpack_ubyte_RGB332()
1912 GLuint i; in unpack_ubyte_A8() local
1913 for (i = 0; i < n; i++) { in unpack_ubyte_A8()
1914 dst[i][RCOMP] = in unpack_ubyte_A8()
1915 dst[i][GCOMP] = in unpack_ubyte_A8()
1916 dst[i][BCOMP] = 0; in unpack_ubyte_A8()
1917 dst[i][ACOMP] = s[i]; in unpack_ubyte_A8()
1925 GLuint i; in unpack_ubyte_L8() local
1926 for (i = 0; i < n; i++) { in unpack_ubyte_L8()
1927 dst[i][RCOMP] = in unpack_ubyte_L8()
1928 dst[i][GCOMP] = in unpack_ubyte_L8()
1929 dst[i][BCOMP] = s[i]; in unpack_ubyte_L8()
1930 dst[i][ACOMP] = 0xff; in unpack_ubyte_L8()
1939 GLuint i; in unpack_ubyte_I8() local
1940 for (i = 0; i < n; i++) { in unpack_ubyte_I8()
1941 dst[i][RCOMP] = in unpack_ubyte_I8()
1942 dst[i][GCOMP] = in unpack_ubyte_I8()
1943 dst[i][BCOMP] = in unpack_ubyte_I8()
1944 dst[i][ACOMP] = s[i]; in unpack_ubyte_I8()
1952 GLuint i; in unpack_ubyte_R8() local
1953 for (i = 0; i < n; i++) { in unpack_ubyte_R8()
1954 dst[i][0] = s[i]; in unpack_ubyte_R8()
1955 dst[i][1] = in unpack_ubyte_R8()
1956 dst[i][2] = 0; in unpack_ubyte_R8()
1957 dst[i][3] = 0xff; in unpack_ubyte_R8()
1965 GLuint i; in unpack_ubyte_GR88() local
1966 for (i = 0; i < n; i++) { in unpack_ubyte_GR88()
1967 dst[i][RCOMP] = s[i] & 0xff; in unpack_ubyte_GR88()
1968 dst[i][GCOMP] = s[i] >> 8; in unpack_ubyte_GR88()
1969 dst[i][BCOMP] = 0; in unpack_ubyte_GR88()
1970 dst[i][ACOMP] = 0xff; in unpack_ubyte_GR88()
1978 GLuint i; in unpack_ubyte_RG88() local
1979 for (i = 0; i < n; i++) { in unpack_ubyte_RG88()
1980 dst[i][RCOMP] = s[i] >> 8; in unpack_ubyte_RG88()
1981 dst[i][GCOMP] = s[i] & 0xff; in unpack_ubyte_RG88()
1982 dst[i][BCOMP] = 0; in unpack_ubyte_RG88()
1983 dst[i][ACOMP] = 0xff; in unpack_ubyte_RG88()
2083 GLuint i; in _mesa_unpack_ubyte_rgba_row() local
2085 for (i = 0; i < n; i++) { in _mesa_unpack_ubyte_rgba_row()
2086 UNCLAMPED_FLOAT_TO_UBYTE(dst[i][0], tmp[i*4+0]); in _mesa_unpack_ubyte_rgba_row()
2087 UNCLAMPED_FLOAT_TO_UBYTE(dst[i][1], tmp[i*4+1]); in _mesa_unpack_ubyte_rgba_row()
2088 UNCLAMPED_FLOAT_TO_UBYTE(dst[i][2], tmp[i*4+2]); in _mesa_unpack_ubyte_rgba_row()
2089 UNCLAMPED_FLOAT_TO_UBYTE(dst[i][3], tmp[i*4+3]); in _mesa_unpack_ubyte_rgba_row()
2112 unsigned int i; in unpack_int_rgba_RGBA_UINT16() local
2114 for (i = 0; i < n; i++) { in unpack_int_rgba_RGBA_UINT16()
2115 dst[i][0] = src[i * 4 + 0]; in unpack_int_rgba_RGBA_UINT16()
2116 dst[i][1] = src[i * 4 + 1]; in unpack_int_rgba_RGBA_UINT16()
2117 dst[i][2] = src[i * 4 + 2]; in unpack_int_rgba_RGBA_UINT16()
2118 dst[i][3] = src[i * 4 + 3]; in unpack_int_rgba_RGBA_UINT16()
2125 unsigned int i; in unpack_int_rgba_RGBA_INT16() local
2127 for (i = 0; i < n; i++) { in unpack_int_rgba_RGBA_INT16()
2128 dst[i][0] = src[i * 4 + 0]; in unpack_int_rgba_RGBA_INT16()
2129 dst[i][1] = src[i * 4 + 1]; in unpack_int_rgba_RGBA_INT16()
2130 dst[i][2] = src[i * 4 + 2]; in unpack_int_rgba_RGBA_INT16()
2131 dst[i][3] = src[i * 4 + 3]; in unpack_int_rgba_RGBA_INT16()
2138 unsigned int i; in unpack_int_rgba_RGBA_UINT8() local
2140 for (i = 0; i < n; i++) { in unpack_int_rgba_RGBA_UINT8()
2141 dst[i][0] = src[i * 4 + 0]; in unpack_int_rgba_RGBA_UINT8()
2142 dst[i][1] = src[i * 4 + 1]; in unpack_int_rgba_RGBA_UINT8()
2143 dst[i][2] = src[i * 4 + 2]; in unpack_int_rgba_RGBA_UINT8()
2144 dst[i][3] = src[i * 4 + 3]; in unpack_int_rgba_RGBA_UINT8()
2151 unsigned int i; in unpack_int_rgba_RGBA_INT8() local
2153 for (i = 0; i < n; i++) { in unpack_int_rgba_RGBA_INT8()
2154 dst[i][0] = src[i * 4 + 0]; in unpack_int_rgba_RGBA_INT8()
2155 dst[i][1] = src[i * 4 + 1]; in unpack_int_rgba_RGBA_INT8()
2156 dst[i][2] = src[i * 4 + 2]; in unpack_int_rgba_RGBA_INT8()
2157 dst[i][3] = src[i * 4 + 3]; in unpack_int_rgba_RGBA_INT8()
2164 unsigned int i; in unpack_int_rgba_ARGB8888() local
2166 for (i = 0; i < n; i++) { in unpack_int_rgba_ARGB8888()
2167 dst[i][RCOMP] = (GLubyte) src[i * 4 + 2]; in unpack_int_rgba_ARGB8888()
2168 dst[i][GCOMP] = (GLubyte) src[i * 4 + 1]; in unpack_int_rgba_ARGB8888()
2169 dst[i][BCOMP] = (GLubyte) src[i * 4 + 0]; in unpack_int_rgba_ARGB8888()
2170 dst[i][ACOMP] = (GLubyte) src[i * 4 + 3]; in unpack_int_rgba_ARGB8888()
2177 unsigned int i; in unpack_int_rgba_XRGB8888() local
2179 for (i = 0; i < n; i++) { in unpack_int_rgba_XRGB8888()
2180 dst[i][RCOMP] = (GLubyte) src[i * 4 + 2]; in unpack_int_rgba_XRGB8888()
2181 dst[i][GCOMP] = (GLubyte) src[i * 4 + 1]; in unpack_int_rgba_XRGB8888()
2182 dst[i][BCOMP] = (GLubyte) src[i * 4 + 0]; in unpack_int_rgba_XRGB8888()
2183 dst[i][ACOMP] = (GLubyte) 0xff; in unpack_int_rgba_XRGB8888()
2190 unsigned int i; in unpack_int_rgba_RGB_UINT32() local
2192 for (i = 0; i < n; i++) { in unpack_int_rgba_RGB_UINT32()
2193 dst[i][0] = src[i * 3 + 0]; in unpack_int_rgba_RGB_UINT32()
2194 dst[i][1] = src[i * 3 + 1]; in unpack_int_rgba_RGB_UINT32()
2195 dst[i][2] = src[i * 3 + 2]; in unpack_int_rgba_RGB_UINT32()
2196 dst[i][3] = 1; in unpack_int_rgba_RGB_UINT32()
2203 unsigned int i; in unpack_int_rgba_RGB_UINT16() local
2205 for (i = 0; i < n; i++) { in unpack_int_rgba_RGB_UINT16()
2206 dst[i][0] = src[i * 3 + 0]; in unpack_int_rgba_RGB_UINT16()
2207 dst[i][1] = src[i * 3 + 1]; in unpack_int_rgba_RGB_UINT16()
2208 dst[i][2] = src[i * 3 + 2]; in unpack_int_rgba_RGB_UINT16()
2209 dst[i][3] = 1; in unpack_int_rgba_RGB_UINT16()
2216 unsigned int i; in unpack_int_rgba_RGB_INT16() local
2218 for (i = 0; i < n; i++) { in unpack_int_rgba_RGB_INT16()
2219 dst[i][0] = src[i * 3 + 0]; in unpack_int_rgba_RGB_INT16()
2220 dst[i][1] = src[i * 3 + 1]; in unpack_int_rgba_RGB_INT16()
2221 dst[i][2] = src[i * 3 + 2]; in unpack_int_rgba_RGB_INT16()
2222 dst[i][3] = 1; in unpack_int_rgba_RGB_INT16()
2229 unsigned int i; in unpack_int_rgba_RGB_UINT8() local
2231 for (i = 0; i < n; i++) { in unpack_int_rgba_RGB_UINT8()
2232 dst[i][0] = src[i * 3 + 0]; in unpack_int_rgba_RGB_UINT8()
2233 dst[i][1] = src[i * 3 + 1]; in unpack_int_rgba_RGB_UINT8()
2234 dst[i][2] = src[i * 3 + 2]; in unpack_int_rgba_RGB_UINT8()
2235 dst[i][3] = 1; in unpack_int_rgba_RGB_UINT8()
2242 unsigned int i; in unpack_int_rgba_RGB_INT8() local
2244 for (i = 0; i < n; i++) { in unpack_int_rgba_RGB_INT8()
2245 dst[i][0] = src[i * 3 + 0]; in unpack_int_rgba_RGB_INT8()
2246 dst[i][1] = src[i * 3 + 1]; in unpack_int_rgba_RGB_INT8()
2247 dst[i][2] = src[i * 3 + 2]; in unpack_int_rgba_RGB_INT8()
2248 dst[i][3] = 1; in unpack_int_rgba_RGB_INT8()
2255 unsigned int i; in unpack_int_rgba_RG_UINT32() local
2257 for (i = 0; i < n; i++) { in unpack_int_rgba_RG_UINT32()
2258 dst[i][0] = src[i * 2 + 0]; in unpack_int_rgba_RG_UINT32()
2259 dst[i][1] = src[i * 2 + 1]; in unpack_int_rgba_RG_UINT32()
2260 dst[i][2] = 0; in unpack_int_rgba_RG_UINT32()
2261 dst[i][3] = 1; in unpack_int_rgba_RG_UINT32()
2268 unsigned int i; in unpack_int_rgba_RG_UINT16() local
2270 for (i = 0; i < n; i++) { in unpack_int_rgba_RG_UINT16()
2271 dst[i][0] = src[i * 2 + 0]; in unpack_int_rgba_RG_UINT16()
2272 dst[i][1] = src[i * 2 + 1]; in unpack_int_rgba_RG_UINT16()
2273 dst[i][2] = 0; in unpack_int_rgba_RG_UINT16()
2274 dst[i][3] = 1; in unpack_int_rgba_RG_UINT16()
2281 unsigned int i; in unpack_int_rgba_RG_INT16() local
2283 for (i = 0; i < n; i++) { in unpack_int_rgba_RG_INT16()
2284 dst[i][0] = src[i * 2 + 0]; in unpack_int_rgba_RG_INT16()
2285 dst[i][1] = src[i * 2 + 1]; in unpack_int_rgba_RG_INT16()
2286 dst[i][2] = 0; in unpack_int_rgba_RG_INT16()
2287 dst[i][3] = 1; in unpack_int_rgba_RG_INT16()
2294 unsigned int i; in unpack_int_rgba_RG_UINT8() local
2296 for (i = 0; i < n; i++) { in unpack_int_rgba_RG_UINT8()
2297 dst[i][0] = src[i * 2 + 0]; in unpack_int_rgba_RG_UINT8()
2298 dst[i][1] = src[i * 2 + 1]; in unpack_int_rgba_RG_UINT8()
2299 dst[i][2] = 0; in unpack_int_rgba_RG_UINT8()
2300 dst[i][3] = 1; in unpack_int_rgba_RG_UINT8()
2307 unsigned int i; in unpack_int_rgba_RG_INT8() local
2309 for (i = 0; i < n; i++) { in unpack_int_rgba_RG_INT8()
2310 dst[i][0] = src[i * 2 + 0]; in unpack_int_rgba_RG_INT8()
2311 dst[i][1] = src[i * 2 + 1]; in unpack_int_rgba_RG_INT8()
2312 dst[i][2] = 0; in unpack_int_rgba_RG_INT8()
2313 dst[i][3] = 1; in unpack_int_rgba_RG_INT8()
2320 unsigned int i; in unpack_int_rgba_R_UINT32() local
2322 for (i = 0; i < n; i++) { in unpack_int_rgba_R_UINT32()
2323 dst[i][0] = src[i]; in unpack_int_rgba_R_UINT32()
2324 dst[i][1] = 0; in unpack_int_rgba_R_UINT32()
2325 dst[i][2] = 0; in unpack_int_rgba_R_UINT32()
2326 dst[i][3] = 1; in unpack_int_rgba_R_UINT32()
2333 unsigned int i; in unpack_int_rgba_R_UINT16() local
2335 for (i = 0; i < n; i++) { in unpack_int_rgba_R_UINT16()
2336 dst[i][0] = src[i]; in unpack_int_rgba_R_UINT16()
2337 dst[i][1] = 0; in unpack_int_rgba_R_UINT16()
2338 dst[i][2] = 0; in unpack_int_rgba_R_UINT16()
2339 dst[i][3] = 1; in unpack_int_rgba_R_UINT16()
2346 unsigned int i; in unpack_int_rgba_R_INT16() local
2348 for (i = 0; i < n; i++) { in unpack_int_rgba_R_INT16()
2349 dst[i][0] = src[i]; in unpack_int_rgba_R_INT16()
2350 dst[i][1] = 0; in unpack_int_rgba_R_INT16()
2351 dst[i][2] = 0; in unpack_int_rgba_R_INT16()
2352 dst[i][3] = 1; in unpack_int_rgba_R_INT16()
2359 unsigned int i; in unpack_int_rgba_R_UINT8() local
2361 for (i = 0; i < n; i++) { in unpack_int_rgba_R_UINT8()
2362 dst[i][0] = src[i]; in unpack_int_rgba_R_UINT8()
2363 dst[i][1] = 0; in unpack_int_rgba_R_UINT8()
2364 dst[i][2] = 0; in unpack_int_rgba_R_UINT8()
2365 dst[i][3] = 1; in unpack_int_rgba_R_UINT8()
2372 unsigned int i; in unpack_int_rgba_R_INT8() local
2374 for (i = 0; i < n; i++) { in unpack_int_rgba_R_INT8()
2375 dst[i][0] = src[i]; in unpack_int_rgba_R_INT8()
2376 dst[i][1] = 0; in unpack_int_rgba_R_INT8()
2377 dst[i][2] = 0; in unpack_int_rgba_R_INT8()
2378 dst[i][3] = 1; in unpack_int_rgba_R_INT8()
2385 unsigned int i; in unpack_int_rgba_ALPHA_UINT32() local
2387 for (i = 0; i < n; i++) { in unpack_int_rgba_ALPHA_UINT32()
2388 dst[i][0] = dst[i][1] = dst[i][2] = 0; in unpack_int_rgba_ALPHA_UINT32()
2389 dst[i][3] = src[i]; in unpack_int_rgba_ALPHA_UINT32()
2396 unsigned int i; in unpack_int_rgba_ALPHA_UINT16() local
2398 for (i = 0; i < n; i++) { in unpack_int_rgba_ALPHA_UINT16()
2399 dst[i][0] = dst[i][1] = dst[i][2] = 0; in unpack_int_rgba_ALPHA_UINT16()
2400 dst[i][3] = src[i]; in unpack_int_rgba_ALPHA_UINT16()
2407 unsigned int i; in unpack_int_rgba_ALPHA_INT16() local
2409 for (i = 0; i < n; i++) { in unpack_int_rgba_ALPHA_INT16()
2410 dst[i][0] = dst[i][1] = dst[i][2] = 0; in unpack_int_rgba_ALPHA_INT16()
2411 dst[i][3] = src[i]; in unpack_int_rgba_ALPHA_INT16()
2418 unsigned int i; in unpack_int_rgba_ALPHA_UINT8() local
2420 for (i = 0; i < n; i++) { in unpack_int_rgba_ALPHA_UINT8()
2421 dst[i][0] = dst[i][1] = dst[i][2] = 0; in unpack_int_rgba_ALPHA_UINT8()
2422 dst[i][3] = src[i]; in unpack_int_rgba_ALPHA_UINT8()
2429 unsigned int i; in unpack_int_rgba_ALPHA_INT8() local
2431 for (i = 0; i < n; i++) { in unpack_int_rgba_ALPHA_INT8()
2432 dst[i][0] = dst[i][1] = dst[i][2] = 0; in unpack_int_rgba_ALPHA_INT8()
2433 dst[i][3] = src[i]; in unpack_int_rgba_ALPHA_INT8()
2440 unsigned int i; in unpack_int_rgba_LUMINANCE_UINT32() local
2442 for (i = 0; i < n; i++) { in unpack_int_rgba_LUMINANCE_UINT32()
2443 dst[i][0] = dst[i][1] = dst[i][2] = src[i]; in unpack_int_rgba_LUMINANCE_UINT32()
2444 dst[i][3] = 1; in unpack_int_rgba_LUMINANCE_UINT32()
2451 unsigned int i; in unpack_int_rgba_LUMINANCE_UINT16() local
2453 for (i = 0; i < n; i++) { in unpack_int_rgba_LUMINANCE_UINT16()
2454 dst[i][0] = dst[i][1] = dst[i][2] = src[i]; in unpack_int_rgba_LUMINANCE_UINT16()
2455 dst[i][3] = 1; in unpack_int_rgba_LUMINANCE_UINT16()
2462 unsigned int i; in unpack_int_rgba_LUMINANCE_INT16() local
2464 for (i = 0; i < n; i++) { in unpack_int_rgba_LUMINANCE_INT16()
2465 dst[i][0] = dst[i][1] = dst[i][2] = src[i]; in unpack_int_rgba_LUMINANCE_INT16()
2466 dst[i][3] = 1; in unpack_int_rgba_LUMINANCE_INT16()
2473 unsigned int i; in unpack_int_rgba_LUMINANCE_UINT8() local
2475 for (i = 0; i < n; i++) { in unpack_int_rgba_LUMINANCE_UINT8()
2476 dst[i][0] = dst[i][1] = dst[i][2] = src[i]; in unpack_int_rgba_LUMINANCE_UINT8()
2477 dst[i][3] = 1; in unpack_int_rgba_LUMINANCE_UINT8()
2484 unsigned int i; in unpack_int_rgba_LUMINANCE_INT8() local
2486 for (i = 0; i < n; i++) { in unpack_int_rgba_LUMINANCE_INT8()
2487 dst[i][0] = dst[i][1] = dst[i][2] = src[i]; in unpack_int_rgba_LUMINANCE_INT8()
2488 dst[i][3] = 1; in unpack_int_rgba_LUMINANCE_INT8()
2496 unsigned int i; in unpack_int_rgba_LUMINANCE_ALPHA_UINT32() local
2498 for (i = 0; i < n; i++) { in unpack_int_rgba_LUMINANCE_ALPHA_UINT32()
2499 dst[i][0] = dst[i][1] = dst[i][2] = src[i * 2 + 0]; in unpack_int_rgba_LUMINANCE_ALPHA_UINT32()
2500 dst[i][3] = src[i * 2 + 1]; in unpack_int_rgba_LUMINANCE_ALPHA_UINT32()
2507 unsigned int i; in unpack_int_rgba_LUMINANCE_ALPHA_UINT16() local
2509 for (i = 0; i < n; i++) { in unpack_int_rgba_LUMINANCE_ALPHA_UINT16()
2510 dst[i][0] = dst[i][1] = dst[i][2] = src[i * 2 + 0]; in unpack_int_rgba_LUMINANCE_ALPHA_UINT16()
2511 dst[i][3] = src[i * 2 + 1]; in unpack_int_rgba_LUMINANCE_ALPHA_UINT16()
2518 unsigned int i; in unpack_int_rgba_LUMINANCE_ALPHA_INT16() local
2520 for (i = 0; i < n; i++) { in unpack_int_rgba_LUMINANCE_ALPHA_INT16()
2521 dst[i][0] = dst[i][1] = dst[i][2] = src[i * 2 + 0]; in unpack_int_rgba_LUMINANCE_ALPHA_INT16()
2522 dst[i][3] = src[i * 2 + 1]; in unpack_int_rgba_LUMINANCE_ALPHA_INT16()
2529 unsigned int i; in unpack_int_rgba_LUMINANCE_ALPHA_UINT8() local
2531 for (i = 0; i < n; i++) { in unpack_int_rgba_LUMINANCE_ALPHA_UINT8()
2532 dst[i][0] = dst[i][1] = dst[i][2] = src[i * 2 + 0]; in unpack_int_rgba_LUMINANCE_ALPHA_UINT8()
2533 dst[i][3] = src[i * 2 + 1]; in unpack_int_rgba_LUMINANCE_ALPHA_UINT8()
2540 unsigned int i; in unpack_int_rgba_LUMINANCE_ALPHA_INT8() local
2542 for (i = 0; i < n; i++) { in unpack_int_rgba_LUMINANCE_ALPHA_INT8()
2543 dst[i][0] = dst[i][1] = dst[i][2] = src[i * 2 + 0]; in unpack_int_rgba_LUMINANCE_ALPHA_INT8()
2544 dst[i][3] = src[i * 2 + 1]; in unpack_int_rgba_LUMINANCE_ALPHA_INT8()
2551 unsigned int i; in unpack_int_rgba_INTENSITY_UINT32() local
2553 for (i = 0; i < n; i++) { in unpack_int_rgba_INTENSITY_UINT32()
2554 dst[i][0] = dst[i][1] = dst[i][2] = dst[i][3] = src[i]; in unpack_int_rgba_INTENSITY_UINT32()
2561 unsigned int i; in unpack_int_rgba_INTENSITY_UINT16() local
2563 for (i = 0; i < n; i++) { in unpack_int_rgba_INTENSITY_UINT16()
2564 dst[i][0] = dst[i][1] = dst[i][2] = dst[i][3] = src[i]; in unpack_int_rgba_INTENSITY_UINT16()
2571 unsigned int i; in unpack_int_rgba_INTENSITY_INT16() local
2573 for (i = 0; i < n; i++) { in unpack_int_rgba_INTENSITY_INT16()
2574 dst[i][0] = dst[i][1] = dst[i][2] = dst[i][3] = src[i]; in unpack_int_rgba_INTENSITY_INT16()
2581 unsigned int i; in unpack_int_rgba_INTENSITY_UINT8() local
2583 for (i = 0; i < n; i++) { in unpack_int_rgba_INTENSITY_UINT8()
2584 dst[i][0] = dst[i][1] = dst[i][2] = dst[i][3] = src[i]; in unpack_int_rgba_INTENSITY_UINT8()
2591 unsigned int i; in unpack_int_rgba_INTENSITY_INT8() local
2593 for (i = 0; i < n; i++) { in unpack_int_rgba_INTENSITY_INT8()
2594 dst[i][0] = dst[i][1] = dst[i][2] = dst[i][3] = src[i]; in unpack_int_rgba_INTENSITY_INT8()
2601 unsigned int i; in unpack_int_rgba_ARGB2101010_UINT() local
2603 for (i = 0; i < n; i++) { in unpack_int_rgba_ARGB2101010_UINT()
2604 GLuint tmp = src[i]; in unpack_int_rgba_ARGB2101010_UINT()
2605 dst[i][0] = (tmp >> 20) & 0x3ff; in unpack_int_rgba_ARGB2101010_UINT()
2606 dst[i][1] = (tmp >> 10) & 0x3ff; in unpack_int_rgba_ARGB2101010_UINT()
2607 dst[i][2] = (tmp >> 0) & 0x3ff; in unpack_int_rgba_ARGB2101010_UINT()
2608 dst[i][3] = (tmp >> 30) & 0x3; in unpack_int_rgba_ARGB2101010_UINT()
2615 unsigned int i; in unpack_int_rgba_ABGR2101010_UINT() local
2617 for (i = 0; i < n; i++) { in unpack_int_rgba_ABGR2101010_UINT()
2618 GLuint tmp = src[i]; in unpack_int_rgba_ABGR2101010_UINT()
2619 dst[i][0] = (tmp >> 0) & 0x3ff; in unpack_int_rgba_ABGR2101010_UINT()
2620 dst[i][1] = (tmp >> 10) & 0x3ff; in unpack_int_rgba_ABGR2101010_UINT()
2621 dst[i][2] = (tmp >> 20) & 0x3ff; in unpack_int_rgba_ABGR2101010_UINT()
2622 dst[i][3] = (tmp >> 30) & 0x3; in unpack_int_rgba_ABGR2101010_UINT()
2629 unsigned int i; in unpack_int_rgba_ARGB2101010() local
2631 for (i = 0; i < n; i++) { in unpack_int_rgba_ARGB2101010()
2632 GLuint tmp = src[i]; in unpack_int_rgba_ARGB2101010()
2633 dst[i][0] = (tmp >> 20) & 0x3ff; in unpack_int_rgba_ARGB2101010()
2634 dst[i][1] = (tmp >> 10) & 0x3ff; in unpack_int_rgba_ARGB2101010()
2635 dst[i][2] = (tmp >> 0) & 0x3ff; in unpack_int_rgba_ARGB2101010()
2636 dst[i][3] = (tmp >> 30) & 0x3; in unpack_int_rgba_ARGB2101010()
2849 GLuint i; in _mesa_unpack_rgba_block() local
2856 for (i = 0; i < height; i++) { in _mesa_unpack_rgba_block()
2875 GLuint i; in unpack_float_z_Z24_X8() local
2876 for (i = 0; i < n; i++) { in unpack_float_z_Z24_X8()
2877 dst[i] = (s[i] >> 8) * scale; in unpack_float_z_Z24_X8()
2878 ASSERT(dst[i] >= 0.0F); in unpack_float_z_Z24_X8()
2879 ASSERT(dst[i] <= 1.0F); in unpack_float_z_Z24_X8()
2889 GLuint i; in unpack_float_z_X8_Z24() local
2890 for (i = 0; i < n; i++) { in unpack_float_z_X8_Z24()
2891 dst[i] = (s[i] & 0x00ffffff) * scale; in unpack_float_z_X8_Z24()
2892 ASSERT(dst[i] >= 0.0F); in unpack_float_z_X8_Z24()
2893 ASSERT(dst[i] <= 1.0F); in unpack_float_z_X8_Z24()
2901 GLuint i; in unpack_float_z_Z16() local
2902 for (i = 0; i < n; i++) { in unpack_float_z_Z16()
2903 dst[i] = s[i] * (1.0F / 65535.0F); in unpack_float_z_Z16()
2911 GLuint i; in unpack_float_z_Z32() local
2912 for (i = 0; i < n; i++) { in unpack_float_z_Z32()
2913 dst[i] = s[i] * (1.0F / 0xffffffff); in unpack_float_z_Z32()
2927 GLuint i; in unpack_float_z_Z32X24S8() local
2928 for (i = 0; i < n; i++) { in unpack_float_z_Z32X24S8()
2929 dst[i] = s[i].z; in unpack_float_z_Z32X24S8()
2984 GLuint i; in unpack_uint_z_Z24_X8() local
2985 for (i = 0; i < n; i++) { in unpack_uint_z_Z24_X8()
2986 dst[i] = (s[i] & 0xffffff00) | (s[i] >> 24); in unpack_uint_z_Z24_X8()
2995 GLuint i; in unpack_uint_z_X8_Z24() local
2996 for (i = 0; i < n; i++) { in unpack_uint_z_X8_Z24()
2997 dst[i] = (s[i] << 8) | ((s[i] >> 16) & 0xff); in unpack_uint_z_X8_Z24()
3005 GLuint i; in unpack_uint_z_Z16() local
3006 for (i = 0; i < n; i++) { in unpack_uint_z_Z16()
3007 dst[i] = (s[i] << 16) | s[i]; in unpack_uint_z_Z16()
3021 GLuint i; in unpack_uint_z_Z32_FLOAT() local
3022 for (i = 0; i < n; i++) { in unpack_uint_z_Z32_FLOAT()
3023 dst[i] = FLOAT_TO_UINT(CLAMP(s[i], 0.0F, 1.0F)); in unpack_uint_z_Z32_FLOAT()
3031 GLuint i; in unpack_uint_z_Z32_FLOAT_X24S8() local
3033 for (i = 0; i < n; i++) { in unpack_uint_z_Z32_FLOAT_X24S8()
3034 dst[i] = FLOAT_TO_UINT(CLAMP(s[i].z, 0.0F, 1.0F)); in unpack_uint_z_Z32_FLOAT_X24S8()
3090 GLuint i; in unpack_ubyte_s_Z24_S8() local
3093 for (i = 0; i < n; i++) in unpack_ubyte_s_Z24_S8()
3094 dst[i] = src32[i] & 0xff; in unpack_ubyte_s_Z24_S8()
3100 GLuint i; in unpack_ubyte_s_S8_Z24() local
3103 for (i = 0; i < n; i++) in unpack_ubyte_s_S8_Z24()
3104 dst[i] = src32[i] >> 24; in unpack_ubyte_s_S8_Z24()
3110 GLuint i; in unpack_ubyte_s_Z32_FLOAT_X24S8() local
3113 for (i = 0; i < n; i++) in unpack_ubyte_s_Z32_FLOAT_X24S8()
3114 dst[i] = s[i].x24s8 & 0xff; in unpack_ubyte_s_Z32_FLOAT_X24S8()
3144 GLuint i; in unpack_uint_24_8_depth_stencil_S8_Z24() local
3146 for (i = 0; i < n; i++) { in unpack_uint_24_8_depth_stencil_S8_Z24()
3147 GLuint val = src[i]; in unpack_uint_24_8_depth_stencil_S8_Z24()
3148 dst[i] = val >> 24 | val << 8; in unpack_uint_24_8_depth_stencil_S8_Z24()