SDL-1.2.14
[sdl_omap.git] / src / video / Xext / extensions / Xv.h
1 /***********************************************************
2 Copyright 1991 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/include/extensions/Xv.h,v 1.5 1999/12/11 19:28:48 mvojkovi Exp $ */
25
26 #ifndef XV_H
27 #define XV_H
28 /*
29 ** File: 
30 **
31 **   Xv.h --- Xv shared library and server header file
32 **
33 ** Author: 
34 **
35 **   David Carver (Digital Workstation Engineering/Project Athena)
36 **
37 ** Revisions:
38 **
39 **   05.15.91 Carver
40 **     - version 2.0 upgrade
41 **
42 **   01.24.91 Carver
43 **     - version 1.4 upgrade
44 **
45 */
46
47 #include <X11/X.h>
48
49 #define XvName "XVideo"
50 #define XvVersion 2
51 #define XvRevision 2
52
53 /* Symbols */
54
55 typedef XID XvPortID;
56 typedef XID XvEncodingID;
57
58 #define XvNone 0
59
60 #define XvInput          0
61 #define XvOutput         1
62
63 #define XvInputMask      (1L<<XvInput)
64 #define XvOutputMask     (1L<<XvOutput)
65 #define XvVideoMask      0x00000004
66 #define XvStillMask      0x00000008
67 #define XvImageMask      0x00000010
68
69 /* These two are not client viewable */
70 #define XvPixmapMask     0x00010000
71 #define XvWindowMask     0x00020000
72
73
74 #define XvGettable      0x01
75 #define XvSettable      0x02
76
77 #define XvRGB           0
78 #define XvYUV           1
79
80 #define XvPacked        0
81 #define XvPlanar        1
82
83 #define XvTopToBottom   0
84 #define XvBottomToTop   1
85
86
87 /* Events */
88
89 #define XvVideoNotify 0
90 #define XvPortNotify 1
91 #define XvNumEvents 2
92
93 /* Video Notify Reasons */
94
95 #define XvStarted 0
96 #define XvStopped 1
97 #define XvBusy 2
98 #define XvPreempted 3
99 #define XvHardError 4
100 #define XvLastReason 4
101
102 #define XvNumReasons (XvLastReason + 1)
103
104 #define XvStartedMask     (1L<<XvStarted)
105 #define XvStoppedMask     (1L<<XvStopped)
106 #define XvBusyMask        (1L<<XvBusy)
107 #define XvPreemptedMask   (1L<<XvPreempted)
108 #define XvHardErrorMask   (1L<<XvHardError)
109
110 #define XvAnyReasonMask   ((1L<<XvNumReasons) - 1)
111 #define XvNoReasonMask    0
112
113 /* Errors */
114
115 #define XvBadPort 0
116 #define XvBadEncoding 1
117 #define XvBadControl 2
118 #define XvNumErrors 3
119
120 /* Status */
121
122 #define XvBadExtension 1
123 #define XvAlreadyGrabbed 2
124 #define XvInvalidTime 3
125 #define XvBadReply 4
126 #define XvBadAlloc 5
127
128 #endif /* XV_H */
129