add some NEON 32bpp blitters
[sdl_omap.git] / src / video / Xext / Xv / Xvlibint.h
CommitLineData
e14743d1 1/***********************************************************
2Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
3and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
4
5 All Rights Reserved
6
7Permission to use, copy, modify, and distribute this software and its
8documentation for any purpose and without fee is hereby granted,
9provided that the above copyright notice appear in all copies and that
10both that copyright notice and this permission notice appear in
11supporting documentation, and that the names of Digital or MIT not be
12used in advertising or publicity pertaining to distribution of the
13software without specific, written prior permission.
14
15DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
16ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
17DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
18ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
19WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
20ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21SOFTWARE.
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/* Apparently some X11 systems can't include this multiple times... */
47#ifndef SDL_INCLUDED_XLIBINT_H
48#define SDL_INCLUDED_XLIBINT_H 1
49#include <X11/Xlibint.h>
50#endif
51
52#include "../extensions/Xvproto.h"
53#include "../extensions/Xvlib.h"
54
55#if !defined(UNIXCPP)
56#define XvGetReq(name, req) \
57 WORD64ALIGN\
58 if ((dpy->bufptr + SIZEOF(xv##name##Req)) > dpy->bufmax)\
59 _XFlush(dpy);\
60 req = (xv##name##Req *)(dpy->last_req = dpy->bufptr);\
61 req->reqType = info->codes->major_opcode;\
62 req->xvReqType = xv_##name; \
63 req->length = (SIZEOF(xv##name##Req))>>2;\
64 dpy->bufptr += SIZEOF(xv##name##Req);\
65 dpy->request++
66
67#else /* non-ANSI C uses empty comment instead of "##" for token concatenation */
68#define XvGetReq(name, req) \
69 WORD64ALIGN\
70 if ((dpy->bufptr + SIZEOF(xv/**/name/**/Req)) > dpy->bufmax)\
71 _XFlush(dpy);\
72 req = (xv/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\
73 req->reqType = info->codes->major_opcode;\
74 req->xvReqType = xv_/**/name;\
75 req->length = (SIZEOF(xv/**/name/**/Req))>>2;\
76 dpy->bufptr += SIZEOF(xv/**/name/**/Req);\
77 dpy->request++
78#endif
79
80
81#endif /* XVLIBINT_H */