cr_pixeldata.h revision 0249851e92e86d5a3594ddd7dc3de9fc04229646
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/* Copyright (c) 2001, Stanford University
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * All rights reserved.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync *
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * See the file LICENSE.txt for information on redistributing this software.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#ifndef CR_PIXELDATA_H
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#define CR_PIXELDATA_H
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#include "chromium.h"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#include "state/cr_client.h"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#include <iprt/cdefs.h>
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#include <stdarg.h>
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#ifdef __cplusplus
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncextern "C" {
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync#endif
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncDECLEXPORT(int) crPixelSize( GLenum format, GLenum type );
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncDECLEXPORT(unsigned int) crImageSize( GLenum format, GLenum type,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync GLsizei width, GLsizei height );
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncDECLEXPORT(unsigned int) crTextureSize( GLenum format, GLenum type, GLsizei width, GLsizei height, GLsizei depth );
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncDECLEXPORT(void) crPixelCopy1D( GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync GLsizei width, const CRPixelPackState *srcPacking );
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncDECLEXPORT(void) crPixelCopy2D( GLsizei width, GLsizei height,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync const CRPixelPackState *dstPacking,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync const CRPixelPackState *srcPacking );
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncDECLEXPORT(void) crPixelCopy3D( GLsizei width, GLsizei height, GLsizei depth,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync const CRPixelPackState *dstPacking, const GLvoid *srcPtr,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync GLenum srcFormat, GLenum srcType,
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync const CRPixelPackState *srcPacking );
DECLEXPORT(void) crBitmapCopy( GLsizei width, GLsizei height, GLubyte *dstPtr,
const GLubyte *srcPtr, const CRPixelPackState *srcPacking );
DECLEXPORT(void) crDumpNamedTGA(const char *fname, GLint w, GLint h, GLvoid *data);
DECLEXPORT(void) crDumpNamedTGAV(const char* fname, GLint w, GLint h, GLvoid *data, va_list va);
DECLEXPORT(void) crDumpNamedTGAF(const char* fname, GLint w, GLint h, GLvoid *data, ...);
DECLEXPORT(void) crDumpTGA(GLint w, GLint h, GLvoid *data);
#ifdef __cplusplus
}
#endif
#endif /* CR_PIXELDATA_H */