Lines Matching refs:srcWidth
93 tempImage = malloc(srcWidth * srcHeight * 1 * sizeof(GLubyte)); in _mesa_texstore_red_rgtc1()
96 redRowStride = 1 * srcWidth * sizeof(GLubyte); in _mesa_texstore_red_rgtc1()
102 srcWidth, srcHeight, srcDepth, in _mesa_texstore_red_rgtc1()
109 dstRowDiff = dstRowStride >= (srcWidth * 2) ? dstRowStride - (((srcWidth + 3) & ~3) * 2) : 0; in _mesa_texstore_red_rgtc1()
113 srcaddr = tempImage + j * srcWidth; in _mesa_texstore_red_rgtc1()
114 for (i = 0; i < srcWidth; i += 4) { in _mesa_texstore_red_rgtc1()
115 if (srcWidth > i + 3) numxpixels = 4; in _mesa_texstore_red_rgtc1()
116 else numxpixels = srcWidth - i; in _mesa_texstore_red_rgtc1()
117 extractsrc_u(srcpixels, srcaddr, srcWidth, numxpixels, numypixels, 1); in _mesa_texstore_red_rgtc1()
146 redRowStride = 1 * srcWidth * sizeof(GLfloat); in _mesa_texstore_signed_red_rgtc1()
147 tempImage = malloc(srcWidth * srcHeight * 1 * sizeof(GLfloat)); in _mesa_texstore_signed_red_rgtc1()
155 srcWidth, srcHeight, srcDepth, in _mesa_texstore_signed_red_rgtc1()
162 dstRowDiff = dstRowStride >= (srcWidth * 2) ? dstRowStride - (((srcWidth + 3) & ~3) * 2) : 0; in _mesa_texstore_signed_red_rgtc1()
166 srcaddr = tempImage + j * srcWidth; in _mesa_texstore_signed_red_rgtc1()
167 for (i = 0; i < srcWidth; i += 4) { in _mesa_texstore_signed_red_rgtc1()
168 if (srcWidth > i + 3) numxpixels = 4; in _mesa_texstore_signed_red_rgtc1()
169 else numxpixels = srcWidth - i; in _mesa_texstore_signed_red_rgtc1()
170 extractsrc_s(srcpixels, srcaddr, srcWidth, numxpixels, numypixels, 1); in _mesa_texstore_signed_red_rgtc1()
205 rgRowStride = 2 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rg_rgtc2()
206 tempImage = malloc(srcWidth * srcHeight * 2 * sizeof(GLubyte)); in _mesa_texstore_rg_rgtc2()
214 srcWidth, srcHeight, srcDepth, in _mesa_texstore_rg_rgtc2()
221 dstRowDiff = dstRowStride >= (srcWidth * 4) ? dstRowStride - (((srcWidth + 3) & ~3) * 4) : 0; in _mesa_texstore_rg_rgtc2()
225 srcaddr = tempImage + j * srcWidth * 2; in _mesa_texstore_rg_rgtc2()
226 for (i = 0; i < srcWidth; i += 4) { in _mesa_texstore_rg_rgtc2()
227 if (srcWidth > i + 3) numxpixels = 4; in _mesa_texstore_rg_rgtc2()
228 else numxpixels = srcWidth - i; in _mesa_texstore_rg_rgtc2()
229 extractsrc_u(srcpixels, srcaddr, srcWidth, numxpixels, numypixels, 2); in _mesa_texstore_rg_rgtc2()
233 extractsrc_u(srcpixels, (GLubyte *)srcaddr + 1, srcWidth, numxpixels, numypixels, 2); in _mesa_texstore_rg_rgtc2()
270 rgRowStride = 2 * srcWidth * sizeof(GLfloat); in _mesa_texstore_signed_rg_rgtc2()
271 tempImage = malloc(srcWidth * srcHeight * 2 * sizeof(GLfloat)); in _mesa_texstore_signed_rg_rgtc2()
279 srcWidth, srcHeight, srcDepth, in _mesa_texstore_signed_rg_rgtc2()
286 dstRowDiff = dstRowStride >= (srcWidth * 4) ? dstRowStride - (((srcWidth + 3) & ~3) * 4) : 0; in _mesa_texstore_signed_rg_rgtc2()
290 srcaddr = tempImage + j * srcWidth * 2; in _mesa_texstore_signed_rg_rgtc2()
291 for (i = 0; i < srcWidth; i += 4) { in _mesa_texstore_signed_rg_rgtc2()
292 if (srcWidth > i + 3) numxpixels = 4; in _mesa_texstore_signed_rg_rgtc2()
293 else numxpixels = srcWidth - i; in _mesa_texstore_signed_rg_rgtc2()
295 extractsrc_s(srcpixels, srcaddr, srcWidth, numxpixels, numypixels, 2); in _mesa_texstore_signed_rg_rgtc2()
299 extractsrc_s(srcpixels, srcaddr + 1, srcWidth, numxpixels, numypixels, 2); in _mesa_texstore_signed_rg_rgtc2()