Home | History | Annotate | Download | only in libGL

Lines Matching defs:source

357 			const unsigned char *source = static_cast<const unsigned char*>(input) + y * inputPitch;
360 memcpy(dest, source, width);
368 const float *source = reinterpret_cast<const float*>(static_cast<const unsigned char*>(input) + y * inputPitch);
376 dest[4 * x + 3] = source[x];
385 const unsigned short *source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
393 dest[4 * x + 3] = source[x];
402 const unsigned char *source = static_cast<const unsigned char*>(input) + y * inputPitch;
405 memcpy(dest, source, width);
413 const float *source = reinterpret_cast<const float*>(static_cast<const unsigned char*>(input) + y * inputPitch);
418 dest[4 * x + 0] = source[x];
419 dest[4 * x + 1] = source[x];
420 dest[4 * x + 2] = source[x];
430 const unsigned short *source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
435 dest[4 * x + 0] = source[x];
436 dest[4 * x + 1] = source[x];
437 dest[4 * x + 2] = source[x];
447 const unsigned char *source = static_cast<const unsigned char*>(input) + y * inputPitch;
450 memcpy(dest, source, width * 2);
458 const float *source = reinterpret_cast<const float*>(static_cast<const unsigned char*>(input) + y * inputPitch);
463 dest[4 * x + 0] = source[2*x+0];
464 dest[4 * x + 1] = source[2*x+0];
465 dest[4 * x + 2] = source[2*x+0];
466 dest[4 * x + 3] = source[2*x+1];
475 const unsigned short *source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
480 dest[4 * x + 0] = source[2*x+0];
481 dest[4 * x + 1] = source[2*x+0];
482 dest[4 * x + 2] = source[2*x+0];
483 dest[4 * x + 3] = source[2*x+1];
492 const unsigned char *source = static_cast<const unsigned char*>(input) + y * inputPitch;
497 dest[4 * x + 0] = source[x * 3 + 2];
498 dest[4 * x + 1] = source[x * 3 + 1];
499 dest[4 * x + 2] = source[x * 3 + 0];
509 const unsigned short *source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
512 memcpy(dest, source, width * 2);
520 const float *source = reinterpret_cast<const float*>(static_cast<const unsigned char*>(input) + y * inputPitch);
525 dest[4 * x + 0] = source[x * 3 + 0];
526 dest[4 * x + 1] = source[x * 3 + 1];
527 dest[4 * x + 2] = source[x * 3 + 2];
537 const unsigned short *source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
542 dest[4 * x + 0] = source[x * 3 + 0];
543 dest[4 * x + 1] = source[x * 3 + 1];
544 dest[4 * x + 2] = source[x * 3 + 2];
554 const unsigned int *source = reinterpret_cast<const unsigned int*>(static_cast<const unsigned char*>(input) + y * inputPitch);
559 unsigned int rgba = source[x];
569 const unsigned short *source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
574 unsigned short rgba = source[x];
587 const unsigned short *source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
592 unsigned short rgba = source[x];
605 const float *source = reinterpret_cast<const float*>(static_cast<const unsigned char*>(input) + y * inputPitch);
608 memcpy(dest, source, width * 16);
616 const unsigned char *source = static_cast<const unsigned char*>(input) + y * inputPitch;
619 memcpy(dest, source, width * 8);
627 const unsigned char *source = static_cast<const unsigned char*>(input) + y * inputPitch;
630 memcpy(dest, source, width*4);
638 const unsigned short *source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
643 dest[x] = (float)source[x] / 0xFFFF;
652 const unsigned int *source = reinterpret_cast<const unsigned int*>(static_cast<const unsigned char*>(input) + y * inputPitch);
657 dest[x] = (float)source[x] / 0xFFFFFFFF;
666 const unsigned int *source = reinterpret_cast<const unsigned int*>(static_cast<const unsigned char*>(input) + y * inputPitch);
671 dest[x] = (float)(source[x] & 0xFFFFFF00) / 0xFFFFFF00;
681 const unsigned int *source = reinterpret_cast<const unsigned int*>(static_cast<const unsigned char*>(input) + y * inputPitch);
686 dest[x] = static_cast<unsigned char>(source[x] & 0x000000FF); // FIXME: Quad layout