Defines |
| #define | CEILING(A, B) ( (A) % (B) == 0 ? (A)/(B) : (A)/(B)+1 ) |
| | Compute ceiling of integer quotient of A divided by B. More...
|
| #define | SWAP2BYTE(VALUE) |
| #define | SWAP4BYTE(VALUE) |
| #define | PROCESS(INDEX, CHANNEL, DEFAULT, TYPE, CONVERSION) |
Functions |
| void | flip_bytes (GLubyte *p, GLuint n) |
| | Flip the 8 bits in each byte of the given array. More...
|
| void | _mesa_swap2 (GLushort *p, GLuint n) |
| | Flip the order of the 2 bytes in each word in the given array. More...
|
| void | _mesa_swap4 (GLuint *p, GLuint n) |
| GLint | _mesa_sizeof_type (GLenum type) |
| | Get the size of a GL data type. More...
|
| GLint | _mesa_sizeof_packed_type (GLenum type) |
| | Same as _mesa_sizeof_type() but also accepting the packed pixel format data types. More...
|
| GLint | _mesa_components_in_format (GLenum format) |
| | Get the number of components in a pixel format. More...
|
| GLint | _mesa_bytes_per_pixel (GLenum format, GLenum type) |
| | Get the bytes per pixel of pixel format type pair. More...
|
| GLboolean | _mesa_is_legal_format_and_type (GLcontext *ctx, GLenum format, GLenum type) |
| | Test for a legal pixel format and type. More...
|
| GLvoid * | _mesa_image_address (const struct gl_pixelstore_attrib *packing, const GLvoid *image, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint img, GLint row, GLint column) |
| | Get the address of a pixel in an image (actually a volume). More...
|
| GLint | _mesa_image_row_stride (const struct gl_pixelstore_attrib *packing, GLint width, GLenum format, GLenum type) |
| | Compute the stride between image rows. More...
|
| GLint | _mesa_image_image_stride (const struct gl_pixelstore_attrib *packing, GLint width, GLint height, GLenum format, GLenum type) |
| void | _mesa_unpack_polygon_stipple (const GLubyte *pattern, GLuint dest[32], const struct gl_pixelstore_attrib *unpacking) |
| void | _mesa_pack_polygon_stipple (const GLuint pattern[32], GLubyte *dest, const struct gl_pixelstore_attrib *packing) |
| GLvoid * | _mesa_unpack_bitmap (GLint width, GLint height, const GLubyte *pixels, const struct gl_pixelstore_attrib *packing) |
| void | _mesa_pack_bitmap (GLint width, GLint height, const GLubyte *source, GLubyte *dest, const struct gl_pixelstore_attrib *packing) |
| void | _mesa_apply_rgba_transfer_ops (GLcontext *ctx, GLuint transferOps, GLuint n, GLfloat rgba[][4]) |
| | Apply various pixel transfer operations to an array of RGBA pixels as indicated by the transferOps bitmask. More...
|
| void | _mesa_pack_rgba_span_float (GLcontext *ctx, GLuint n, CONST GLfloat rgbaIn[][4], GLenum dstFormat, GLenum dstType, GLvoid *dstAddr, const struct gl_pixelstore_attrib *dstPacking, GLuint transferOps) |
| void | _mesa_pack_rgba_span_chan (GLcontext *ctx, GLuint n, CONST GLchan srcRgba[][4], GLenum dstFormat, GLenum dstType, GLvoid *dstAddr, const struct gl_pixelstore_attrib *dstPacking, GLuint transferOps) |
| void | extract_uint_indexes (GLuint n, GLuint indexes[], GLenum srcFormat, GLenum srcType, const GLvoid *src, const struct gl_pixelstore_attrib *unpack) |
| void | extract_float_rgba (GLuint n, GLfloat rgba[][4], GLenum srcFormat, GLenum srcType, const GLvoid *src, GLboolean swapBytes) |
| void | _mesa_unpack_color_span_chan (GLcontext *ctx, GLuint n, GLenum dstFormat, GLchan dest[], GLenum srcFormat, GLenum srcType, const GLvoid *source, const struct gl_pixelstore_attrib *srcPacking, GLuint transferOps) |
| void | _mesa_unpack_color_span_float (GLcontext *ctx, GLuint n, GLenum dstFormat, GLfloat dest[], GLenum srcFormat, GLenum srcType, const GLvoid *source, const struct gl_pixelstore_attrib *srcPacking, GLuint transferOps) |
| | Same as _mesa_unpack_color_span_chan(), but return GLfloat data instead of GLchan. More...
|
| void | _mesa_unpack_index_span (const GLcontext *ctx, GLuint n, GLenum dstType, GLvoid *dest, GLenum srcType, const GLvoid *source, const struct gl_pixelstore_attrib *srcPacking, GLuint transferOps) |
| void | _mesa_pack_index_span (const GLcontext *ctx, GLuint n, GLenum dstType, GLvoid *dest, const GLuint *source, const struct gl_pixelstore_attrib *dstPacking, GLuint transferOps) |
| void | _mesa_unpack_stencil_span (const GLcontext *ctx, GLuint n, GLenum dstType, GLvoid *dest, GLenum srcType, const GLvoid *source, const struct gl_pixelstore_attrib *srcPacking, GLuint transferOps) |
| void | _mesa_pack_stencil_span (const GLcontext *ctx, GLuint n, GLenum dstType, GLvoid *dest, const GLstencil *source, const struct gl_pixelstore_attrib *dstPacking) |
| void | _mesa_unpack_depth_span (const GLcontext *ctx, GLuint n, GLfloat *dest, GLenum srcType, const GLvoid *source, const struct gl_pixelstore_attrib *srcPacking) |
| void | _mesa_pack_depth_span (const GLcontext *ctx, GLuint n, GLvoid *dest, GLenum dstType, const GLfloat *depthSpan, const struct gl_pixelstore_attrib *dstPacking) |
| void * | _mesa_unpack_image (GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels, const struct gl_pixelstore_attrib *unpack) |
| | Unpack image data. More...
|