2 * Mesa 3-D graphics library
4 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
5 * Copyright (C) 1999-2010 VMware, Inc. All Rights Reserved.
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 _mesa_unpack_polygon_stipple(const GLubyte
*pattern
, GLuint dest
[32],
35 const struct gl_pixelstore_attrib
*unpacking
);
39 _mesa_pack_polygon_stipple(const GLuint pattern
[32], GLubyte
*dest
,
40 const struct gl_pixelstore_attrib
*packing
);
44 _mesa_unpack_bitmap(GLint width
, GLint height
, const GLubyte
*pixels
,
45 const struct gl_pixelstore_attrib
*packing
);
48 _mesa_pack_bitmap(GLint width
, GLint height
, const GLubyte
*source
,
49 GLubyte
*dest
, const struct gl_pixelstore_attrib
*packing
);
53 _mesa_pack_rgba_span_float(struct gl_context
*ctx
, GLuint n
,
55 GLenum dstFormat
, GLenum dstType
, GLvoid
*dstAddr
,
56 const struct gl_pixelstore_attrib
*dstPacking
,
57 GLbitfield transferOps
);
61 _mesa_unpack_color_span_chan(struct gl_context
*ctx
,
62 GLuint n
, GLenum dstFormat
, GLchan dest
[],
63 GLenum srcFormat
, GLenum srcType
,
65 const struct gl_pixelstore_attrib
*srcPacking
,
66 GLbitfield transferOps
);
70 _mesa_unpack_color_span_float(struct gl_context
*ctx
,
71 GLuint n
, GLenum dstFormat
, GLfloat dest
[],
72 GLenum srcFormat
, GLenum srcType
,
74 const struct gl_pixelstore_attrib
*srcPacking
,
75 GLbitfield transferOps
);
78 _mesa_unpack_color_span_uint(struct gl_context
*ctx
,
79 GLuint n
, GLenum dstFormat
, GLuint
*dest
,
80 GLenum srcFormat
, GLenum srcType
,
82 const struct gl_pixelstore_attrib
*srcPacking
);
85 _mesa_unpack_dudv_span_byte(struct gl_context
*ctx
,
86 GLuint n
, GLenum dstFormat
, GLbyte dest
[],
87 GLenum srcFormat
, GLenum srcType
,
89 const struct gl_pixelstore_attrib
*srcPacking
,
90 GLbitfield transferOps
);
93 _mesa_unpack_index_span(struct gl_context
*ctx
, GLuint n
,
94 GLenum dstType
, GLvoid
*dest
,
95 GLenum srcType
, const GLvoid
*source
,
96 const struct gl_pixelstore_attrib
*srcPacking
,
97 GLbitfield transferOps
);
101 _mesa_pack_index_span(struct gl_context
*ctx
, GLuint n
,
102 GLenum dstType
, GLvoid
*dest
, const GLuint
*source
,
103 const struct gl_pixelstore_attrib
*dstPacking
,
104 GLbitfield transferOps
);
108 _mesa_unpack_stencil_span(struct gl_context
*ctx
, GLuint n
,
109 GLenum dstType
, GLvoid
*dest
,
110 GLenum srcType
, const GLvoid
*source
,
111 const struct gl_pixelstore_attrib
*srcPacking
,
112 GLbitfield transferOps
);
115 _mesa_pack_stencil_span(struct gl_context
*ctx
, GLuint n
,
116 GLenum dstType
, GLvoid
*dest
, const GLstencil
*source
,
117 const struct gl_pixelstore_attrib
*dstPacking
);
121 _mesa_unpack_depth_span(struct gl_context
*ctx
, GLuint n
,
122 GLenum dstType
, GLvoid
*dest
, GLuint depthMax
,
123 GLenum srcType
, const GLvoid
*source
,
124 const struct gl_pixelstore_attrib
*srcPacking
);
127 _mesa_pack_depth_span(struct gl_context
*ctx
, GLuint n
, GLvoid
*dest
,
128 GLenum dstType
, const GLfloat
*depthSpan
,
129 const struct gl_pixelstore_attrib
*dstPacking
);
133 _mesa_pack_depth_stencil_span(struct gl_context
*ctx
,GLuint n
,
134 GLenum dstType
, GLuint
*dest
,
135 const GLfloat
*depthVals
,
136 const GLstencil
*stencilVals
,
137 const struct gl_pixelstore_attrib
*dstPacking
);
141 _mesa_unpack_image(GLuint dimensions
,
142 GLsizei width
, GLsizei height
, GLsizei depth
,
143 GLenum format
, GLenum type
, const GLvoid
*pixels
,
144 const struct gl_pixelstore_attrib
*unpack
);