Lines Matching refs:width

56 			GLsizei width, GLsizei height,
78 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
86 dstStride = _mesa_image_row_stride(packing, width, GL_DEPTH_COMPONENT, type);
87 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
92 _mesa_unpack_uint_z_row(rb->Format, width, map, (GLuint *)dst);
95 memcpy(dst, map, width * 2);
112 GLsizei width, GLsizei height,
129 ASSERT(x + width <= (GLint) rb->Width);
132 if (fast_read_depth_pixels(ctx, x, y, width, height, type, pixels, packing))
135 dstStride = _mesa_image_row_stride(packing, width, GL_DEPTH_COMPONENT, type);
136 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
139 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
146 depthValues = (GLfloat *) malloc(width * sizeof(GLfloat));
151 _mesa_unpack_float_z_row(rb->Format, width, map, depthValues);
152 _mesa_pack_depth_span(ctx, width, dst, type, depthValues, packing);
174 GLsizei width, GLsizei height,
187 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
194 stencil = (GLubyte *) malloc(width * sizeof(GLubyte));
201 _mesa_unpack_ubyte_stencil_row(rb->Format, width, map, stencil);
202 dest = _mesa_image_address2d(packing, pixels, width, height,
205 _mesa_pack_stencil_span(ctx, width, type, dest, stencil, packing);
227 GLsizei width, GLsizei height,
265 dstStride = _mesa_image_row_stride(packing, width, format, type);
266 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
269 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
282 for (i = 0; i < width; i++) {
297 for (i = 0; i < width; i++) {
306 memcpy(dst, map, width * texelBytes);
320 GLsizei width, GLsizei height,
334 dstStride = _mesa_image_row_stride(packing, width, format, type);
335 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
338 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
345 rgba = malloc(width * MAX_PIXEL_BYTES);
351 _mesa_unpack_uint_rgba_row(rbFormat, width, map, (GLuint (*)[4]) rgba);
352 _mesa_rebase_rgba_uint(width, (GLuint (*)[4]) rgba,
355 _mesa_pack_rgba_span_from_uints(ctx, width, (GLuint (*)[4]) rgba, format,
358 _mesa_pack_rgba_span_from_ints(ctx, width, (GLint (*)[4]) rgba, format,
362 _mesa_unpack_rgba_row(rbFormat, width, map, (GLfloat (*)[4]) rgba);
363 _mesa_rebase_rgba_float(width, (GLfloat (*)[4]) rgba,
365 _mesa_pack_rgba_span_float(ctx, width, (GLfloat (*)[4]) rgba, format,
384 GLsizei width, GLsizei height,
401 if (fast_read_rgba_pixels_memcpy(ctx, x, y, width, height,
407 slow_read_rgba_pixels(ctx, x, y, width, height,
418 GLsizei width, GLsizei height,
434 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
442 _mesa_unpack_uint_24_8_depth_stencil_row(rb->Format, width,
462 GLsizei width, GLsizei height,
474 ctx->Driver.MapRenderbuffer(ctx, depthRb, x, y, width, height,
481 ctx->Driver.MapRenderbuffer(ctx, stencilRb, x, y, width, height,
489 stencilVals = (GLubyte *) malloc(width * sizeof(GLubyte));
493 _mesa_unpack_uint_z_row(depthRb->Format, width, depthMap, dst);
494 _mesa_unpack_ubyte_stencil_row(stencilRb->Format, width,
497 for (i = 0; i < width; i++) {
521 GLsizei width, GLsizei height,
538 ctx->Driver.MapRenderbuffer(ctx, depthRb, x, y, width, height,
546 ctx->Driver.MapRenderbuffer(ctx, stencilRb, x, y, width, height,
560 stencilVals = (GLubyte *) malloc(width * sizeof(GLubyte));
561 depthVals = (GLfloat *) malloc(width * sizeof(GLfloat));
565 _mesa_unpack_float_z_row(depthRb->Format, width, depthMap, depthVals);
566 _mesa_unpack_ubyte_stencil_row(stencilRb->Format, width,
569 _mesa_pack_depth_stencil_span(ctx, width, type, (GLuint *)dst,
599 GLsizei width, GLsizei height,
611 width, height,
614 dstStride = _mesa_image_row_stride(packing, width,
620 if (fast_read_depth_stencil_pixels(ctx, x, y, width, height,
624 if (fast_read_depth_stencil_pixels_separate(ctx, x, y, width, height,
629 slow_read_depth_stencil_pixels_separate(ctx, x, y, width, height,
642 GLint x, GLint y, GLsizei width, GLsizei height,
653 if (_mesa_clip_readpixels(ctx, &x, &y, &width, &height, &clippedPacking)) {
660 read_stencil_pixels(ctx, x, y, width, height, type, pixels,
664 read_depth_pixels(ctx, x, y, width, height, type, pixels,
668 read_depth_stencil_pixels(ctx, x, y, width, height, type, pixels,
673 read_rgba_pixels(ctx, x, y, width, height, format, type, pixels,
684 _mesa_ReadnPixelsARB( GLint x, GLint y, GLsizei width, GLsizei height,
697 width, height,
702 if (width < 0 || height < 0) {
704 "glReadPixels(width=%d height=%d)", width, height );
777 if (width == 0 || height == 0)
780 if (!_mesa_validate_pbo_access(2, &ctx->Pack, width, height, 1,
800 ctx->Driver.ReadPixels(ctx, x, y, width, height,
805 _mesa_ReadPixels( GLint x, GLint y, GLsizei width, GLsizei height,
808 _mesa_ReadnPixelsARB(x, y, width, height, format, type, INT_MAX, pixels);