Lines Matching refs:GLfloat

237  * Pack src pixel data into tmpRow array as either GLfloat[][1] or
238 * GLfloat[][4] depending on whether the format is for colors.
242 GLsizei width, GLfloat *tmpRow)
250 const GLfloat *fSrc = (GLfloat *) src;
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];
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]);
324 tmpRow[i] = (GLfloat) dSrc[i];
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]);
378 tmpRow[dst] = (GLfloat) fSrc[i];
394 = (GLfloat) BYTE_TO_FLOAT(bSrc[i]);
401 = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i]);
408 = (GLfloat) SHORT_TO_FLOAT(sSrc[i]);
415 = (GLfloat) USHORT_TO_FLOAT(usSrc[i]);
422 = (GLfloat) INT_TO_FLOAT(iSrc[i]);
429 = (GLfloat) UINT_TO_FLOAT(uiSrc[i]);
441 tmpRow[i*4+0] = tmpRow[i*4+1] = tmpRow[i*4+2] = (GLfloat) dSrc[i];
454 = (GLfloat) BYTE_TO_FLOAT(bSrc[i]);
459 = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i]);
464 = (GLfloat) SHORT_TO_FLOAT(sSrc[i]);
469 = (GLfloat) USHORT_TO_FLOAT(usSrc[i]);
474 = (GLfloat) INT_TO_FLOAT(iSrc[i]);
489 = (GLfloat) dSrc[i];
505 = (GLfloat) BYTE_TO_FLOAT(bSrc[i*2+0]);
506 tmpRow[i*4+3] = (GLfloat) BYTE_TO_FLOAT(bSrc[i*2+1]);
512 = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i*2+0]);
513 tmpRow[i*4+3] = (GLfloat) UBYTE_TO_FLOAT(ubSrc[i*2+1]);
519 = (GLfloat) SHORT_TO_FLOAT(sSrc[i*2+0]);
520 tmpRow[i*4+3] = (GLfloat) SHORT_TO_FLOAT(sSrc[i*2+1]);
526 = (GLfloat) USHORT_TO_FLOAT(usSrc[i*2+0]);
527 tmpRow[i*4+3] = (GLfloat) USHORT_TO_FLOAT(usSrc[i*2+1]);
533 = (GLfloat) INT_TO_FLOAT(iSrc[i*2+0]);
534 tmpRow[i*4+3] = (GLfloat) INT_TO_FLOAT(iSrc[i*2+1]);
540 = (GLfloat) UINT_TO_FLOAT(uiSrc[i*2+0]);
541 tmpRow[i*4+3] = (GLfloat) UINT_TO_FLOAT(uiSrc[i*2+1]);
553 = (GLfloat) dSrc[i*2+0];
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]);
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]);
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]);
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]);
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]);
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]);
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];
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;
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;
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;
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;
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]);
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;
869 GLsizei width, GLfloat *tmpRow)
877 GLfloat *fDst = (GLfloat *) dst;
1623 GLfloat *tmpRow = crAlloc( 4 * width * sizeof(GLfloat) );