Lines Matching defs:source
66 void LoadImageRow(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
72 void LoadImageRow<Bytes_1>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
74 memcpy(dest + xoffset, source, width);
78 void LoadImageRow<Bytes_2>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
80 memcpy(dest + xoffset * 2, source, width * 2);
84 void LoadImageRow<Bytes_4>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
86 memcpy(dest + xoffset * 4, source, width * 4);
90 void LoadImageRow<Bytes_8>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
92 memcpy(dest + xoffset * 8, source, width * 8);
96 void LoadImageRow<Bytes_16>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
98 memcpy(dest + xoffset * 16, source, width * 16);
102 void LoadImageRow<ByteRGB>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
108 destB[4 * x + 0] = source[x * 3 + 0];
109 destB[4 * x + 1] = source[x * 3 + 1];
110 destB[4 * x + 2] = source[x * 3 + 2];
116 void LoadImageRow<UByteRGB>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
122 destB[4 * x + 0] = source[x * 3 + 0];
123 destB[4 * x + 1] = source[x * 3 + 1];
124 destB[4 * x + 2] = source[x * 3 + 2];
130 void LoadImageRow<ShortRGB>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
132 const unsigned short *sourceS = reinterpret_cast<const unsigned short*>(source);
145 void LoadImageRow<UShortRGB>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
147 const unsigned short *sourceS = reinterpret_cast<const unsigned short*>(source);
160 void LoadImageRow<IntRGB>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
162 const unsigned int *sourceI = reinterpret_cast<const unsigned int*>(source);
175 void LoadImageRow<UIntRGB>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
177 const unsigned int *sourceI = reinterpret_cast<const unsigned int*>(source);
190 void LoadImageRow<RGB565>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
192 memcpy(dest + xoffset * 2, source, width * 2);
196 void LoadImageRow<FloatRGB>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
198 const float *sourceF = reinterpret_cast<const float*>(source);
211 void LoadImageRow<HalfFloatRGB>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
213 const unsigned short *sourceH = reinterpret_cast<const unsigned short*>(source);
226 void LoadImageRow<RGBA4444>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
228 const unsigned short *source4444 = reinterpret_cast<const unsigned short*>(source);
242 void LoadImageRow<RGBA5551>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
244 const unsigned short *source5551 = reinterpret_cast<const unsigned short*>(source);
258 void LoadImageRow<RGB10A2UI>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
260 const unsigned int *source1010102U = reinterpret_cast<const unsigned int*>(source);
274 void LoadImageRow<R11G11B10F>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
276 const sw::R11G11B10FData *sourceRGB = reinterpret_cast<const sw::R11G11B10FData*>(source);
287 void LoadImageRow<RGB9E5>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
289 const sw::RGB9E5Data *sourceRGB = reinterpret_cast<const sw::RGB9E5Data*>(source);
300 void LoadImageRow<SRGB>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
308 *dest++ = sw::sRGB8toLinear8(*source++);
315 void LoadImageRow<SRGBA>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
323 *dest++ = sw::sRGB8toLinear8(*source++);
325 *dest++ = *source++;
330 void LoadImageRow<D16>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
332 const unsigned short *sourceD16 = reinterpret_cast<const unsigned short*>(source);
342 void LoadImageRow<D24>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
344 const unsigned int *sourceD24 = reinterpret_cast<const unsigned int*>(source);
354 void LoadImageRow<D32>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
356 const unsigned int *sourceD32 = reinterpret_cast<const unsigned int*>(source);
366 void LoadImageRow<S8>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
368 const unsigned int *sourceI = reinterpret_cast<const unsigned int*>(source);
378 void LoadImageRow<D32F>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
381 const D32FS8 *sourceD32FS8 = reinterpret_cast<const D32FS8*>(source);
391 void LoadImageRow<S24_8>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
394 const D32FS8 *sourceD32FS8 = reinterpret_cast<const D32FS8*>(source);
412 const unsigned char *source = inputStart + y * inputPitch;
415 LoadImageRow<dataType>(source, dest, xoffset, width);
1619 sw::Surface source(width, height, depth, ConvertFormatType(format, type), const_cast<void*>(input), inputPitch, inputPitch * inputHeight);
1622 sw::blitter.blit(&source, sourceRect, this, destRect, false);