Lines Matching refs:srcWidth
44 NAME(GLint srcWidth, GLint dstWidth, \
54 GLint srcCol = (dstCol * srcWidth) / dstWidth; \
56 assert(srcCol < srcWidth); \
57 srcCol = srcWidth - 1 - srcCol; /* flip */ \
75 GLint srcCol = (dstCol * srcWidth) / dstWidth; \
77 assert(srcCol < srcWidth); \
121 const GLint srcWidth = ABS(srcX1 - srcX0);
148 typedef void (*resample_func)(GLint srcWidth, GLint dstWidth,
193 srcBuffer = malloc(MAX_PIXEL_BYTES * srcWidth);
282 srcWidth, srcHeight,
317 memcpy(srcBuffer, srcRowStart, pixelSize * srcWidth);
320 _mesa_unpack_rgba_row(readRb->Format, srcWidth, srcRowStart,
324 _mesa_unpack_float_z_row(readRb->Format, srcWidth, srcRowStart,
328 _mesa_unpack_uint_z_row(readRb->Format, srcWidth, srcRowStart,
332 _mesa_unpack_ubyte_stencil_row(readRb->Format, srcWidth,
337 (*resampleRow)(srcWidth, dstWidth, srcBuffer, dstBuffer, invertX);
401 resample_linear_row_ub(GLint srcWidth, GLint dstWidth,
411 const GLfloat srcCol = (dstCol + 0.5F) / dstWidth * srcWidth - 0.5F;
417 assert(srcCol0 < srcWidth);
418 assert(srcCol1 <= srcWidth);
420 if (srcCol1 == srcWidth) {
427 srcCol0 = srcWidth - 1 - srcCol0;
428 srcCol1 = srcWidth - 1 - srcCol1;
456 resample_linear_row_float(GLint srcWidth, GLint dstWidth,
466 const GLfloat srcCol = (dstCol + 0.5F) / dstWidth * srcWidth - 0.5F;
472 assert(srcCol0 < srcWidth);
473 assert(srcCol1 <= srcWidth);
475 if (srcCol1 == srcWidth) {
482 srcCol0 = srcWidth - 1 - srcCol0;
483 srcCol1 = srcWidth - 1 - srcCol1;
522 const GLint srcWidth = ABS(srcX1 - srcX0);
566 srcBuffer0 = malloc(pixelSize * srcWidth);
567 srcBuffer1 = malloc(pixelSize * srcWidth);
664 _mesa_unpack_ubyte_rgba_row(readFormat, srcWidth,
668 _mesa_unpack_rgba_row(readFormat, srcWidth,
681 _mesa_unpack_ubyte_rgba_row(readFormat, srcWidth,
683 _mesa_unpack_ubyte_rgba_row(readFormat, srcWidth,
687 _mesa_unpack_rgba_row(readFormat, srcWidth, src0, srcBuffer0);
688 _mesa_unpack_rgba_row(readFormat, srcWidth, src1, srcBuffer1);
696 resample_linear_row_ub(srcWidth, dstWidth, srcBuffer0, srcBuffer1,
700 resample_linear_row_float(srcWidth, dstWidth, srcBuffer0, srcBuffer1,