| 1 |
#ifndef _XVMCLIBINT_H |
| 2 |
#define _XVMCLIBINT_H |
| 3 |
|
| 4 |
#include <X11/Xlibint.h> |
| 5 |
#include <X11/extensions/Xvproto.h> |
| 6 |
#include <X11/extensions/XvMCproto.h> |
| 7 |
#include <X11/extensions/XvMClib.h> |
| 8 |
|
| 9 |
#define XvMCCheckExtension(dpy, i, val) \ |
| 10 |
XextCheckExtension(dpy, i, xvmc_extension_name, val) |
| 11 |
|
| 12 |
|
| 13 |
#define XvMCGetReq(name, req) \ |
| 14 |
WORD64ALIGN\ |
| 15 |
if ((dpy->bufptr + sizeof(xvmc##name##Req)) > dpy->bufmax)\ |
| 16 |
_XFlush(dpy);\ |
| 17 |
req = (xvmc##name##Req *)(dpy->last_req = dpy->bufptr);\ |
| 18 |
req->reqType = info->codes->major_opcode;\ |
| 19 |
req->xvmcReqType = xvmc_##name; \ |
| 20 |
req->length = sizeof(xvmc##name##Req)>>2;\ |
| 21 |
dpy->bufptr += sizeof(xvmc##name##Req);\ |
| 22 |
dpy->request++ |
| 23 |
|
| 24 |
_XFUNCPROTOBEGIN |
| 25 |
|
| 26 |
Status _xvmc_create_context( |
| 27 |
Display * /* dpy */, |
| 28 |
XvMCContext * /* context */, |
| 29 |
int * /* priv_count */, |
| 30 |
CARD32 ** /* priv_data */ |
| 31 |
); |
| 32 |
|
| 33 |
Status _xvmc_destroy_context( |
| 34 |
Display * /* dpy */, |
| 35 |
XvMCContext * /* context */ |
| 36 |
); |
| 37 |
|
| 38 |
Status _xvmc_create_surface ( |
| 39 |
Display * /* dpy */, |
| 40 |
XvMCContext * /* context */, |
| 41 |
XvMCSurface * /* surface */, |
| 42 |
int * /* priv_count */, |
| 43 |
CARD32 ** /* priv_data */ |
| 44 |
); |
| 45 |
|
| 46 |
Status _xvmc_destroy_surface ( |
| 47 |
Display * /* dpy */, |
| 48 |
XvMCSurface * /* surface */ |
| 49 |
); |
| 50 |
|
| 51 |
Status _xvmc_create_subpicture ( |
| 52 |
Display * /* dpy */, |
| 53 |
XvMCContext * /* context */, |
| 54 |
XvMCSubpicture * /* subpicture */, |
| 55 |
int * /* priv_count */, |
| 56 |
CARD32 ** /* priv_data */ |
| 57 |
); |
| 58 |
|
| 59 |
Status _xvmc_destroy_subpicture( |
| 60 |
Display * /* dpy */, |
| 61 |
XvMCSubpicture * /* subpicture */ |
| 62 |
); |
| 63 |
|
| 64 |
_XFUNCPROTOEND |
| 65 |
|
| 66 |
#endif /* XVMCLIBINT_H */ |