Lines Matching refs:format

83               GLenum format, GLenum type, GLvoid *pixels,
106 width, height, format, type,
132 GLenum format, GLenum type, GLvoid *pixels,
137 assert(format == GL_DEPTH_STENCIL);
152 width, height, format, type,
188 GLenum format, GLenum type, GLvoid *pixels,
193 assert(format == GL_STENCIL_INDEX);
209 width, height, format, type,
234 GLenum format, GLenum type, GLvoid *pixels,
252 width, height, format, type,
279 * Depending on the base format involved we may need to apply a rebase
280 * transform (for example: if we download to a Luminance format we want
320 GLenum format, GLenum type, GLvoid *pixels,
324 /* don't want to apply sRGB -> RGB conversion here so override the format */
370 dstStride = _mesa_image_row_stride(&ctx->Pack, width, format, type);
371 dstFormat = _mesa_format_from_format_and_type(format, type);
375 width, height, format, type,
384 _mesa_swap_bytes_2d_image(format, type, &ctx->Pack,
396 * Return a base GL format given the user-requested format
400 _mesa_base_pack_format(GLenum format)
402 switch (format) {
425 return format;
437 GLenum format, GLenum type, GLvoid *pixels,
441 /* don't want to apply sRGB -> RGB conversion here so override the format */
455 /* Describe the dst format */
456 dst_is_integer = _mesa_is_enum_format_integer(format);
457 dst_format = _mesa_format_from_format_and_type(format, type);
458 dst_stride = _mesa_image_row_stride(&ctx->Pack, width, format, type);
462 * first so we can call _mesa_apply_rgba_transfer_ops. If the dst format is
489 width, height, format, type,
501 /* If we are lucky and the dst format matches the RGBA format we need
506 if (format == rgba_format) {
531 /* If we were lucky and our RGBA conversion matches the dst format,
548 /* Do the conversion to destination format */
557 _mesa_swap_bytes_2d_image(format, type, &ctx->Pack,
577 GLenum format, GLenum type, GLvoid *pixels,
591 format == GL_LUMINANCE ||
592 format == GL_LUMINANCE_ALPHA) {
601 format, type,
608 format, type,
622 GLenum format, GLenum type, GLvoid *pixels,
631 * format to the user's format/type.
640 format, type,
654 format, type, 0, 0);
656 _mesa_image_row_stride(&ctx->Pack, width, format, type);
698 GLenum format, GLenum type, GLvoid *pixels,
739 format, type, pixels, texImage)) {
742 else if (format == GL_DEPTH_COMPONENT) {
744 width, height, depth, format, type, pixels, texImage);
746 else if (format == GL_DEPTH_STENCIL_EXT) {
748 width, height, depth, format, type, pixels,
751 else if (format == GL_STENCIL_INDEX) {
753 width, height, depth, format, type, pixels, texImage);
755 else if (format == GL_YCBCR_MESA) {
757 width, height, depth, format, type, pixels, texImage);
761 width, height, depth, format, type, pixels, texImage);
1097 GLenum format, GLenum type, GLsizei clientMemSize,
1104 format, type, clientMemSize, pixels)) {
1141 GLenum format, const char *caller)
1153 /* Make sure the requested image format is compatible with the
1154 * texture's format.
1156 if (_mesa_is_color_format(format)
1159 "%s(format mismatch)", caller);
1162 else if (_mesa_is_depth_format(format)
1166 "%s(format mismatch)", caller);
1169 else if (_mesa_is_stencil_format(format)
1172 "%s(format=GL_STENCIL_INDEX)", caller);
1175 else if (_mesa_is_stencil_format(format)
1179 "%s(format mismatch)", caller);
1182 else if (_mesa_is_ycbcr_format(format)
1185 "%s(format mismatch)", caller);
1188 else if (_mesa_is_depthstencil_format(format)
1191 "%s(format mismatch)", caller);
1194 else if (!_mesa_is_stencil_format(format) &&
1195 _mesa_is_enum_format_integer(format) !=
1198 "%s(format mismatch)", caller);
1215 GLenum format, GLenum type, GLsizei bufSize,
1232 err = _mesa_error_check_format_and_type(ctx, format, type);
1234 _mesa_error(ctx, err, "%s(format/type)", caller);
1267 GLenum format, GLenum type, GLsizei bufSize,
1275 format, type, bufSize, pixels, caller)) {
1287 format, type, bufSize, pixels, caller)) {
1292 if (teximage_error_check(ctx, texImage, format, caller)) {
1310 GLenum format, GLenum type, GLsizei bufSize,
1318 format, type, bufSize, pixels, caller)) {
1329 format, type, bufSize, pixels, caller)) {
1334 if (teximage_error_check(ctx, texImage, format, caller)) {
1379 * \param format pixel data format for returned image.
1391 GLenum format, GLenum type,
1409 _mesa_debug(ctx, "%s(tex %u) format = %s, w=%d, h=%d,"
1414 format, type);
1420 format, type);
1443 format, type, pixels, texImage);
1456 GLenum format, GLenum type,
1475 format, type, bufSize, pixels, caller)) {
1481 format, type, pixels, caller);
1486 _mesa_GetnTexImageARB(GLenum target, GLint level, GLenum format, GLenum type,
1497 _get_texture_image(ctx, NULL, target, level, format, type,
1503 _mesa_GetTexImage(GLenum target, GLint level, GLenum format, GLenum type,
1514 _get_texture_image(ctx, NULL, target, level, format, type,
1520 _mesa_GetTextureImage(GLuint texture, GLint level, GLenum format, GLenum type,
1537 _get_texture_image(ctx, texObj, texObj->Target, level, format, type,
1544 GLenum format, GLenum type, GLvoid *pixels)
1561 _get_texture_image(ctx, texObj, target, level, format, type,
1568 GLenum format, GLenum type, GLvoid *pixels)
1594 format, type, INT_MAX, pixels, caller)) {
1600 format, type, pixels, caller);
1608 GLenum format, GLenum type, GLsizei bufSize,
1629 format, type, bufSize, pixels, caller)) {
1635 format, type, pixels, caller);
1645 packed_compressed_size(GLuint dimensions, mesa_format format,
1652 _mesa_compute_compressed_pixelstore(dimensions, format,
1785 "%s(tex %u) format = %s, w=%d, h=%d\n",