Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5564 | serge | 1 | /* |
2 | * Mesa 3-D graphics library |
||
3 | * |
||
4 | * Copyright (c) 2011 VMware, Inc. |
||
5 | * |
||
6 | * Permission is hereby granted, free of charge, to any person obtaining a |
||
7 | * copy of this software and associated documentation files (the "Software"), |
||
8 | * to deal in the Software without restriction, including without limitation |
||
9 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
||
10 | * and/or sell copies of the Software, and to permit persons to whom the |
||
11 | * Software is furnished to do so, subject to the following conditions: |
||
12 | * |
||
13 | * The above copyright notice and this permission notice shall be included |
||
14 | * in all copies or substantial portions of the Software. |
||
15 | * |
||
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
||
17 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
||
19 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
||
20 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
||
21 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
||
22 | * OTHER DEALINGS IN THE SOFTWARE. |
||
23 | */ |
||
24 | |||
25 | #ifndef FORMAT_UNPACK_H |
||
26 | #define FORMAT_UNPACK_H |
||
27 | |||
28 | #include "formats.h" |
||
29 | |||
30 | extern void |
||
31 | _mesa_unpack_rgba_row(mesa_format format, GLuint n, |
||
32 | const void *src, GLfloat dst[][4]); |
||
33 | |||
34 | extern void |
||
35 | _mesa_unpack_ubyte_rgba_row(mesa_format format, GLuint n, |
||
36 | const void *src, GLubyte dst[][4]); |
||
37 | |||
38 | void |
||
39 | _mesa_unpack_uint_rgba_row(mesa_format format, GLuint n, |
||
40 | const void *src, GLuint dst[][4]); |
||
41 | |||
42 | extern void |
||
43 | _mesa_unpack_rgba_block(mesa_format format, |
||
44 | const void *src, GLint srcRowStride, |
||
45 | GLfloat dst[][4], GLint dstRowStride, |
||
46 | GLuint x, GLuint y, GLuint width, GLuint height); |
||
47 | |||
48 | extern void |
||
49 | _mesa_unpack_float_z_row(mesa_format format, GLuint n, |
||
50 | const void *src, GLfloat *dst); |
||
51 | |||
52 | |||
53 | void |
||
54 | _mesa_unpack_uint_z_row(mesa_format format, GLuint n, |
||
55 | const void *src, GLuint *dst); |
||
56 | |||
57 | void |
||
58 | _mesa_unpack_ubyte_stencil_row(mesa_format format, GLuint n, |
||
59 | const void *src, GLubyte *dst); |
||
60 | |||
61 | void |
||
62 | _mesa_unpack_uint_24_8_depth_stencil_row(mesa_format format, GLuint n, |
||
63 | const void *src, GLuint *dst); |
||
64 | |||
65 | void |
||
66 | _mesa_unpack_float_32_uint_24_8_depth_stencil_row(mesa_format format, |
||
67 | GLuint n, |
||
68 | const void *src, |
||
69 | GLuint *dst); |
||
70 | void |
||
71 | _mesa_unpack_depth_stencil_row(mesa_format format, GLuint n, |
||
72 | const void *src, GLenum type, |
||
73 | GLuint *dst); |
||
74 | #endif /* FORMAT_UNPACK_H */ |