Lines Matching defs:source
3 // Use of this source code is governed by a BSD-style license that can be
355 const unsigned char *source = NULL;
360 source = static_cast<const unsigned char*>(input) + y * inputPitch;
367 dest[4 * x + 3] = source[x];
375 const float *source = NULL;
380 source = reinterpret_cast<const float*>(static_cast<const unsigned char*>(input) + y * inputPitch);
387 dest[4 * x + 3] = source[x];
395 const unsigned short *source = NULL;
400 source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
407 dest[4 * x + 3] = source[x];
416 const unsigned char *source = NULL;
421 source = static_cast<const unsigned char*>(input) + y * inputPitch;
428 dest[4 * x + 0] = source[x];
429 dest[4 * x + 1] = source[x];
430 dest[4 * x + 2] = source[x];
436 memcpy(dest, source, width);
444 const float *source = NULL;
449 source = reinterpret_cast<const float*>(static_cast<const unsigned char*>(input) + y * inputPitch);
453 dest[4 * x + 0] = source[x];
454 dest[4 * x + 1] = source[x];
455 dest[4 * x + 2] = source[x];
464 const unsigned short *source = NULL;
469 source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
473 dest[4 * x + 0] = source[x];
474 dest[4 * x + 1] = source[x];
475 dest[4 * x + 2] = source[x];
485 const unsigned char *source = NULL;
490 source = static_cast<const unsigned char*>(input) + y * inputPitch;
497 dest[4 * x + 0] = source[2*x+0];
498 dest[4 * x + 1] = source[2*x+0];
499 dest[4 * x + 2] = source[2*x+0];
500 dest[4 * x + 3] = source[2*x+1];
505 memcpy(dest, source, width * 2);
513 const float *source = NULL;
518 source = reinterpret_cast<const float*>(static_cast<const unsigned char*>(input) + y * inputPitch);
522 dest[4 * x + 0] = source[2*x+0];
523 dest[4 * x + 1] = source[2*x+0];
524 dest[4 * x + 2] = source[2*x+0];
525 dest[4 * x + 3] = source[2*x+1];
533 const unsigned short *source = NULL;
538 source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
542 dest[4 * x + 0] = source[2*x+0];
543 dest[4 * x + 1] = source[2*x+0];
544 dest[4 * x + 2] = source[2*x+0];
545 dest[4 * x + 3] = source[2*x+1];
553 const unsigned char *source = NULL;
558 source = static_cast<const unsigned char*>(input) + y * inputPitch;
562 dest[4 * x + 0] = source[x * 3 + 2];
563 dest[4 * x + 1] = source[x * 3 + 1];
564 dest[4 * x + 2] = source[x * 3 + 0];
573 const unsigned short *source = NULL;
578 source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
582 unsigned short rgba = source[x];
594 const float *source = NULL;
599 source = reinterpret_cast<const float*>(static_cast<const unsigned char*>(input) + y * inputPitch);
603 dest[4 * x + 0] = source[x * 3 + 0];
604 dest[4 * x + 1] = source[x * 3 + 1];
605 dest[4 * x + 2] = source[x * 3 + 2];
614 const unsigned short *source = NULL;
619 source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
623 dest[4 * x + 0] = source[x * 3 + 0];
624 dest[4 * x + 1] = source[x * 3 + 1];
625 dest[4 * x + 2] = source[x * 3 + 2];
634 const unsigned char *source = NULL;
639 source = static_cast<const unsigned char*>(input) + y * inputPitch;
643 dest[4 * x + 0] = source[x * 4 + 2];
644 dest[4 * x + 1] = source[x * 4 + 1];
645 dest[4 * x + 2] = source[x * 4 + 0];
646 dest[4 * x + 3] = source[x * 4 + 3];
654 const unsigned short *source = NULL;
659 source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
663 unsigned short rgba = source[x];
675 const unsigned short *source = NULL;
680 source = reinterpret_cast<const unsigned short*>(static_cast<const unsigned char*>(input) + y * inputPitch);
684 unsigned short rgba = source[x];
696 const float *source = NULL;
701 source = reinterpret_cast<const float*>(static_cast<const unsigned char*>(input) + y * inputPitch);
703 memcpy(dest, source, width * 16);
710 const unsigned char *source = NULL;
715 source = static_cast<const unsigned char*>(input) + y * inputPitch;
717 memcpy(dest, source, width * 8);
724 const unsigned char *source = NULL;
729 source = static_cast<const unsigned char*>(input) + y * inputPitch;
731 memcpy(dest, source, width*4);
947 ERR("Failed to lock the source surface (rectangle might be invalid).");
980 unsigned char *source = (unsigned char*)sourceLock.pBits;
994 dest[x] = source[x * 4 + 2];
997 source += sourceLock.Pitch;
1006 dest[x * 2 + 0] = source[x * 4 + 2];
1007 dest[x * 2 + 1] = source[x * 4 + 3];
1010 source += sourceLock.Pitch;
1026 unsigned char red = source[x * 2 + 1] & 0xF8;
1030 source += sourceLock.Pitch;
1046 unsigned char red = source[x * 2 + 1] & 0x7C;
1050 source += sourceLock.Pitch;
1059 unsigned char red = source[x * 2 + 1] & 0x7C;
1061 dest[x * 2 + 1] = (signed char)source[x * 2 + 1] >> 7;
1064 source += sourceLock.Pitch;
1328 void Texture2D::copyImage(GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, RenderbufferStorage *source)
1330 IDirect3DSurface9 *renderTarget = source->getRenderTarget();
1367 getBlitter()->formatConvert(source->getRenderTarget(), sourceRect, internalFormat, 0, 0, dest);
1377 void Texture2D::copySubImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height, RenderbufferStorage *source)
1384 IDirect3DSurface9 *renderTarget = source->getRenderTarget();
1421 getBlitter()->formatConvert(source->getRenderTarget(), sourceRect, mImageArray[0].format, xoffset, yoffset, dest);
1579 IDirect3DSurface9 *source;
1580 result = mTexture->GetSurfaceLevel(i, &source);
1599 source->Release();
1605 result = device->StretchRect(source, NULL, dest, NULL, D3DTEXF_NONE);
1612 source->Release();
1618 source->Release();
2022 IDirect3DSurface9 *source;
2023 result = mTexture->GetCubeMapSurface(static_cast<D3DCUBEMAP_FACES>(f), i, &source);
2042 source->Release();
2048 result = device->StretchRect(source, NULL, dest, NULL, D3DTEXF_NONE);
2055 source->Release();
2159 void TextureCubeMap::copyImage(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, RenderbufferStorage *source)
2161 IDirect3DSurface9 *renderTarget = source->getRenderTarget();
2200 getBlitter()->formatConvert(source->getRenderTarget(), sourceRect, internalFormat, 0, 0, dest);
2241 void TextureCubeMap::copySubImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height, RenderbufferStorage *source)
2250 IDirect3DSurface9 *renderTarget = source->getRenderTarget();
2287 getBlitter()->formatConvert(source->getRenderTarget(), sourceRect, mImageArray[0][0].format, xoffset, yoffset, dest);