summaryrefslogtreecommitdiff
path: root/src/VBox/GuestHost/OpenGL/include/cr_pixeldata.h
blob: da3ebe34a10d14610ae68ed32f5a68858e7ccbdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* Copyright (c) 2001, Stanford University
 * All rights reserved.
 *
 * See the file LICENSE.txt for information on redistributing this software.
 */

#ifndef CR_PIXELDATA_H
#define CR_PIXELDATA_H

#include "chromium.h"
#include "state/cr_client.h"

#include <iprt/cdefs.h>
#include <stdarg.h>

#ifdef __cplusplus
extern "C" {
#endif

DECLEXPORT(int) crPixelSize( GLenum format, GLenum type );

DECLEXPORT(unsigned int) crImageSize( GLenum format, GLenum type,
													GLsizei width, GLsizei height );

DECLEXPORT(unsigned int) crTextureSize( GLenum format, GLenum type, GLsizei width, GLsizei height, GLsizei depth );

DECLEXPORT(void) crPixelCopy1D( GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
										const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType,
										GLsizei width, const CRPixelPackState *srcPacking );

DECLEXPORT(void) crPixelCopy2D( GLsizei width, GLsizei height,
										GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
										const CRPixelPackState *dstPacking,
										const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType,
										const CRPixelPackState *srcPacking );

DECLEXPORT(void) crPixelCopy3D( GLsizei width, GLsizei height, GLsizei depth,
										GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
										const CRPixelPackState *dstPacking, const GLvoid *srcPtr,
										GLenum srcFormat, GLenum srcType,
										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(GLint w, GLint h, GLvoid *data, const char* fname, va_list va);
DECLEXPORT(void) crDumpNamedTGAF(GLint w, GLint h, GLvoid *data, const char* fname, ...);
DECLEXPORT(void) crDumpTGA(GLint w, GLint h, GLvoid *data);
#ifdef __cplusplus
}
#endif

#endif /* CR_PIXELDATA_H */