Mercurial > sdl-ios-xcode
comparison src/video/Xext/Xv/Xvlibint.h @ 292:eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Incorporated XFree86 extension libraries into the source
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 05 Mar 2002 19:55:32 +0000 |
parents | |
children | 045f186426e1 |
comparison
equal
deleted
inserted
replaced
291:68a8a8237c09 | 292:eadc0746dfaf |
---|---|
1 /*********************************************************** | |
2 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, | |
3 and the Massachusetts Institute of Technology, Cambridge, Massachusetts. | |
4 | |
5 All Rights Reserved | |
6 | |
7 Permission to use, copy, modify, and distribute this software and its | |
8 documentation for any purpose and without fee is hereby granted, | |
9 provided that the above copyright notice appear in all copies and that | |
10 both that copyright notice and this permission notice appear in | |
11 supporting documentation, and that the names of Digital or MIT not be | |
12 used in advertising or publicity pertaining to distribution of the | |
13 software without specific, written prior permission. | |
14 | |
15 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING | |
16 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL | |
17 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR | |
18 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | |
19 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, | |
20 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS | |
21 SOFTWARE. | |
22 | |
23 ******************************************************************/ | |
24 /* $XFree86: xc/lib/Xv/Xvlibint.h,v 1.5 2001/07/25 15:04:53 dawes Exp $ */ | |
25 | |
26 #ifndef XVLIBINT_H | |
27 #define XVLIBINT_H | |
28 /* | |
29 ** File: | |
30 ** | |
31 ** Xvlibint.h --- Xv library internal header file | |
32 ** | |
33 ** Author: | |
34 ** | |
35 ** David Carver (Digital Workstation Engineering/Project Athena) | |
36 ** | |
37 ** Revisions: | |
38 ** | |
39 ** 01.24.91 Carver | |
40 ** - version 1.4 upgrade | |
41 ** | |
42 */ | |
43 | |
44 #define NEED_REPLIES | |
45 | |
46 #include <X11/Xlibint.h> | |
47 #include "Xvproto.h" | |
48 #include "Xvlib.h" | |
49 | |
50 #if !defined(UNIXCPP) | |
51 #define XvGetReq(name, req) \ | |
52 WORD64ALIGN\ | |
53 if ((dpy->bufptr + SIZEOF(xv##name##Req)) > dpy->bufmax)\ | |
54 _XFlush(dpy);\ | |
55 req = (xv##name##Req *)(dpy->last_req = dpy->bufptr);\ | |
56 req->reqType = info->codes->major_opcode;\ | |
57 req->xvReqType = xv_##name; \ | |
58 req->length = (SIZEOF(xv##name##Req))>>2;\ | |
59 dpy->bufptr += SIZEOF(xv##name##Req);\ | |
60 dpy->request++ | |
61 | |
62 #else /* non-ANSI C uses empty comment instead of "##" for token concatenation */ | |
63 #define XvGetReq(name, req) \ | |
64 WORD64ALIGN\ | |
65 if ((dpy->bufptr + SIZEOF(xv/**/name/**/Req)) > dpy->bufmax)\ | |
66 _XFlush(dpy);\ | |
67 req = (xv/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\ | |
68 req->reqType = info->codes->major_opcode;\ | |
69 req->xvReqType = xv_/**/name;\ | |
70 req->length = (SIZEOF(xv/**/name/**/Req))>>2;\ | |
71 dpy->bufptr += SIZEOF(xv/**/name/**/Req);\ | |
72 dpy->request++ | |
73 #endif | |
74 | |
75 | |
76 #endif /* XVLIBINT_H */ |