13464ebd5Sriastradh/* 23464ebd5Sriastradh * Mesa 3-D graphics library 33464ebd5Sriastradh * 43464ebd5Sriastradh * Copyright (C) 1999-2008 Brian Paul All Rights Reserved. 53464ebd5Sriastradh * Copyright (C) 2009-2010 VMware, Inc. All Rights Reserved. 63464ebd5Sriastradh * 73464ebd5Sriastradh * Permission is hereby granted, free of charge, to any person obtaining a 83464ebd5Sriastradh * copy of this software and associated documentation files (the "Software"), 93464ebd5Sriastradh * to deal in the Software without restriction, including without limitation 103464ebd5Sriastradh * the rights to use, copy, modify, merge, publish, distribute, sublicense, 113464ebd5Sriastradh * and/or sell copies of the Software, and to permit persons to whom the 123464ebd5Sriastradh * Software is furnished to do so, subject to the following conditions: 133464ebd5Sriastradh * 143464ebd5Sriastradh * The above copyright notice and this permission notice shall be included 153464ebd5Sriastradh * in all copies or substantial portions of the Software. 163464ebd5Sriastradh * 173464ebd5Sriastradh * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 183464ebd5Sriastradh * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 193464ebd5Sriastradh * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20af69d88dSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 21af69d88dSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 22af69d88dSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23af69d88dSmrg * OTHER DEALINGS IN THE SOFTWARE. 243464ebd5Sriastradh */ 253464ebd5Sriastradh 263464ebd5Sriastradh 273464ebd5Sriastradh#ifndef PIXELTRANSFER_H 283464ebd5Sriastradh#define PIXELTRANSFER_H 293464ebd5Sriastradh 303464ebd5Sriastradh 3101e04c3fSmrg#include "glheader.h" 3201e04c3fSmrg 3301e04c3fSmrgstruct gl_context; 343464ebd5Sriastradh 353464ebd5Sriastradh 363464ebd5Sriastradhextern void 373464ebd5Sriastradh_mesa_scale_and_bias_rgba(GLuint n, GLfloat rgba[][4], 383464ebd5Sriastradh GLfloat rScale, GLfloat gScale, 393464ebd5Sriastradh GLfloat bScale, GLfloat aScale, 403464ebd5Sriastradh GLfloat rBias, GLfloat gBias, 413464ebd5Sriastradh GLfloat bBias, GLfloat aBias); 423464ebd5Sriastradh 433464ebd5Sriastradhextern void 443464ebd5Sriastradh_mesa_map_rgba(const struct gl_context *ctx, GLuint n, GLfloat rgba[][4]); 453464ebd5Sriastradh 463464ebd5Sriastradhextern void 473464ebd5Sriastradh_mesa_map_ci_to_rgba(const struct gl_context *ctx, 483464ebd5Sriastradh GLuint n, const GLuint index[], GLfloat rgba[][4]); 493464ebd5Sriastradh 503464ebd5Sriastradh 513464ebd5Sriastradhextern void 523464ebd5Sriastradh_mesa_scale_and_bias_depth(const struct gl_context *ctx, GLuint n, 533464ebd5Sriastradh GLfloat depthValues[]); 543464ebd5Sriastradh 553464ebd5Sriastradhextern void 563464ebd5Sriastradh_mesa_scale_and_bias_depth_uint(const struct gl_context *ctx, GLuint n, 573464ebd5Sriastradh GLuint depthValues[]); 583464ebd5Sriastradh 593464ebd5Sriastradhextern void 603464ebd5Sriastradh_mesa_apply_rgba_transfer_ops(struct gl_context *ctx, GLbitfield transferOps, 613464ebd5Sriastradh GLuint n, GLfloat rgba[][4]); 623464ebd5Sriastradh 633464ebd5Sriastradhextern void 643464ebd5Sriastradh_mesa_shift_and_offset_ci(const struct gl_context *ctx, 653464ebd5Sriastradh GLuint n, GLuint indexes[]); 663464ebd5Sriastradh 673464ebd5Sriastradhextern void 683464ebd5Sriastradh_mesa_apply_ci_transfer_ops(const struct gl_context *ctx, 693464ebd5Sriastradh GLbitfield transferOps, 703464ebd5Sriastradh GLuint n, GLuint indexes[]); 713464ebd5Sriastradh 723464ebd5Sriastradh 733464ebd5Sriastradhextern void 743464ebd5Sriastradh_mesa_apply_stencil_transfer_ops(const struct gl_context *ctx, GLuint n, 75af69d88dSmrg GLubyte stencil[]); 763464ebd5Sriastradh 773464ebd5Sriastradh 783464ebd5Sriastradh#endif 79