1 /***********************************************************
2 Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts,
3 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
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.
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
23 ******************************************************************/
30 ** Xv.h --- Xv shared library and server header file
34 ** David Carver (Digital Workstation Engineering/Project Athena)
39 ** - version 2.0 upgrade
42 ** - version 1.4 upgrade
48 #define XvName "XVideo"
55 typedef XID XvEncodingID;
62 #define XvInputMask (1L<<XvInput)
63 #define XvOutputMask (1L<<XvOutput)
64 #define XvVideoMask 0x00000004
65 #define XvStillMask 0x00000008
66 #define XvImageMask 0x00000010
68 /* These two are not client viewable */
69 #define XvPixmapMask 0x00010000
70 #define XvWindowMask 0x00020000
73 #define XvGettable 0x01
74 #define XvSettable 0x02
82 #define XvTopToBottom 0
83 #define XvBottomToTop 1
88 #define XvVideoNotify 0
89 #define XvPortNotify 1
92 /* Video Notify Reasons */
99 #define XvLastReason 4
101 #define XvNumReasons (XvLastReason + 1)
103 #define XvStartedMask (1L<<XvStarted)
104 #define XvStoppedMask (1L<<XvStopped)
105 #define XvBusyMask (1L<<XvBusy)
106 #define XvPreemptedMask (1L<<XvPreempted)
107 #define XvHardErrorMask (1L<<XvHardError)
109 #define XvAnyReasonMask ((1L<<XvNumReasons) - 1)
110 #define XvNoReasonMask 0
115 #define XvBadEncoding 1
116 #define XvBadControl 2
117 #define XvNumErrors 3
121 #define XvBadExtension 1
122 #define XvAlreadyGrabbed 2
123 #define XvInvalidTime 3