Lines Matching defs:tmpRow

237  * Pack src pixel data into tmpRow array as either GLfloat[][1] or
242 GLsizei width, GLfloat *tmpRow)
258 tmpRow[i] = (GLfloat) bSrc[i];
262 tmpRow[i] = (GLfloat) ubSrc[i];
266 tmpRow[i] = (GLfloat) sSrc[i];
270 tmpRow[i] = (GLfloat) usSrc[i];
274 tmpRow[i] = (GLfloat) iSrc[i];
278 tmpRow[i] = (GLfloat) uiSrc[i];
282 tmpRow[i] = fSrc[i];
286 tmpRow[i] = (GLfloat) dSrc[i];
296 tmpRow[i] = (GLfloat) BYTE_TO_FLOAT(bSrc[i]);
300 tmpRow[i] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i]);
304 tmpRow[i] = (GLfloat) SHORT_TO_FLOAT(sSrc[i]);
308 tmpRow[i] = (GLfloat) USHORT_TO_FLOAT(usSrc[i]);
312 tmpRow[i] = (GLfloat) INT_TO_FLOAT(bSrc[i]);
316 tmpRow[i] = (GLfloat) UINT_TO_FLOAT(bSrc[i]);
320 tmpRow[i] = fSrc[i];
324 tmpRow[i] = (GLfloat) dSrc[i];
342 tmpRow[i*4+0] = 0.0;
343 tmpRow[i*4+1] = 0.0;
344 tmpRow[i*4+2] = 0.0;
345 tmpRow[i*4+3] = 1.0;
350 tmpRow[dst] = (GLfloat) BYTE_TO_FLOAT(bSrc[i]);
354 tmpRow[dst] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i]);
358 tmpRow[dst] = (GLfloat) SHORT_TO_FLOAT(sSrc[i]);
362 tmpRow[dst] = (GLfloat) USHORT_TO_FLOAT(usSrc[i]);
366 tmpRow[dst] = (GLfloat) INT_TO_FLOAT(iSrc[i]);
370 tmpRow[dst] = (GLfloat) UINT_TO_FLOAT(uiSrc[i]);
374 tmpRow[dst] = fSrc[i];
378 tmpRow[dst] = (GLfloat) fSrc[i];
393 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
395 tmpRow[i*4+3] = 1.0;
400 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
402 tmpRow[i*4+3] = 1.0;
407 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
409 tmpRow[i*4+3] = 1.0;
414 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
416 tmpRow[i*4+3] = 1.0;
421 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
423 tmpRow[i*4+3] = 1.0;
428 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
430 tmpRow[i*4+3] = 1.0;
435 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = fSrc[i];
436 tmpRow[i*4+3] = 1.0;
441 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = (GLfloat) dSrc[i];
442 tmpRow[i*4+3] = 1.0;
453 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = tmpRow[i*4+3]
458 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = tmpRow[i*4+3]
463 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = tmpRow[i*4+3]
468 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = tmpRow[i*4+3]
473 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = tmpRow[i*4+3]
478 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = tmpRow[i*4+3]
483 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = tmpRow[i*4+3]
488 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = tmpRow[i*4+3]
504 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
506 tmpRow[i*4+3] = (GLfloat) BYTE_TO_FLOAT(bSrc[i*2+1]);
511 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
513 tmpRow[i*4+3] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i*2+1]);
518 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
520 tmpRow[i*4+3] = (GLfloat) SHORT_TO_FLOAT(sSrc[i*2+1]);
525 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
527 tmpRow[i*4+3] = (GLfloat) USHORT_TO_FLOAT(usSrc[i*2+1]);
532 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
534 tmpRow[i*4+3] = (GLfloat) INT_TO_FLOAT(iSrc[i*2+1]);
539 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
541 tmpRow[i*4+3] = (GLfloat) UINT_TO_FLOAT(uiSrc[i*2+1]);
546 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = fSrc[i*2+0];
547 tmpRow[i*4+3] = fSrc[i*2+1];
552 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2]
554 tmpRow[i*4+3] = (GLfloat) dSrc[i*2+1];
585 tmpRow[i*4+0] = (GLfloat) BYTE_TO_FLOAT(bSrc[i*3+r]);
586 tmpRow[i*4+1] = (GLfloat) BYTE_TO_FLOAT(bSrc[i*3+1]);
587 tmpRow[i*4+2] = (GLfloat) BYTE_TO_FLOAT(bSrc[i*3+b]);
588 tmpRow[i*4+3] = 1.0;
593 tmpRow[i*4+0] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i*3+r]);
594 tmpRow[i*4+1] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i*3+1]);
595 tmpRow[i*4+2] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i*3+b]);
596 tmpRow[i*4+3] = 1.0;
601 tmpRow[i*4+0] = (GLfloat) SHORT_TO_FLOAT(sSrc[i*3+r]);
602 tmpRow[i*4+1] = (GLfloat) SHORT_TO_FLOAT(sSrc[i*3+1]);
603 tmpRow[i*4+2] = (GLfloat) SHORT_TO_FLOAT(sSrc[i*3+b]);
604 tmpRow[i*4+3] = 1.0;
609 tmpRow[i*4+0] = (GLfloat) USHORT_TO_FLOAT(usSrc[i*3+r]);
610 tmpRow[i*4+1] = (GLfloat) USHORT_TO_FLOAT(usSrc[i*3+1]);
611 tmpRow[i*4+2] = (GLfloat) USHORT_TO_FLOAT(usSrc[i*3+b]);
612 tmpRow[i*4+3] = 1.0;
617 tmpRow[i*4+0] = (GLfloat) INT_TO_FLOAT(iSrc[i*3+r]);
618 tmpRow[i*4+1] = (GLfloat) INT_TO_FLOAT(iSrc[i*3+1]);
619 tmpRow[i*4+2] = (GLfloat) INT_TO_FLOAT(iSrc[i*3+b]);
620 tmpRow[i*4+3] = 1.0;
625 tmpRow[i*4+0] = (GLfloat) UINT_TO_FLOAT(uiSrc[i*3+r]);
626 tmpRow[i*4+1] = (GLfloat) UINT_TO_FLOAT(uiSrc[i*3+1]);
627 tmpRow[i*4+2] = (GLfloat) UINT_TO_FLOAT(uiSrc[i*3+b]);
628 tmpRow[i*4+3] = 1.0;
633 tmpRow[i*4+0] = fSrc[i*3+r];
634 tmpRow[i*4+1] = fSrc[i*3+1];
635 tmpRow[i*4+2] = fSrc[i*3+b];
636 tmpRow[i*4+3] = 1.0;
641 tmpRow[i*4+0] = (GLfloat) dSrc[i*3+r];
642 tmpRow[i*4+1] = (GLfloat) dSrc[i*3+1];
643 tmpRow[i*4+2] = (GLfloat) dSrc[i*3+b];
644 tmpRow[i*4+3] = 1.0;
650 tmpRow[i*4+r] = (GLfloat) ((ubSrc[i] >> 5) ) / 7.0f;
651 tmpRow[i*4+1] = (GLfloat) ((ubSrc[i] >> 2) & 0x7) / 7.0f;
652 tmpRow[i*4+b] = (GLfloat) ((ubSrc[i] ) & 0x3) / 3.0f;
653 tmpRow[i*4+3] = 1.0;
658 tmpRow[i*4+r] = (GLfloat) ((ubSrc[i] ) & 0x7) / 7.0f;
659 tmpRow[i*4+1] = (GLfloat) ((ubSrc[i] >> 3) & 0x7) / 7.0f;
660 tmpRow[i*4+b] = (GLfloat) ((ubSrc[i] >> 6) ) / 3.0f;
661 tmpRow[i*4+3] = 1.0;
666 tmpRow[i*4+r] = (GLfloat) ((usSrc[i] >> 11) & 0x1f) / 31.0f;
667 tmpRow[i*4+1] = (GLfloat) ((usSrc[i] >> 5) & 0x3f) / 63.0f;
668 tmpRow[i*4+b] = (GLfloat) ((usSrc[i] ) & 0x1f) / 31.0f;
669 tmpRow[i*4+3] = 1.0;
674 tmpRow[i*4+r] = (GLfloat) ((usSrc[i] ) & 0x1f) / 31.0f;
675 tmpRow[i*4+1] = (GLfloat) ((usSrc[i] >> 5) & 0x3f) / 63.0f;
676 tmpRow[i*4+b] = (GLfloat) ((usSrc[i] >> 11) & 0x1f) / 31.0f;
677 tmpRow[i*4+3] = 1.0;
710 tmpRow[i*4+0] = (GLfloat) BYTE_TO_FLOAT(bSrc[i*4+r]);
711 tmpRow[i*4+1] = (GLfloat) BYTE_TO_FLOAT(bSrc[i*4+1]);
712 tmpRow[i*4+2] = (GLfloat) BYTE_TO_FLOAT(bSrc[i*4+b]);
713 tmpRow[i*4+3] = (GLfloat) BYTE_TO_FLOAT(bSrc[i*4+3]);
718 tmpRow[i*4+0] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i*4+r]);
719 tmpRow[i*4+1] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i*4+1]);
720 tmpRow[i*4+2] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i*4+b]);
721 tmpRow[i*4+3] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i*4+3]);
726 tmpRow[i*4+0] = (GLfloat) SHORT_TO_FLOAT(sSrc[i*4+r]);
727 tmpRow[i*4+1] = (GLfloat) SHORT_TO_FLOAT(sSrc[i*4+1]);
728 tmpRow[i*4+2] = (GLfloat) SHORT_TO_FLOAT(sSrc[i*4+b]);
729 tmpRow[i*4+3] = (GLfloat) SHORT_TO_FLOAT(sSrc[i*4+3]);
734 tmpRow[i*4+0] = (GLfloat) USHORT_TO_FLOAT(usSrc[i*4+r]);
735 tmpRow[i*4+1] = (GLfloat) USHORT_TO_FLOAT(usSrc[i*4+1]);
736 tmpRow[i*4+2] = (GLfloat) USHORT_TO_FLOAT(usSrc[i*4+b]);
737 tmpRow[i*4+3] = (GLfloat) USHORT_TO_FLOAT(usSrc[i*4+3]);
742 tmpRow[i*4+0] = (GLfloat) INT_TO_FLOAT(iSrc[i*4+r]);
743 tmpRow[i*4+1] = (GLfloat) INT_TO_FLOAT(iSrc[i*4+1]);
744 tmpRow[i*4+2] = (GLfloat) INT_TO_FLOAT(iSrc[i*4+b]);
745 tmpRow[i*4+3] = (GLfloat) INT_TO_FLOAT(iSrc[i*4+3]);
750 tmpRow[i*4+0] = (GLfloat) UINT_TO_FLOAT(uiSrc[i*4+r]);
751 tmpRow[i*4+1] = (GLfloat) UINT_TO_FLOAT(uiSrc[i*4+1]);
752 tmpRow[i*4+2] = (GLfloat) UINT_TO_FLOAT(uiSrc[i*4+b]);
753 tmpRow[i*4+3] = (GLfloat) UINT_TO_FLOAT(uiSrc[i*4+3]);
758 tmpRow[i*4+0] = fSrc[i*4+r];
759 tmpRow[i*4+1] = fSrc[i*4+1];
760 tmpRow[i*4+2] = fSrc[i*4+b];
761 tmpRow[i*4+3] = fSrc[i*4+3];
766 tmpRow[i*4+0] = (GLfloat) dSrc[i*4+r];
767 tmpRow[i*4+1] = (GLfloat) dSrc[i*4+1];
768 tmpRow[i*4+2] = (GLfloat) dSrc[i*4+b];
769 tmpRow[i*4+3] = (GLfloat) dSrc[i*4+3];
775 tmpRow[i*4+r] = (GLfloat) ((usSrc[i] >> 11) ) / 31.0f;
776 tmpRow[i*4+1] = (GLfloat) ((usSrc[i] >> 6) & 0x1f) / 31.0f;
777 tmpRow[i*4+b] = (GLfloat) ((usSrc[i] >> 1) & 0x1f) / 31.0f;
778 tmpRow[i*4+3] = (GLfloat) ((usSrc[i] ) & 0x01);
783 tmpRow[i*4+r] = (GLfloat) ((usSrc[i] ) & 0x1f) / 31.0f;
784 tmpRow[i*4+1] = (GLfloat) ((usSrc[i] >> 5) & 0x1f) / 31.0f;
785 tmpRow[i*4+b] = (GLfloat) ((usSrc[i] >> 10) & 0x1f) / 31.0f;
786 tmpRow[i*4+3] = (GLfloat) ((usSrc[i] >> 15) );
791 tmpRow[i*4+r] = (GLfloat) ((usSrc[i] >> 12) & 0xf) / 15.0f;
792 tmpRow[i*4+1] = (GLfloat) ((usSrc[i] >> 8) & 0xf) / 15.0f;
793 tmpRow[i*4+b] = (GLfloat) ((usSrc[i] >> 4) & 0xf) / 15.0f;
794 tmpRow[i*4+3] = (GLfloat) ((usSrc[i] ) & 0xf) / 15.0f;
799 tmpRow[i*4+r] = (GLfloat) ((usSrc[i] ) & 0xf) / 15.0f;
800 tmpRow[i*4+1] = (GLfloat) ((usSrc[i] >> 4) & 0xf) / 15.0f;
801 tmpRow[i*4+b] = (GLfloat) ((usSrc[i] >> 8) & 0xf) / 15.0f;
802 tmpRow[i*4+3] = (GLfloat) ((usSrc[i] >> 12) & 0xf) / 15.0f;
807 tmpRow[i*4+r] = (GLfloat) ((uiSrc[i] >> 24) & 0xff) / 255.0f;
808 tmpRow[i*4+1] = (GLfloat) ((uiSrc[i] >> 16) & 0xff) / 255.0f;
809 tmpRow[i*4+b] = (GLfloat) ((uiSrc[i] >> 8) & 0xff) / 255.0f;
810 tmpRow[i*4+3] = (GLfloat) ((uiSrc[i] ) & 0xff) / 255.0f;
815 tmpRow[i*4+r] = (GLfloat) ((uiSrc[i] ) & 0xff) / 255.0f;
816 tmpRow[i*4+1] = (GLfloat) ((uiSrc[i] >> 8) & 0xff) / 255.0f;
817 tmpRow[i*4+b] = (GLfloat) ((uiSrc[i] >> 16) & 0xff) / 255.0f;
818 tmpRow[i*4+3] = (GLfloat) ((uiSrc[i] >> 24) & 0xff) / 255.0f;
823 tmpRow[i*4+r] = (GLfloat) ((uiSrc[i] >> 22) & 0x3ff) / 1023.0f;
824 tmpRow[i*4+1] = (GLfloat) ((uiSrc[i] >> 12) & 0x3ff) / 1023.0f;
825 tmpRow[i*4+b] = (GLfloat) ((uiSrc[i] >> 2) & 0x3ff) / 1023.0f;
826 tmpRow[i*4+3] = (GLfloat) ((uiSrc[i] ) & 0x003) / 3.0f;
831 tmpRow[i*4+r] = (GLfloat) ((uiSrc[i] ) & 0x3ff) / 1023.0f;
832 tmpRow[i*4+1] = (GLfloat) ((uiSrc[i] >> 10) & 0x3ff) / 1023.0f;
833 tmpRow[i*4+b] = (GLfloat) ((uiSrc[i] >> 20) & 0x3ff) / 1023.0f;
834 tmpRow[i*4+3] = (GLfloat) ((uiSrc[i] >> 30) & 0x003) / 3.0f;
859 tmpRow[i*4+0] = SRGBF_TO_RGBF(tmpRow[i*4+0]);
860 tmpRow[i*4+1] = SRGBF_TO_RGBF(tmpRow[i*4+1]);
861 tmpRow[i*4+2] = SRGBF_TO_RGBF(tmpRow[i*4+2]);
869 GLsizei width, GLfloat *tmpRow)
894 tmpRow[i*4+0] = RGBF_TO_SRGBF(tmpRow[i*4+0]);
895 tmpRow[i*4+1] = RGBF_TO_SRGBF(tmpRow[i*4+1]);
896 tmpRow[i*4+2] = RGBF_TO_SRGBF(tmpRow[i*4+2]);
905 bDst[i] = (GLbyte) tmpRow[i];
909 ubDst[i] = (GLubyte) tmpRow[i];
913 sDst[i] = (GLshort) tmpRow[i];
917 usDst[i] = (GLushort) tmpRow[i];
921 iDst[i] = (GLint) tmpRow[i];
925 uiDst[i] = (GLuint) tmpRow[i];
929 fDst[i] = tmpRow[i];
933 dDst[i] = tmpRow[i];
943 bDst[i] = FLOAT_TO_BYTE(tmpRow[i]);
947 ubDst[i] = FLOAT_TO_UBYTE(tmpRow[i]);
951 sDst[i] = FLOAT_TO_SHORT(tmpRow[i]);
955 sDst[i] = FLOAT_TO_SHORT(tmpRow[i]);
959 bDst[i] = (GLbyte) FLOAT_TO_INT(tmpRow[i]);
963 bDst[i] = (GLbyte) FLOAT_TO_UINT(tmpRow[i]);
967 fDst[i] = tmpRow[i];
971 dDst[i] = tmpRow[i];
1006 bDst[i] = FLOAT_TO_BYTE(tmpRow[i*4+index]);
1010 ubDst[i] = FLOAT_TO_UBYTE(tmpRow[i*4+index]);
1014 sDst[i] = FLOAT_TO_SHORT(tmpRow[i*4+index]);
1018 usDst[i] = FLOAT_TO_USHORT(tmpRow[i*4+index]);
1022 iDst[i] = FLOAT_TO_INT(tmpRow[i*4+index]);
1026 uiDst[i] = FLOAT_TO_UINT(tmpRow[i*4+index]);
1030 fDst[i] = tmpRow[i*4+index];
1034 dDst[i] = tmpRow[i*4+index];
1049 bDst[i*2+0] = FLOAT_TO_BYTE(tmpRow[i*4+0]);
1050 bDst[i*2+1] = FLOAT_TO_BYTE(tmpRow[i*4+3]);
1055 ubDst[i*2+0] = FLOAT_TO_UBYTE(tmpRow[i*4+0]);
1056 ubDst[i*2+1] = FLOAT_TO_UBYTE(tmpRow[i*4+3]);
1061 sDst[i*2+0] = FLOAT_TO_SHORT(tmpRow[i*4+0]);
1062 sDst[i*2+1] = FLOAT_TO_SHORT(tmpRow[i*4+3]);
1067 usDst[i*2+0] = FLOAT_TO_USHORT(tmpRow[i*4+0]);
1068 usDst[i*2+1] = FLOAT_TO_USHORT(tmpRow[i*4+3]);
1073 iDst[i*2+0] = FLOAT_TO_INT(tmpRow[i*4+0]);
1074 iDst[i*2+1] = FLOAT_TO_INT(tmpRow[i*4+3]);
1079 uiDst[i*2+0] = FLOAT_TO_UINT(tmpRow[i*4+0]);
1080 uiDst[i*2+1] = FLOAT_TO_UINT(tmpRow[i*4+3]);
1085 fDst[i*2+0] = tmpRow[i*4+0];
1086 fDst[i*2+1] = tmpRow[i*4+3];
1091 dDst[i*2+0] = tmpRow[i*4+0];
1092 dDst[i*2+1] = tmpRow[i*4+3];
1123 bDst[i*3+r] = FLOAT_TO_BYTE(tmpRow[i*4+0]);
1124 bDst[i*3+1] = FLOAT_TO_BYTE(tmpRow[i*4+1]);
1125 bDst[i*3+b] = FLOAT_TO_BYTE(tmpRow[i*4+2]);
1130 ubDst[i*3+r] = FLOAT_TO_UBYTE(tmpRow[i*4+0]);
1131 ubDst[i*3+1] = FLOAT_TO_UBYTE(tmpRow[i*4+1]);
1132 ubDst[i*3+b] = FLOAT_TO_UBYTE(tmpRow[i*4+2]);
1137 sDst[i*3+r] = FLOAT_TO_SHORT(tmpRow[i*4+0]);
1138 sDst[i*3+1] = FLOAT_TO_SHORT(tmpRow[i*4+1]);
1139 sDst[i*3+b] = FLOAT_TO_SHORT(tmpRow[i*4+2]);
1144 usDst[i*3+r] = FLOAT_TO_USHORT(tmpRow[i*4+0]);
1145 usDst[i*3+1] = FLOAT_TO_USHORT(tmpRow[i*4+1]);
1146 usDst[i*3+b] = FLOAT_TO_USHORT(tmpRow[i*4+2]);
1151 iDst[i*3+r] = FLOAT_TO_INT(tmpRow[i*4+0]);
1152 iDst[i*3+1] = FLOAT_TO_INT(tmpRow[i*4+1]);
1153 iDst[i*3+b] = FLOAT_TO_INT(tmpRow[i*4+2]);
1158 uiDst[i*3+r] = FLOAT_TO_UINT(tmpRow[i*4+0]);
1159 uiDst[i*3+1] = FLOAT_TO_UINT(tmpRow[i*4+1]);
1160 uiDst[i*3+b] = FLOAT_TO_UINT(tmpRow[i*4+2]);
1165 fDst[i*3+r] = tmpRow[i*4+0];
1166 fDst[i*3+1] = tmpRow[i*4+1];
1167 fDst[i*3+b] = tmpRow[i*4+2];
1172 dDst[i*3+r] = tmpRow[i*4+0];
1173 dDst[i*3+1] = tmpRow[i*4+1];
1174 dDst[i*3+b] = tmpRow[i*4+2];
1180 int red = (int) (tmpRow[i*4+r] * 7.0);
1181 int green = (int) (tmpRow[i*4+1] * 7.0);
1182 int blue = (int) (tmpRow[i*4+b] * 3.0);
1188 int red = (int) (tmpRow[i*4+r] * 7.0);
1189 int green = (int) (tmpRow[i*4+1] * 7.0);
1190 int blue = (int) (tmpRow[i*4+b] * 3.0);
1196 int red = (int) (tmpRow[i*4+r] * 31.0);
1197 int green = (int) (tmpRow[i*4+1] * 63.0);
1198 int blue = (int) (tmpRow[i*4+b] * 31.0);
1204 int red = (int) (tmpRow[i*4+r] * 31.0);
1205 int green = (int) (tmpRow[i*4+1] * 63.0);
1206 int blue = (int) (tmpRow[i*4+b] * 31.0);
1239 bDst[i*4+r] = FLOAT_TO_BYTE(tmpRow[i*4+0]);
1240 bDst[i*4+1] = FLOAT_TO_BYTE(tmpRow[i*4+1]);
1241 bDst[i*4+b] = FLOAT_TO_BYTE(tmpRow[i*4+2]);
1242 bDst[i*4+3] = FLOAT_TO_BYTE(tmpRow[i*4+3]);
1247 ubDst[i*4+r] = FLOAT_TO_UBYTE(tmpRow[i*4+0]);
1248 ubDst[i*4+1] = FLOAT_TO_UBYTE(tmpRow[i*4+1]);
1249 ubDst[i*4+b] = FLOAT_TO_UBYTE(tmpRow[i*4+2]);
1250 ubDst[i*4+3] = FLOAT_TO_UBYTE(tmpRow[i*4+3]);
1255 sDst[i*4+r] = FLOAT_TO_SHORT(tmpRow[i*4+0]);
1256 sDst[i*4+1] = FLOAT_TO_SHORT(tmpRow[i*4+1]);
1257 sDst[i*4+b] = FLOAT_TO_SHORT(tmpRow[i*4+2]);
1258 sDst[i*4+3] = FLOAT_TO_SHORT(tmpRow[i*4+3]);
1263 usDst[i*4+r] = FLOAT_TO_USHORT(tmpRow[i*4+0]);
1264 usDst[i*4+1] = FLOAT_TO_USHORT(tmpRow[i*4+1]);
1265 usDst[i*4+b] = FLOAT_TO_USHORT(tmpRow[i*4+2]);
1266 usDst[i*4+3] = FLOAT_TO_USHORT(tmpRow[i*4+3]);
1271 iDst[i*4+r] = FLOAT_TO_INT(tmpRow[i*4+0]);
1272 iDst[i*4+1] = FLOAT_TO_INT(tmpRow[i*4+1]);
1273 iDst[i*4+b] = FLOAT_TO_INT(tmpRow[i*4+2]);
1274 iDst[i*4+3] = FLOAT_TO_INT(tmpRow[i*4+3]);
1279 uiDst[i*4+r] = FLOAT_TO_UINT(tmpRow[i*4+0]);
1280 uiDst[i*4+1] = FLOAT_TO_UINT(tmpRow[i*4+1]);
1281 uiDst[i*4+b] = FLOAT_TO_UINT(tmpRow[i*4+2]);
1282 uiDst[i*4+3] = FLOAT_TO_UINT(tmpRow[i*4+3]);
1287 fDst[i*4+r] = tmpRow[i*4+0];
1288 fDst[i*4+1] = tmpRow[i*4+1];
1289 fDst[i*4+b] = tmpRow[i*4+2];
1290 fDst[i*4+3] = tmpRow[i*4+3];
1295 dDst[i*4+r] = tmpRow[i*4+0];
1296 dDst[i*4+1] = tmpRow[i*4+1];
1297 dDst[i*4+b] = tmpRow[i*4+2];
1298 dDst[i*4+3] = tmpRow[i*4+3];
1304 int red = (int) (tmpRow[i*4+r] * 31.0);
1305 int green = (int) (tmpRow[i*4+1] * 31.0);
1306 int blue = (int) (tmpRow[i*4+b] * 31.0);
1307 int alpha = (int) (tmpRow[i*4+3]);
1313 int red = (int) (tmpRow[i*4+r] * 31.0);
1314 int green = (int) (tmpRow[i*4+1] * 31.0);
1315 int blue = (int) (tmpRow[i*4+b] * 31.0);
1316 int alpha = (int) (tmpRow[i*4+3]);
1322 int red = (int) (tmpRow[i*4+r] * 15.0f);
1323 int green = (int) (tmpRow[i*4+1] * 15.0f);
1324 int blue = (int) (tmpRow[i*4+b] * 15.0f);
1325 int alpha = (int) (tmpRow[i*4+3] * 15.0f);
1331 int red = (int) (tmpRow[i*4+r] * 15.0f);
1332 int green = (int) (tmpRow[i*4+1] * 15.0f);
1333 int blue = (int) (tmpRow[i*4+b] * 15.0f);
1334 int alpha = (int) (tmpRow[i*4+3] * 15.0f);
1340 int red = (int) (tmpRow[i*4+r] * 255.0f);
1341 int green = (int) (tmpRow[i*4+1] * 255.0f);
1342 int blue = (int) (tmpRow[i*4+b] * 255.0f);
1343 int alpha = (int) (tmpRow[i*4+3] * 255.0f);
1349 int red = (int) (tmpRow[i*4+r] * 255.0f);
1350 int green = (int) (tmpRow[i*4+1] * 255.0f);
1351 int blue = (int) (tmpRow[i*4+b] * 255.0f);
1352 int alpha = (int) (tmpRow[i*4+3] * 255.0f);
1358 int red = (int) (tmpRow[i*4+r] * 1023.0f);
1359 int green = (int) (tmpRow[i*4+1] * 1023.0f);
1360 int blue = (int) (tmpRow[i*4+b] * 1023.0f);
1361 int alpha = (int) (tmpRow[i*4+3] * 3.0f);
1367 int red = (int) (tmpRow[i*4+r] * 1023.0f);
1368 int green = (int) (tmpRow[i*4+1] * 1023.0f);
1369 int blue = (int) (tmpRow[i*4+b] * 1023.0f);
1370 int alpha = (int) (tmpRow[i*4+3] * 3.0f);
1623 GLfloat *tmpRow = crAlloc( 4 * width * sizeof(GLfloat) );
1627 if (!tmpRow)
1648 get_row(swapRow, srcFormat, srcType, width, tmpRow);
1651 get_row(src, srcFormat, srcType, width, tmpRow);
1658 put_row(dst, dstFormat, dstType, width, tmpRow);
1665 put_row(dst, dstFormat, dstType, width, tmpRow);
1673 crFree(tmpRow);