VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/X11/extensions/lbximage.h@ 99743

Last change on this file since 99743 was 69098, checked in by vboxsync, 7 years ago

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • Property svn:eol-style set to native
File size: 4.2 KB
Line 
1/* $Xorg: lbximage.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ */
2
3/******************************************************************************
4
5Copyright 1994, 1998 The Open Group
6
7Permission to use, copy, modify, distribute, and sell this software and its
8documentation for any purpose is hereby granted without fee, provided that
9the above copyright notice appear in all copies and that both that
10copyright notice and this permission notice appear in supporting
11documentation.
12
13The above copyright notice and this permission notice shall be included in
14all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23Except as contained in this notice, the name of The Open Group shall not be
24used in advertising or otherwise to promote the sale, use or other dealings
25in this Software without prior written authorization from The Open Group.
26
27******************************************************************************/
28/* $XFree86: xc/include/extensions/lbximage.h,v 1.4 2001/12/20 19:28:54 tsi Exp $ */
29
30#ifndef _LBX_IMAGE_H_
31#define _LBX_IMAGE_H_
32
33#include <X11/Xfuncproto.h>
34
35_XFUNCPROTOBEGIN
36
37typedef struct _LbxBitmapCompMethod {
38
39 char *methodName;
40 int inited;
41 int methodOpCode; /* to be filled on reply from server */
42
43 int (*compInit)(
44#if NeedFunctionPrototypes
45 void
46#endif
47 );
48
49 int (*compFunc)(
50#if NeedFunctionPrototypes
51 unsigned char * /* inbuf */,
52 unsigned char * /* outbuf */,
53 int /* outbufSize */,
54 int /* image_bytes */,
55 int /* pixels_per_line */,
56 int /* padded_bytes_per_scanline */,
57 int /* reverse_bits */,
58 int * /* bytesCompressed */
59#endif
60 );
61
62 int (*decompFunc)(
63#if NeedFunctionPrototypes
64 unsigned char * /* inbuf */,
65 unsigned char * /* outbuf */,
66 int /* image_bytes */,
67 int /* pixels_per_line */,
68 int /* padded_bytes_per_scanline */,
69 int /* reverse_bits */
70#endif
71 );
72
73} LbxBitmapCompMethod;
74
75
76#define LBX_MAX_DEPTHS 5
77
78typedef struct _LbxPixmapCompMethod {
79
80 char *methodName;
81 unsigned formatMask;
82 int depthCount;
83 int depths[LBX_MAX_DEPTHS];
84 int inited;
85 int methodOpCode; /* to be filled on reply from server */
86
87 int (*compInit)(
88#if NeedFunctionPrototypes
89 void
90#endif
91 );
92
93 int (*compFunc)(
94#if NeedFunctionPrototypes
95 char * /* inbuf */,
96 char * /* outbuf */,
97 int /* outbufSize */,
98 int /* format */,
99 int /* depth */,
100 int /* num_scan_lines */,
101 int /* scan_line_size */,
102 int * /* bytesCompressed */
103#endif
104 );
105
106 int (*decompFunc)(
107#if NeedFunctionPrototypes
108 char * /* inbuf */,
109 char * /* outbuf */,
110 int /* num_scan_lines */,
111 int /* scan_line_size */
112#endif
113 );
114
115} LbxPixmapCompMethod;
116
117
118extern int LbxImageEncodePackBits (
119#if NeedFunctionPrototypes
120char * /* inbuf */,
121char * /* outbuf */,
122int /* outbufSize */,
123int /* format */,
124int /* depth */,
125int /* num_scan_lines */,
126int /* scan_line_size */,
127int * /* bytesCompressed */
128#endif
129);
130
131extern int LbxImageEncodeFaxG42D (
132#if NeedFunctionPrototypes
133unsigned char * /* inbuf */,
134unsigned char * /* outbuf */,
135int /* outbufSize */,
136int /* image_bytes */,
137int /* pixels_per_line */,
138int /* padded_bytes_per_scanline */,
139int /* reverse_bits */,
140int * /* bytesCompressed */
141#endif
142);
143
144extern int LbxImageDecodePackBits (
145#if NeedFunctionPrototypes
146char * /* inbuf */,
147char * /* outbuf */,
148int /* num_scan_lines */,
149int /* scan_line_size */
150#endif
151);
152
153extern int LbxImageDecodeFaxG42D (
154#if NeedFunctionPrototypes
155unsigned char * /* inbuf */,
156unsigned char * /* outbuf */,
157int /* image_bytes */,
158int /* pixels_per_line */,
159int /* padded_bytes_per_scanline */,
160int /* reverse_bits */
161#endif
162);
163
164_XFUNCPROTOEND
165
166#define LBX_IMAGE_COMPRESS_SUCCESS 0
167#define LBX_IMAGE_COMPRESS_NO_SUPPORT 1
168#define LBX_IMAGE_COMPRESS_BAD_MALLOC 2
169#define LBX_IMAGE_COMPRESS_NOT_WORTH_IT 3
170
171#endif /* _LBX_IMAGE_H_ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette