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 |
|
---|
12 | Bool XvMCQueryExtension (Display *display, int *eventBase, int *errBase);
|
---|
13 | Status XvMCQueryVersion (Display *display, int *major, int *minor);
|
---|
14 |
|
---|
15 | XvMCSurfaceInfo * XvMCListSurfaceTypes(Display *dpy, XvPortID port, int *num);
|
---|
16 |
|
---|
17 | Status 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 |
|
---|
27 | Status XvMCDestroyContext (Display *display, XvMCContext * context);
|
---|
28 |
|
---|
29 | Status
|
---|
30 | XvMCCreateSurface(
|
---|
31 | Display *display,
|
---|
32 | XvMCContext * context,
|
---|
33 | XvMCSurface * surface
|
---|
34 | );
|
---|
35 |
|
---|
36 | Status XvMCDestroySurface(Display *display, XvMCSurface *surface);
|
---|
37 |
|
---|
38 | XvImageFormatValues * XvMCListSubpictureTypes (
|
---|
39 | Display * display,
|
---|
40 | XvPortID port,
|
---|
41 | int surface_type_id,
|
---|
42 | int *count_return
|
---|
43 | );
|
---|
44 |
|
---|
45 | Status
|
---|
46 | XvMCPutSurface(
|
---|
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 |
|
---|
61 | Status XvMCHideSurface(Display *display, XvMCSurface *surface);
|
---|
62 |
|
---|
63 | Status
|
---|
64 | XvMCCreateSubpicture (
|
---|
65 | Display *display,
|
---|
66 | XvMCContext *context,
|
---|
67 | XvMCSubpicture *subpicture,
|
---|
68 | unsigned short width,
|
---|
69 | unsigned short height,
|
---|
70 | int xvimage_id
|
---|
71 | );
|
---|
72 |
|
---|
73 |
|
---|
74 | Status
|
---|
75 | XvMCClearSubpicture (
|
---|
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 |
|
---|
85 | Status
|
---|
86 | XvMCCompositeSubpicture (
|
---|
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 |
|
---|
98 | Status
|
---|
99 | XvMCDestroySubpicture (Display *display, XvMCSubpicture *subpicture);
|
---|
100 |
|
---|
101 | Status
|
---|
102 | XvMCSetSubpicturePalette (
|
---|
103 | Display *display,
|
---|
104 | XvMCSubpicture *subpicture,
|
---|
105 | unsigned char *palette
|
---|
106 | );
|
---|
107 |
|
---|
108 | Status
|
---|
109 | XvMCBlendSubpicture (
|
---|
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 |
|
---|
123 | Status
|
---|
124 | XvMCBlendSubpicture2 (
|
---|
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 |
|
---|
139 | Status XvMCSyncSurface (Display *display, XvMCSurface *surface);
|
---|
140 | Status XvMCFlushSurface (Display *display, XvMCSurface *surface);
|
---|
141 | Status XvMCGetSurfaceStatus (Display *display, XvMCSurface *surface, int *stat);
|
---|
142 |
|
---|
143 | Status 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 |
|
---|
158 | Status XvMCSyncSubpicture (Display *display, XvMCSubpicture *subpicture);
|
---|
159 | Status XvMCFlushSubpicture (Display *display, XvMCSubpicture *subpicture);
|
---|
160 | Status
|
---|
161 | XvMCGetSubpictureStatus (Display *display, XvMCSubpicture *subpic, int *stat);
|
---|
162 |
|
---|
163 | Status XvMCCreateBlocks (
|
---|
164 | Display *display,
|
---|
165 | XvMCContext *context,
|
---|
166 | unsigned int num_blocks,
|
---|
167 | XvMCBlockArray *block
|
---|
168 | );
|
---|
169 |
|
---|
170 | Status XvMCDestroyBlocks (Display *display,XvMCBlockArray *block);
|
---|
171 |
|
---|
172 | Status XvMCCreateMacroBlocks (
|
---|
173 | Display *display,
|
---|
174 | XvMCContext *context,
|
---|
175 | unsigned int num_blocks,
|
---|
176 | XvMCMacroBlockArray *blocks
|
---|
177 | );
|
---|
178 |
|
---|
179 | Status XvMCDestroyMacroBlocks (
|
---|
180 | Display *display,
|
---|
181 | XvMCMacroBlockArray *block
|
---|
182 | );
|
---|
183 |
|
---|
184 | XvAttribute *
|
---|
185 | XvMCQueryAttributes (
|
---|
186 | Display *display,
|
---|
187 | XvMCContext *context,
|
---|
188 | int *number
|
---|
189 | );
|
---|
190 |
|
---|
191 | Status
|
---|
192 | XvMCSetAttribute (
|
---|
193 | Display *display,
|
---|
194 | XvMCContext *context,
|
---|
195 | Atom attribute,
|
---|
196 | int value
|
---|
197 | );
|
---|
198 |
|
---|
199 | Status
|
---|
200 | XvMCGetAttribute (
|
---|
201 | Display *display,
|
---|
202 | XvMCContext *context,
|
---|
203 | Atom attribute,
|
---|
204 | int *value
|
---|
205 | );
|
---|
206 |
|
---|
207 | _XFUNCPROTOEND
|
---|
208 |
|
---|
209 | #endif
|
---|