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