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()
290 dstWidth, dstHeight, in blit_nearest()
337 resampleRow(srcWidth, dstWidth, srcBuffer, dstBuffer, invertX); in blit_nearest()
344 memcpy(dstRowStart, dstBuffer, pixelSize * dstWidth); in blit_nearest()
347 _mesa_pack_float_rgba_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
351 _mesa_pack_float_z_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
355 _mesa_pack_uint_z_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
359 _mesa_pack_ubyte_stencil_row(drawRb->Format, dstWidth, dstBuffer, in blit_nearest()
401 resample_linear_row_ub(GLint srcWidth, GLint dstWidth, in resample_linear_row_ub() argument
410 for (dstCol = 0; dstCol < dstWidth; dstCol++) { in resample_linear_row_ub()
411 const GLfloat srcCol = (dstCol + 0.5F) / dstWidth * srcWidth - 0.5F; in resample_linear_row_ub()
456 resample_linear_row_float(GLint srcWidth, GLint dstWidth, in resample_linear_row_float() argument
465 for (dstCol = 0; dstCol < dstWidth; dstCol++) { in resample_linear_row_float()
466 const GLfloat srcCol = (dstCol + 0.5F) / dstWidth * srcWidth - 0.5F; in resample_linear_row_float()
523 const GLint dstWidth = ABS(dstX1 - dstX0); in blit_linear() local
568 dstBuffer = malloc(pixelSize * dstWidth); in blit_linear()
696 resample_linear_row_ub(srcWidth, dstWidth, srcBuffer0, srcBuffer1, in blit_linear()
700 resample_linear_row_float(srcWidth, dstWidth, srcBuffer0, srcBuffer1, in blit_linear()
708 _mesa_pack_ubyte_rgba_row(drawFormat, dstWidth, dstBuffer, dst); in blit_linear()
711 _mesa_pack_float_rgba_row(drawFormat, dstWidth, dstBuffer, dst); in blit_linear()