1 /* $XFree86: xc/lib/XvMC/XvMClibint.h,v 1.4 2001/07/25 15:04:54 dawes Exp $ */
7 #include <X11/Xlibint.h>
8 #include <X11/extensions/Xvproto.h>
9 #include <X11/extensions/XvMCproto.h>
10 #include <X11/extensions/XvMClib.h>
12 #define XvMCCheckExtension(dpy, i, val) \
13 XextCheckExtension(dpy, i, xvmc_extension_name, val)
17 #define XvMCGetReq(name, req) \
19 if ((dpy->bufptr + sizeof(xvmc##name##Req)) > dpy->bufmax)\
21 req = (xvmc##name##Req *)(dpy->last_req = dpy->bufptr);\
22 req->reqType = info->codes->major_opcode;\
23 req->xvmcReqType = xvmc_##name; \
24 req->length = sizeof(xvmc##name##Req)>>2;\
25 dpy->bufptr += sizeof(xvmc##name##Req);\
28 #define XvMCGetReq(name, req) \
30 if ((dpy->bufptr + sizeof(xvmc/**/name/**/Req)) > dpy->bufmax)\
32 req = (xvmc/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\
33 req->reqType = info->codes->major_opcode;\
34 req->xvmcReqType = xvmc_/**/name;\
35 req->length = sizeof(xvmc/**/name/**/Req)>>2;\
36 dpy->bufptr += sizeof(xvmc/**/name/**/Req);\
40 #endif /* XVMCLIBINT_H */