Lines Matching defs:width

228                   GLsizei width, GLsizei height,
243 dstStride = _mesa_image_row_stride(packing, width, format, type);
244 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
247 _mesa_map_renderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
255 bytesPerRow = texelBytes * width;
280 GLsizei width, GLsizei height,
298 _mesa_map_renderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
306 dstStride = _mesa_image_row_stride(packing, width, GL_DEPTH_COMPONENT, type);
307 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
311 _mesa_unpack_uint_z_row(rb->Format, width, map, (GLuint *)dst);
327 GLsizei width, GLsizei height,
344 assert(x + width <= (GLint) rb->Width);
348 read_uint_depth_pixels(ctx, x, y, width, height, type, pixels, packing)) {
352 dstStride = _mesa_image_row_stride(packing, width, GL_DEPTH_COMPONENT, type);
353 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
356 _mesa_map_renderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
363 depthValues = malloc(width * sizeof(GLfloat));
368 _mesa_unpack_float_z_row(rb->Format, width, map, depthValues);
369 _mesa_pack_depth_span(ctx, width, dst, type, depthValues, packing);
391 GLsizei width, GLsizei height,
404 _mesa_map_renderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
411 stencil = malloc(width * sizeof(GLubyte));
418 _mesa_unpack_ubyte_stencil_row(rb->Format, width, map, stencil);
419 dest = _mesa_image_address2d(packing, pixels, width, height,
422 _mesa_pack_stencil_span(ctx, width, type, dest, stencil, packing);
442 GLsizei width, GLsizei height,
467 dst_stride = _mesa_image_row_stride(packing, width, format, type);
471 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
475 _mesa_map_renderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
530 rgba_stride = width * 4 * sizeof(GLuint);
533 rgba_stride = width * 4 * sizeof(GLint);
537 rgba_stride = width * 4 * sizeof(GLfloat);
560 width, height,
565 _mesa_apply_rgba_transfer_ops(ctx, transferOps, width * height, rgba);
595 width, height,
603 luminance_stride = width * sizeof(GLfloat);
613 _mesa_pack_luminance_from_rgba_float(width * height, src,
622 width, height, NULL);
625 _mesa_pack_luminance_from_rgba_integer(width * height, src, !src_is_uint,
635 width, height, dst, dst);
649 GLsizei width, GLsizei height,
665 _mesa_map_renderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT,
673 _mesa_unpack_uint_24_8_depth_stencil_row(rb->Format, width,
693 GLsizei width, GLsizei height,
705 _mesa_map_renderbuffer(ctx, depthRb, x, y, width, height,
712 _mesa_map_renderbuffer(ctx, stencilRb, x, y, width, height,
720 stencilVals = malloc(width * sizeof(GLubyte));
724 _mesa_unpack_uint_z_row(depthRb->Format, width, depthMap, dst);
725 _mesa_unpack_ubyte_stencil_row(stencilRb->Format, width,
728 for (i = 0; i < width; i++) {
752 GLsizei width, GLsizei height,
769 _mesa_map_renderbuffer(ctx, depthRb, x, y, width, height,
777 _mesa_map_renderbuffer(ctx, stencilRb, x, y, width, height,
791 stencilVals = malloc(width * sizeof(GLubyte));
792 depthVals = malloc(width * sizeof(GLfloat));
796 _mesa_unpack_float_z_row(depthRb->Format, width, depthMap, depthVals);
797 _mesa_unpack_ubyte_stencil_row(stencilRb->Format, width,
800 _mesa_pack_depth_stencil_span(ctx, width, type, (GLuint *)dst,
830 GLsizei width, GLsizei height,
842 width, height,
845 dstStride = _mesa_image_row_stride(packing, width,
851 if (fast_read_depth_stencil_pixels(ctx, x, y, width, height,
855 if (fast_read_depth_stencil_pixels_separate(ctx, x, y, width, height,
860 slow_read_depth_stencil_pixels_separate(ctx, x, y, width, height,
873 GLint x, GLint y, GLsizei width, GLsizei height,
885 if (readpixels_memcpy(ctx, x, y, width, height, format, type,
894 read_stencil_pixels(ctx, x, y, width, height, type, pixels,
898 read_depth_pixels(ctx, x, y, width, height, type, pixels,
902 read_depth_stencil_pixels(ctx, x, y, width, height, type, pixels,
907 read_rgba_pixels(ctx, x, y, width, height, format, type, pixels,
1038 read_pixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
1051 width, height,
1056 if (!no_error && (width < 0 || height < 0)) {
1058 "glReadPixels(width=%d height=%d)", width, height );
1150 if (!_mesa_clip_readpixels(ctx, &x, &y, &width, &height, &clippedPacking))
1154 if (!_mesa_validate_pbo_access(2, &ctx->Pack, width, height, 1,
1178 st_ReadPixels(ctx, x, y, width, height,
1183 _mesa_ReadnPixelsARB_no_error(GLint x, GLint y, GLsizei width, GLsizei height,
1187 read_pixels(x, y, width, height, format, type, bufSize, pixels, true);
1191 _mesa_ReadnPixelsARB(GLint x, GLint y, GLsizei width, GLsizei height,
1195 read_pixels(x, y, width, height, format, type, bufSize, pixels, false);
1199 _mesa_ReadPixels_no_error(GLint x, GLint y, GLsizei width, GLsizei height,
1202 _mesa_ReadnPixelsARB_no_error(x, y, width, height, format, type, INT_MAX,
1207 _mesa_ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
1210 _mesa_ReadnPixelsARB(x, y, width, height, format, type, INT_MAX, pixels);