comparison src/video/Xext/Xv/Xvlibint.h @ 1168:045f186426e1

Dynamically load X11 libraries like we currently do for alsa, esd, etc. This allows you to run an SDL program on a system without Xlib, since it'll just report the x11 target unavailable at runtime.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 05 Nov 2005 19:53:37 +0000
parents eadc0746dfaf
children 19418e4422cb
comparison
equal deleted inserted replaced
1167:435c2e481299 1168:045f186426e1
49 49
50 #if !defined(UNIXCPP) 50 #if !defined(UNIXCPP)
51 #define XvGetReq(name, req) \ 51 #define XvGetReq(name, req) \
52 WORD64ALIGN\ 52 WORD64ALIGN\
53 if ((dpy->bufptr + SIZEOF(xv##name##Req)) > dpy->bufmax)\ 53 if ((dpy->bufptr + SIZEOF(xv##name##Req)) > dpy->bufmax)\
54 _XFlush(dpy);\ 54 p_XFlush(dpy);\
55 req = (xv##name##Req *)(dpy->last_req = dpy->bufptr);\ 55 req = (xv##name##Req *)(dpy->last_req = dpy->bufptr);\
56 req->reqType = info->codes->major_opcode;\ 56 req->reqType = info->codes->major_opcode;\
57 req->xvReqType = xv_##name; \ 57 req->xvReqType = xv_##name; \
58 req->length = (SIZEOF(xv##name##Req))>>2;\ 58 req->length = (SIZEOF(xv##name##Req))>>2;\
59 dpy->bufptr += SIZEOF(xv##name##Req);\ 59 dpy->bufptr += SIZEOF(xv##name##Req);\
61 61
62 #else /* non-ANSI C uses empty comment instead of "##" for token concatenation */ 62 #else /* non-ANSI C uses empty comment instead of "##" for token concatenation */
63 #define XvGetReq(name, req) \ 63 #define XvGetReq(name, req) \
64 WORD64ALIGN\ 64 WORD64ALIGN\
65 if ((dpy->bufptr + SIZEOF(xv/**/name/**/Req)) > dpy->bufmax)\ 65 if ((dpy->bufptr + SIZEOF(xv/**/name/**/Req)) > dpy->bufmax)\
66 _XFlush(dpy);\ 66 p_XFlush(dpy);\
67 req = (xv/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\ 67 req = (xv/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\
68 req->reqType = info->codes->major_opcode;\ 68 req->reqType = info->codes->major_opcode;\
69 req->xvReqType = xv_/**/name;\ 69 req->xvReqType = xv_/**/name;\
70 req->length = (SIZEOF(xv/**/name/**/Req))>>2;\ 70 req->length = (SIZEOF(xv/**/name/**/Req))>>2;\
71 dpy->bufptr += SIZEOF(xv/**/name/**/Req);\ 71 dpy->bufptr += SIZEOF(xv/**/name/**/Req);\