Removed all RCS / CVS tags (Id, Header, Date, etc.) from everything.
[mesa.git] / src / mesa / main / pixel.h
1
2 /*
3 * Mesa 3-D graphics library
4 * Version: 3.5
5 *
6 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the "Software"),
10 * to deal in the Software without restriction, including without limitation
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12 * and/or sell copies of the Software, and to permit persons to whom the
13 * Software is furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included
16 * in all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 */
25
26
27 #ifndef PIXEL_H
28 #define PIXEL_H
29
30
31 #include "mtypes.h"
32
33
34 /*
35 * API functions
36 */
37
38
39 extern void
40 _mesa_GetPixelMapfv( GLenum map, GLfloat *values );
41
42 extern void
43 _mesa_GetPixelMapuiv( GLenum map, GLuint *values );
44
45 extern void
46 _mesa_GetPixelMapusv( GLenum map, GLushort *values );
47
48 extern void
49 _mesa_PixelMapfv( GLenum map, GLint mapsize, const GLfloat *values );
50
51 extern void
52 _mesa_PixelMapuiv(GLenum map, GLint mapsize, const GLuint *values );
53
54 extern void
55 _mesa_PixelMapusv(GLenum map, GLint mapsize, const GLushort *values );
56
57 extern void
58 _mesa_PixelStoref( GLenum pname, GLfloat param );
59
60 extern void
61 _mesa_PixelStorei( GLenum pname, GLint param );
62
63 extern void
64 _mesa_PixelTransferf( GLenum pname, GLfloat param );
65
66 extern void
67 _mesa_PixelTransferi( GLenum pname, GLint param );
68
69 extern void
70 _mesa_PixelZoom( GLfloat xfactor, GLfloat yfactor );
71
72
73
74 /*
75 * Pixel processing functions
76 */
77
78 extern void
79 _mesa_scale_and_bias_rgba(const GLcontext *ctx, GLuint n, GLfloat rgba[][4],
80 GLfloat rScale, GLfloat gScale,
81 GLfloat bScale, GLfloat aScale,
82 GLfloat rBias, GLfloat gBias,
83 GLfloat bBias, GLfloat aBias);
84
85 extern void
86 _mesa_map_rgba(const GLcontext *ctx, GLuint n, GLfloat rgba[][4]);
87
88
89 extern void
90 _mesa_transform_rgba(const GLcontext *ctx, GLuint n, GLfloat rgba[][4]);
91
92
93 extern void
94 _mesa_lookup_rgba(const struct gl_color_table *table,
95 GLuint n, GLfloat rgba[][4]);
96
97
98 extern void
99 _mesa_shift_and_offset_ci(const GLcontext *ctx, GLuint n,
100 GLuint indexes[]);
101
102
103 extern void
104 _mesa_map_ci(const GLcontext *ctx, GLuint n, GLuint index[]);
105
106
107 extern void
108 _mesa_map_ci_to_rgba_chan(const GLcontext *ctx,
109 GLuint n, const GLuint index[],
110 GLchan rgba[][4]);
111
112
113 extern void
114 _mesa_map_ci_to_rgba(const GLcontext *ctx,
115 GLuint n, const GLuint index[], GLfloat rgba[][4]);
116
117
118 extern void
119 _mesa_map_ci8_to_rgba(const GLcontext *ctx,
120 GLuint n, const GLubyte index[],
121 GLchan rgba[][4]);
122
123
124 extern void
125 _mesa_shift_and_offset_stencil(const GLcontext *ctx, GLuint n,
126 GLstencil indexes[]);
127
128
129 extern void
130 _mesa_map_stencil(const GLcontext *ctx, GLuint n, GLstencil index[]);
131
132
133 extern void
134 _mesa_chan_to_float_span(const GLcontext *ctx, GLuint n,
135 CONST GLchan rgba[][4], GLfloat rgbaf[][4]);
136
137
138 #endif