Lines Matching refs:srcWidth

43 NAME(GLint srcWidth, GLint dstWidth,			\
53 GLint srcCol = (dstCol * srcWidth) / dstWidth; \
55 ASSERT(srcCol < srcWidth); \
56 srcCol = srcWidth - 1 - srcCol; /* flip */ \
74 GLint srcCol = (dstCol * srcWidth) / dstWidth; \
76 ASSERT(srcCol < srcWidth); \
115 const GLint srcWidth = ABS(srcX1 - srcX0);
142 typedef void (*resample_func)(GLint srcWidth, GLint dstWidth,
250 srcWidth, srcHeight,
268 srcBuffer = malloc(pixelSize * srcWidth);
297 memcpy(srcBuffer, srcRowStart, pixelSize * srcWidth);
300 _mesa_unpack_rgba_row(readRb->Format, srcWidth, srcRowStart,
304 _mesa_unpack_float_z_row(readRb->Format, srcWidth, srcRowStart,
308 _mesa_unpack_uint_z_row(readRb->Format, srcWidth, srcRowStart,
312 _mesa_unpack_ubyte_stencil_row(readRb->Format, srcWidth,
317 (*resampleRow)(srcWidth, dstWidth, srcBuffer, dstBuffer, invertX);
324 memcpy(dstRowStart, dstBuffer, pixelSize * srcWidth);
373 resample_linear_row_ub(GLint srcWidth, GLint dstWidth,
384 const GLfloat srcCol = (dstCol * srcWidth) / dstWidthF;
391 ASSERT(srcCol0 < srcWidth);
392 ASSERT(srcCol1 <= srcWidth);
394 if (srcCol1 == srcWidth) {
401 srcCol0 = srcWidth - 1 - srcCol0;
402 srcCol1 = srcWidth - 1 - srcCol1;
430 resample_linear_row_float(GLint srcWidth, GLint dstWidth,
441 const GLfloat srcCol = (dstCol * srcWidth) / dstWidthF;
448 ASSERT(srcCol0 < srcWidth);
449 ASSERT(srcCol1 <= srcWidth);
451 if (srcCol1 == srcWidth) {
458 srcCol0 = srcWidth - 1 - srcCol0;
459 srcCol1 = srcWidth - 1 - srcCol1;
495 const GLint srcWidth = ABS(srcX1 - srcX0);
540 srcBuffer0 = malloc(pixelSize * srcWidth);
545 srcBuffer1 = malloc(pixelSize * srcWidth);
644 _mesa_unpack_ubyte_rgba_row(readFormat, srcWidth,
648 _mesa_unpack_rgba_row(readFormat, srcWidth,
661 _mesa_unpack_ubyte_rgba_row(readFormat, srcWidth,
663 _mesa_unpack_ubyte_rgba_row(readFormat, srcWidth,
667 _mesa_unpack_rgba_row(readFormat, srcWidth, src0, srcBuffer0);
668 _mesa_unpack_rgba_row(readFormat, srcWidth, src1, srcBuffer1);
676 resample_linear_row_ub(srcWidth, dstWidth, srcBuffer0, srcBuffer1,
680 resample_linear_row_float(srcWidth, dstWidth, srcBuffer0, srcBuffer1,