Lines Matching refs:dstWidth

44 NAME(GLint srcWidth, GLint dstWidth,			\
53 for (dstCol = 0; dstCol < dstWidth; dstCol++) { \
54 GLint srcCol = (dstCol * srcWidth) / dstWidth; \
74 for (dstCol = 0; dstCol < dstWidth; dstCol++) { \
75 GLint srcCol = (dstCol * srcWidth) / dstWidth; \
122 const GLint dstWidth = ABS(dstX1 - dstX0); in blit_nearest() local
148 typedef void (*resample_func)(GLint srcWidth, GLint dstWidth, in blit_nearest()
194 dstBuffer = malloc(MAX_PIXEL_BYTES * dstWidth); in blit_nearest()
289 dstWidth, dstHeight, in blit_nearest()
335 (*resampleRow)(srcWidth, dstWidth, srcBuffer, dstBuffer, invertX); in blit_nearest()
342 memcpy(dstRowStart, dstBuffer, pixelSize * dstWidth); in blit_nearest()
345 _mesa_pack_float_rgba_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
349 _mesa_pack_float_z_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
353 _mesa_pack_uint_z_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
357 _mesa_pack_ubyte_stencil_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
399 resample_linear_row_ub(GLint srcWidth, GLint dstWidth, in resample_linear_row_ub() argument
408 for (dstCol = 0; dstCol < dstWidth; dstCol++) { in resample_linear_row_ub()
409 const GLfloat srcCol = (dstCol + 0.5F) / dstWidth * srcWidth - 0.5F; in resample_linear_row_ub()
454 resample_linear_row_float(GLint srcWidth, GLint dstWidth, in resample_linear_row_float() argument
463 for (dstCol = 0; dstCol < dstWidth; dstCol++) { in resample_linear_row_float()
464 const GLfloat srcCol = (dstCol + 0.5F) / dstWidth * srcWidth - 0.5F; in resample_linear_row_float()
521 const GLint dstWidth = ABS(dstX1 - dstX0); in blit_linear() local
566 dstBuffer = malloc(pixelSize * dstWidth); in blit_linear()
691 resample_linear_row_ub(srcWidth, dstWidth, srcBuffer0, srcBuffer1, in blit_linear()
695 resample_linear_row_float(srcWidth, dstWidth, srcBuffer0, srcBuffer1, in blit_linear()
703 _mesa_pack_ubyte_rgba_row(drawFormat, dstWidth, dstBuffer, dst); in blit_linear()
706 _mesa_pack_float_rgba_row(drawFormat, dstWidth, dstBuffer, dst); in blit_linear()