1 /* $Id: pixel.h,v 1.10 2001/03/12 00:48:38 gareth Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41 _mesa_GetPixelMapfv( GLenum map
, GLfloat
*values
);
44 _mesa_GetPixelMapuiv( GLenum map
, GLuint
*values
);
47 _mesa_GetPixelMapusv( GLenum map
, GLushort
*values
);
50 _mesa_PixelMapfv( GLenum map
, GLint mapsize
, const GLfloat
*values
);
53 _mesa_PixelMapuiv(GLenum map
, GLint mapsize
, const GLuint
*values
);
56 _mesa_PixelMapusv(GLenum map
, GLint mapsize
, const GLushort
*values
);
59 _mesa_PixelStoref( GLenum pname
, GLfloat param
);
62 _mesa_PixelStorei( GLenum pname
, GLint param
);
65 _mesa_PixelTransferf( GLenum pname
, GLfloat param
);
68 _mesa_PixelTransferi( GLenum pname
, GLint param
);
71 _mesa_PixelZoom( GLfloat xfactor
, GLfloat yfactor
);
76 * Pixel processing functions
80 _mesa_scale_and_bias_rgba(const GLcontext
*ctx
, GLuint n
, GLfloat rgba
[][4],
81 GLfloat rScale
, GLfloat gScale
,
82 GLfloat bScale
, GLfloat aScale
,
83 GLfloat rBias
, GLfloat gBias
,
84 GLfloat bBias
, GLfloat aBias
);
87 _mesa_map_rgba(const GLcontext
*ctx
, GLuint n
, GLfloat rgba
[][4]);
91 _mesa_transform_rgba(const GLcontext
*ctx
, GLuint n
, GLfloat rgba
[][4]);
95 _mesa_lookup_rgba(const struct gl_color_table
*table
,
96 GLuint n
, GLfloat rgba
[][4]);
100 _mesa_shift_and_offset_ci(const GLcontext
*ctx
, GLuint n
,
105 _mesa_map_ci(const GLcontext
*ctx
, GLuint n
, GLuint index
[]);
109 _mesa_map_ci_to_rgba_chan(const GLcontext
*ctx
,
110 GLuint n
, const GLuint index
[],
115 _mesa_map_ci_to_rgba(const GLcontext
*ctx
,
116 GLuint n
, const GLuint index
[], GLfloat rgba
[][4]);
120 _mesa_map_ci8_to_rgba(const GLcontext
*ctx
,
121 GLuint n
, const GLubyte index
[],
126 _mesa_shift_and_offset_stencil(const GLcontext
*ctx
, GLuint n
,
127 GLstencil indexes
[]);
131 _mesa_map_stencil(const GLcontext
*ctx
, GLuint n
, GLstencil index
[]);
135 _mesa_chan_to_float_span(const GLcontext
*ctx
, GLuint n
,
136 CONST GLchan rgba
[][4], GLfloat rgbaf
[][4]);