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 ******************************************************************/
24 /* $XFree86: xc/include/extensions/Xv.h,v 1.5 1999/12/11 19:28:48 mvojkovi Exp $ */
31 ** Xv.h --- Xv shared library and server header file
35 ** David Carver (Digital Workstation Engineering/Project Athena)
40 ** - version 2.0 upgrade
43 ** - version 1.4 upgrade
49 #define XvName "XVideo"
56 typedef XID XvEncodingID;
63 #define XvInputMask (1L<<XvInput)
64 #define XvOutputMask (1L<<XvOutput)
65 #define XvVideoMask 0x00000004
66 #define XvStillMask 0x00000008
67 #define XvImageMask 0x00000010
69 /* These two are not client viewable */
70 #define XvPixmapMask 0x00010000
71 #define XvWindowMask 0x00020000
74 #define XvGettable 0x01
75 #define XvSettable 0x02
83 #define XvTopToBottom 0
84 #define XvBottomToTop 1
89 #define XvVideoNotify 0
90 #define XvPortNotify 1
93 /* Video Notify Reasons */
100 #define XvLastReason 4
102 #define XvNumReasons (XvLastReason + 1)
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)
110 #define XvAnyReasonMask ((1L<<XvNumReasons) - 1)
111 #define XvNoReasonMask 0
116 #define XvBadEncoding 1
117 #define XvBadControl 2
118 #define XvNumErrors 3
122 #define XvBadExtension 1
123 #define XvAlreadyGrabbed 2
124 #define XvInvalidTime 3