VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/4.2/include/extensions/XvMClib.h@ 17242

Last change on this file since 17242 was 17242, checked in by vboxsync, 16 years ago

Additions/x11/x11include: removed svn:keywords properties from all files under this directory as per SvnKeywords on the wiki. Hopefully this is finally correct

  • Property svn:eol-style set to native
File size: 4.2 KB
Line 
1/* $XFree86: xc/include/extensions/XvMClib.h,v 1.6 2001/11/14 21:54:37 mvojkovi Exp $ */
2
3#ifndef _XVMCLIB_H_
4#define _XVMCLIB_H_
5
6#include <X11/Xfuncproto.h>
7#include <X11/extensions/Xvlib.h>
8#include <X11/extensions/XvMC.h>
9
10_XFUNCPROTOBEGIN
11
12Bool XvMCQueryExtension (Display *display, int *eventBase, int *errBase);
13Status XvMCQueryVersion (Display *display, int *major, int *minor);
14
15XvMCSurfaceInfo * XvMCListSurfaceTypes(Display *dpy, XvPortID port, int *num);
16
17Status XvMCCreateContext (
18 Display *display,
19 XvPortID port,
20 int surface_type_id,
21 int width,
22 int height,
23 int flags,
24 XvMCContext * context
25);
26
27Status XvMCDestroyContext (Display *display, XvMCContext * context);
28
29Status
30XvMCCreateSurface(
31 Display *display,
32 XvMCContext * context,
33 XvMCSurface * surface
34);
35
36Status XvMCDestroySurface(Display *display, XvMCSurface *surface);
37
38XvImageFormatValues * XvMCListSubpictureTypes (
39 Display * display,
40 XvPortID port,
41 int surface_type_id,
42 int *count_return
43);
44
45Status
46XvMCPutSurface(
47 Display *display,
48 XvMCSurface *surface,
49 Drawable draw,
50 short srcx,
51 short srcy,
52 unsigned short srcw,
53 unsigned short srch,
54 short destx,
55 short desty,
56 unsigned short destw,
57 unsigned short desth,
58 int flags
59);
60
61Status XvMCHideSurface(Display *display, XvMCSurface *surface);
62
63Status
64XvMCCreateSubpicture (
65 Display *display,
66 XvMCContext *context,
67 XvMCSubpicture *subpicture,
68 unsigned short width,
69 unsigned short height,
70 int xvimage_id
71);
72
73
74Status
75XvMCClearSubpicture (
76 Display *display,
77 XvMCSubpicture *subpicture,
78 short x,
79 short y,
80 unsigned short width,
81 unsigned short height,
82 unsigned int color
83);
84
85Status
86XvMCCompositeSubpicture (
87 Display *display,
88 XvMCSubpicture *subpicture,
89 XvImage *image,
90 short srcx,
91 short srcy,
92 unsigned short width,
93 unsigned short height,
94 short dstx,
95 short dsty
96);
97
98Status
99XvMCDestroySubpicture (Display *display, XvMCSubpicture *subpicture);
100
101Status
102XvMCSetSubpicturePalette (
103 Display *display,
104 XvMCSubpicture *subpicture,
105 unsigned char *palette
106);
107
108Status
109XvMCBlendSubpicture (
110 Display *display,
111 XvMCSurface *target_surface,
112 XvMCSubpicture *subpicture,
113 short subx,
114 short suby,
115 unsigned short subw,
116 unsigned short subh,
117 short surfx,
118 short surfy,
119 unsigned short surfw,
120 unsigned short surfh
121);
122
123Status
124XvMCBlendSubpicture2 (
125 Display *display,
126 XvMCSurface *source_surface,
127 XvMCSurface *target_surface,
128 XvMCSubpicture *subpicture,
129 short subx,
130 short suby,
131 unsigned short subw,
132 unsigned short subh,
133 short surfx,
134 short surfy,
135 unsigned short surfw,
136 unsigned short surfh
137);
138
139Status XvMCSyncSurface (Display *display, XvMCSurface *surface);
140Status XvMCFlushSurface (Display *display, XvMCSurface *surface);
141Status XvMCGetSurfaceStatus (Display *display, XvMCSurface *surface, int *stat);
142
143Status XvMCRenderSurface (
144 Display *display,
145 XvMCContext *context,
146 unsigned int picture_structure,
147 XvMCSurface *target_surface,
148 XvMCSurface *past_surface,
149 XvMCSurface *future_surface,
150 unsigned int flags,
151 unsigned int num_macroblocks,
152 unsigned int first_macroblock,
153 XvMCMacroBlockArray *macroblock_array,
154 XvMCBlockArray *blocks
155);
156
157
158Status XvMCSyncSubpicture (Display *display, XvMCSubpicture *subpicture);
159Status XvMCFlushSubpicture (Display *display, XvMCSubpicture *subpicture);
160Status
161XvMCGetSubpictureStatus (Display *display, XvMCSubpicture *subpic, int *stat);
162
163Status XvMCCreateBlocks (
164 Display *display,
165 XvMCContext *context,
166 unsigned int num_blocks,
167 XvMCBlockArray *block
168);
169
170Status XvMCDestroyBlocks (Display *display,XvMCBlockArray *block);
171
172Status XvMCCreateMacroBlocks (
173 Display *display,
174 XvMCContext *context,
175 unsigned int num_blocks,
176 XvMCMacroBlockArray *blocks
177);
178
179Status XvMCDestroyMacroBlocks (
180 Display *display,
181 XvMCMacroBlockArray *block
182);
183
184XvAttribute *
185XvMCQueryAttributes (
186 Display *display,
187 XvMCContext *context,
188 int *number
189);
190
191Status
192XvMCSetAttribute (
193 Display *display,
194 XvMCContext *context,
195 Atom attribute,
196 int value
197);
198
199Status
200XvMCGetAttribute (
201 Display *display,
202 XvMCContext *context,
203 Atom attribute,
204 int *value
205);
206
207_XFUNCPROTOEND
208
209#endif
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