1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved.
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifndef CR_PIXELDATA_H
|
---|
8 | #define CR_PIXELDATA_H
|
---|
9 |
|
---|
10 | #include "chromium.h"
|
---|
11 | #include "state/cr_client.h"
|
---|
12 |
|
---|
13 | #include <iprt/cdefs.h>
|
---|
14 |
|
---|
15 | #ifdef __cplusplus
|
---|
16 | extern "C" {
|
---|
17 | #endif
|
---|
18 |
|
---|
19 | DECLEXPORT(int) crPixelSize( GLenum format, GLenum type );
|
---|
20 |
|
---|
21 | DECLEXPORT(unsigned int) crImageSize( GLenum format, GLenum type,
|
---|
22 | GLsizei width, GLsizei height );
|
---|
23 |
|
---|
24 | DECLEXPORT(unsigned int) crTextureSize( GLenum format, GLenum type, GLsizei width, GLsizei height, GLsizei depth );
|
---|
25 |
|
---|
26 | DECLEXPORT(void) crPixelCopy1D( GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
|
---|
27 | const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType,
|
---|
28 | GLsizei width, const CRPixelPackState *srcPacking );
|
---|
29 |
|
---|
30 | DECLEXPORT(void) crPixelCopy2D( GLsizei width, GLsizei height,
|
---|
31 | GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
|
---|
32 | const CRPixelPackState *dstPacking,
|
---|
33 | const GLvoid *srcPtr, GLenum srcFormat, GLenum srcType,
|
---|
34 | const CRPixelPackState *srcPacking );
|
---|
35 |
|
---|
36 | DECLEXPORT(void) crPixelCopy3D( GLsizei width, GLsizei height, GLsizei depth,
|
---|
37 | GLvoid *dstPtr, GLenum dstFormat, GLenum dstType,
|
---|
38 | const CRPixelPackState *dstPacking, const GLvoid *srcPtr,
|
---|
39 | GLenum srcFormat, GLenum srcType,
|
---|
40 | const CRPixelPackState *srcPacking );
|
---|
41 |
|
---|
42 | DECLEXPORT(void) crBitmapCopy( GLsizei width, GLsizei height, GLubyte *dstPtr,
|
---|
43 | const GLubyte *srcPtr, const CRPixelPackState *srcPacking );
|
---|
44 |
|
---|
45 |
|
---|
46 | #ifdef __cplusplus
|
---|
47 | }
|
---|
48 | #endif
|
---|
49 |
|
---|
50 | #endif /* CR_PIXELDATA_H */
|
---|