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 OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 * OTHER DEALINGS IN THE SOFTWARE.
35 _mesa_unpack_polygon_stipple(const GLubyte
*pattern
, GLuint dest
[32],
36 const struct gl_pixelstore_attrib
*unpacking
);
40 _mesa_pack_polygon_stipple(const GLuint pattern
[32], GLubyte
*dest
,
41 const struct gl_pixelstore_attrib
*packing
);
45 _mesa_pack_bitmap(GLint width
, GLint height
, const GLubyte
*source
,
46 GLubyte
*dest
, const struct gl_pixelstore_attrib
*packing
);
50 _mesa_pack_rgba_span_float(struct gl_context
*ctx
, GLuint n
,
52 GLenum dstFormat
, GLenum dstType
, GLvoid
*dstAddr
,
53 const struct gl_pixelstore_attrib
*dstPacking
,
54 GLbitfield transferOps
);
58 _mesa_unpack_color_span_ubyte(struct gl_context
*ctx
,
59 GLuint n
, GLenum dstFormat
, GLubyte dest
[],
60 GLenum srcFormat
, GLenum srcType
,
62 const struct gl_pixelstore_attrib
*srcPacking
,
63 GLbitfield transferOps
);
67 _mesa_unpack_color_span_float(struct gl_context
*ctx
,
68 GLuint n
, GLenum dstFormat
, GLfloat dest
[],
69 GLenum srcFormat
, GLenum srcType
,
71 const struct gl_pixelstore_attrib
*srcPacking
,
72 GLbitfield transferOps
);
76 _mesa_unpack_index_span(struct gl_context
*ctx
, GLuint n
,
77 GLenum dstType
, GLvoid
*dest
,
78 GLenum srcType
, const GLvoid
*source
,
79 const struct gl_pixelstore_attrib
*srcPacking
,
80 GLbitfield transferOps
);
84 _mesa_pack_index_span(struct gl_context
*ctx
, GLuint n
,
85 GLenum dstType
, GLvoid
*dest
, const GLuint
*source
,
86 const struct gl_pixelstore_attrib
*dstPacking
,
87 GLbitfield transferOps
);
91 _mesa_unpack_stencil_span(struct gl_context
*ctx
, GLuint n
,
92 GLenum dstType
, GLvoid
*dest
,
93 GLenum srcType
, const GLvoid
*source
,
94 const struct gl_pixelstore_attrib
*srcPacking
,
95 GLbitfield transferOps
);
98 _mesa_pack_stencil_span(struct gl_context
*ctx
, GLuint n
,
99 GLenum dstType
, GLvoid
*dest
, const GLubyte
*source
,
100 const struct gl_pixelstore_attrib
*dstPacking
);
104 _mesa_unpack_depth_span(struct gl_context
*ctx
, GLuint n
,
105 GLenum dstType
, GLvoid
*dest
, GLuint depthMax
,
106 GLenum srcType
, const GLvoid
*source
,
107 const struct gl_pixelstore_attrib
*srcPacking
);
110 _mesa_pack_depth_span(struct gl_context
*ctx
, GLuint n
, GLvoid
*dest
,
111 GLenum dstType
, const GLfloat
*depthSpan
,
112 const struct gl_pixelstore_attrib
*dstPacking
);
116 _mesa_pack_depth_stencil_span(struct gl_context
*ctx
,GLuint n
,
117 GLenum dstType
, GLuint
*dest
,
118 const GLfloat
*depthVals
,
119 const GLubyte
*stencilVals
,
120 const struct gl_pixelstore_attrib
*dstPacking
);
124 _mesa_unpack_image(GLuint dimensions
,
125 GLsizei width
, GLsizei height
, GLsizei depth
,
126 GLenum format
, GLenum type
, const GLvoid
*pixels
,
127 const struct gl_pixelstore_attrib
*unpack
);
131 _mesa_pack_rgba_span_from_uints(struct gl_context
*ctx
, GLuint n
, GLuint rgba
[][4],
132 GLenum dstFormat
, GLenum dstType
,
137 _mesa_pack_rgba_span_from_ints(struct gl_context
*ctx
, GLuint n
, GLint rgba
[][4],
138 GLenum dstFormat
, GLenum dstType
,
143 _mesa_rebase_rgba_float(GLuint n
, GLfloat rgba
[][4], GLenum baseFormat
);
146 _mesa_rebase_rgba_uint(GLuint n
, GLuint rgba
[][4], GLenum baseFormat
);
149 _mesa_pack_luminance_from_rgba_float(GLuint n
, GLfloat rgba
[][4],
150 GLvoid
*dstAddr
, GLenum dst_format
,
151 GLbitfield transferOps
);
154 _mesa_pack_luminance_from_rgba_integer(GLuint n
, GLuint rgba
[][4], bool rgba_is_signed
,
155 GLvoid
*dstAddr
, GLenum dst_format
,
159 _mesa_unpack_color_index_to_rgba_float(struct gl_context
*ctx
, GLuint dims
,
160 const void *src
, GLenum srcFormat
, GLenum srcType
,
161 int srcWidth
, int srcHeight
, int srcDepth
,
162 const struct gl_pixelstore_attrib
*srcPacking
,
163 GLbitfield transferOps
);
166 _mesa_unpack_color_index_to_rgba_ubyte(struct gl_context
*ctx
, GLuint dims
,
167 const void *src
, GLenum srcFormat
, GLenum srcType
,
168 int srcWidth
, int srcHeight
, int srcDepth
,
169 const struct gl_pixelstore_attrib
*srcPacking
,
170 GLbitfield transferOps
);