ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

texstore.c File Reference
#include "glheader.h"
#include "bufferobj.h"
#include "colormac.h"
#include "context.h"
#include "image.h"
#include "macros.h"
#include "mipmap.h"
#include "imports.h"
#include "texcompress.h"
#include "texformat.h"
#include "teximage.h"
#include "texstore.h"
#include "enums.h"

Go to the source code of this file.

Defines

#define MAP1(x)   MAP4(x, ZERO, ZERO, ZERO)
#define MAP2(x, y)   MAP4(x, y, ZERO, ZERO)
#define MAP3(x, y, z)   MAP4(x, y, z, ZERO)
#define MAP4(x, y, z, w)   { x, y, z, w, ZERO, ONE }
#define SWZ_CPY(dst, src, count, dstComps, srcComps)
#define STRIDE_3D   0

Enumerations

enum  { ZERO = 4, ONE = 5 }
enum  {
  IDX_LUMINANCE = 0, IDX_ALPHA, IDX_INTENSITY, IDX_LUMINANCE_ALPHA,
  IDX_RGB, IDX_RGBA, IDX_RED, IDX_GREEN,
  IDX_BLUE, IDX_BGR, IDX_BGRA, IDX_ABGR,
  MAX_IDX
}

Functions

static GLboolean can_swizzle (GLenum logicalBaseFormat)
static int get_map_idx (GLenum value)
static void compute_component_mapping (GLenum inFormat, GLenum outFormat, GLubyte *map)
static void _mesa_adjust_image_for_convolution (GLcontext *ctx, GLuint dims, GLsizei *srcWidth, GLsizei *srcHeight)
static GLfloatmake_temp_float_image (GLcontext *ctx, GLuint dims, GLenum logicalBaseFormat, GLenum textureBaseFormat, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking)
GLchan_mesa_make_temp_chan_image (GLcontext *ctx, GLuint dims, GLenum logicalBaseFormat, GLenum textureBaseFormat, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking)
static void swizzle_copy (GLubyte *dst, GLuint dstComponents, const GLubyte *src, GLuint srcComponents, const GLubyte *map, GLuint count)
static const GLubytetype_mapping (GLenum srcType)
static const GLubytebyteswap_mapping (GLboolean swapBytes, GLenum srcType)
static void _mesa_swizzle_ubyte_image (GLcontext *ctx, GLuint dimensions, GLenum srcFormat, GLenum srcType, GLenum baseInternalFormat, const GLubyte *rgba2dst, GLuint dstComponents, GLvoid *dstAddr, GLint dstXoffset, GLint dstYoffset, GLint dstZoffset, GLint dstRowStride, const GLuint *dstImageOffsets, GLint srcWidth, GLint srcHeight, GLint srcDepth, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking)
static void memcpy_texture (GLcontext *ctx, GLuint dimensions, const struct gl_texture_format *dstFormat, GLvoid *dstAddr, GLint dstXoffset, GLint dstYoffset, GLint dstZoffset, GLint dstRowStride, const GLuint *dstImageOffsets, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLenum srcFormat, GLenum srcType, const GLvoid *srcAddr, const struct gl_pixelstore_attrib *srcPacking)
GLboolean _mesa_texstore_rgba (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_z32 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_z16 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_rgb565 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_rgba8888 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_argb8888 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_rgb888 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_bgr888 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_rgba4444 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_argb4444 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_rgba5551 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_argb1555 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_al88 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_rgb332 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_a8 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_ci8 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_ycbcr (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_z24_s8 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_s8_z24 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_rgba_float32 (TEXSTORE_PARAMS)
GLboolean _mesa_texstore_rgba_float16 (TEXSTORE_PARAMS)
const GLvoid_mesa_validate_pbo_teximage (GLcontext *ctx, GLuint dimensions, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels, const struct gl_pixelstore_attrib *unpack, const char *funcName)
const GLvoid_mesa_validate_pbo_compressed_teximage (GLcontext *ctx, GLsizei imageSize, const GLvoid *pixels, const struct gl_pixelstore_attrib *packing, const char *funcName)
void _mesa_unmap_teximage_pbo (GLcontext *ctx, const struct gl_pixelstore_attrib *unpack)
static void fetch_texel_float_to_chan (const struct gl_texture_image *texImage, GLint i, GLint j, GLint k, GLchan *texelOut)
static void fetch_texel_chan_to_float (const struct gl_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texelOut)
void _mesa_set_fetch_functions (struct gl_texture_image *texImage, GLuint dims)
static void choose_texture_format (GLcontext *ctx, struct gl_texture_image *texImage, GLuint dims, GLenum format, GLenum type, GLint internalFormat)
void _mesa_store_teximage1d (GLcontext *ctx, GLenum target, GLint level, GLint internalFormat, GLint width, GLint border, GLenum format, GLenum type, const GLvoid *pixels, const struct gl_pixelstore_attrib *packing, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_teximage2d (GLcontext *ctx, GLenum target, GLint level, GLint internalFormat, GLint width, GLint height, GLint border, GLenum format, GLenum type, const void *pixels, const struct gl_pixelstore_attrib *packing, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_teximage3d (GLcontext *ctx, GLenum target, GLint level, GLint internalFormat, GLint width, GLint height, GLint depth, GLint border, GLenum format, GLenum type, const void *pixels, const struct gl_pixelstore_attrib *packing, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_texsubimage1d (GLcontext *ctx, GLenum target, GLint level, GLint xoffset, GLint width, GLenum format, GLenum type, const void *pixels, const struct gl_pixelstore_attrib *packing, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_texsubimage2d (GLcontext *ctx, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint width, GLint height, GLenum format, GLenum type, const void *pixels, const struct gl_pixelstore_attrib *packing, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_texsubimage3d (GLcontext *ctx, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint width, GLint height, GLint depth, GLenum format, GLenum type, const void *pixels, const struct gl_pixelstore_attrib *packing, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_compressed_teximage1d (GLcontext *ctx, GLenum target, GLint level, GLint internalFormat, GLint width, GLint border, GLsizei imageSize, const GLvoid *data, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_compressed_teximage2d (GLcontext *ctx, GLenum target, GLint level, GLint internalFormat, GLint width, GLint height, GLint border, GLsizei imageSize, const GLvoid *data, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_compressed_teximage3d (GLcontext *ctx, GLenum target, GLint level, GLint internalFormat, GLint width, GLint height, GLint depth, GLint border, GLsizei imageSize, const GLvoid *data, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_compressed_texsubimage1d (GLcontext *ctx, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_compressed_texsubimage2d (GLcontext *ctx, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_store_compressed_texsubimage3d (GLcontext *ctx, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_get_teximage (GLcontext *ctx, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
void _mesa_get_compressed_teximage (GLcontext *ctx, GLenum target, GLint level, GLvoid *img, struct gl_texture_object *texObj, struct gl_texture_image *texImage)

Variables

struct {
   GLubyte   format_idx
   GLubyte   to_rgba [6]
   GLubyte   from_rgba [6]
mappings [MAX_IDX]
static const GLubyte map_identity [6] = { 0, 1, 2, 3, ZERO, ONE }
static const GLubyte map_3210 [6] = { 3, 2, 1, 0, ZERO, ONE }

Generated on Sun May 27 2012 04:49:01 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.