45e9809aff7304721fddb95654901b32195c9c7avboxsync/***********************************************************
45e9809aff7304721fddb95654901b32195c9c7avboxsyncCopyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncand the Massachusetts Institute of Technology, Cambridge, Massachusetts.
45e9809aff7304721fddb95654901b32195c9c7avboxsync All Rights Reserved
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPermission to use, copy, modify, and distribute this software and its
45e9809aff7304721fddb95654901b32195c9c7avboxsyncdocumentation for any purpose and without fee is hereby granted,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncprovided that the above copyright notice appear in all copies and that
45e9809aff7304721fddb95654901b32195c9c7avboxsyncboth that copyright notice and this permission notice appear in
45e9809aff7304721fddb95654901b32195c9c7avboxsyncsupporting documentation, and that the names of Digital or MIT not be
45e9809aff7304721fddb95654901b32195c9c7avboxsyncused in advertising or publicity pertaining to distribution of the
45e9809aff7304721fddb95654901b32195c9c7avboxsyncsoftware without specific, written prior permission.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
45e9809aff7304721fddb95654901b32195c9c7avboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
45e9809aff7304721fddb95654901b32195c9c7avboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
45e9809aff7304721fddb95654901b32195c9c7avboxsync******************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync** xvdix.h --- Xv device independent header file
45e9809aff7304721fddb95654901b32195c9c7avboxsync** David Carver (Digital Workstation Engineering/Project Athena)
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Revisions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync** 29.08.91 Carver
45e9809aff7304721fddb95654901b32195c9c7avboxsync** - removed UnrealizeWindow wrapper unrealizing windows no longer
45e9809aff7304721fddb95654901b32195c9c7avboxsync** preempts video
45e9809aff7304721fddb95654901b32195c9c7avboxsync** 11.06.91 Carver
45e9809aff7304721fddb95654901b32195c9c7avboxsync** - changed SetPortControl to SetPortAttribute
45e9809aff7304721fddb95654901b32195c9c7avboxsync** - changed GetPortControl to GetPortAttribute
45e9809aff7304721fddb95654901b32195c9c7avboxsync** - changed QueryBestSize
45e9809aff7304721fddb95654901b32195c9c7avboxsync** 15.05.91 Carver
45e9809aff7304721fddb95654901b32195c9c7avboxsync** - version 2.0 upgrade
45e9809aff7304721fddb95654901b32195c9c7avboxsync** 24.01.91 Carver
45e9809aff7304721fddb95654901b32195c9c7avboxsync** - version 1.4 upgrade
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long XvExtensionGeneration;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long XvScreenGeneration;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long XvResourceGeneration;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long XvRTPort;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long XvRTEncoding;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long XvRTGrab;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long XvRTVideoNotify;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long XvRTVideoNotifyList;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long XvRTPortNotify;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* for RGB formats only */
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* for YUV formats only */
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddAllocatePort)(unsigned long, struct _XvPortRec*,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddPutVideo)(ClientPtr, DrawablePtr,struct _XvPortRec*, GCPtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddPutStill)(ClientPtr, DrawablePtr,struct _XvPortRec*, GCPtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddGetVideo)(ClientPtr, DrawablePtr,struct _XvPortRec*, GCPtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddGetStill)(ClientPtr, DrawablePtr,struct _XvPortRec*, GCPtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddStopVideo)(ClientPtr, struct _XvPortRec*, DrawablePtr);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddSetPortAttribute)(ClientPtr, struct _XvPortRec*, Atom, INT32);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddGetPortAttribute)(ClientPtr, struct _XvPortRec*, Atom, INT32*);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddQueryBestSize)(ClientPtr, struct _XvPortRec*, CARD8,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int*, unsigned int*);
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddPutImage)(ClientPtr, DrawablePtr, struct _XvPortRec*, GCPtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddQueryImageAttributes)(ClientPtr, struct _XvPortRec*, XvImagePtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsync ((XvVideoNotifyPtr)LookupIDByType(_id, XvRTVideoNotifyList))
45e9809aff7304721fddb95654901b32195c9c7avboxsync ((XvPortNotifyPtr)LookupIDByType(_id, XvRTPortNotifyList))
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (* ddQueryAdaptors)(ScreenPtr, XvAdaptorPtr*, int*);
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Errors */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void XvExtensionInit(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvGetScreenIndex(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long XvGetRTPort(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiSendPortNotify(XvPortPtr, Atom, INT32);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiPutVideo(ClientPtr, DrawablePtr, XvPortPtr, GCPtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiPutStill(ClientPtr, DrawablePtr, XvPortPtr, GCPtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiGetVideo(ClientPtr, DrawablePtr, XvPortPtr, GCPtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiGetStill(ClientPtr, DrawablePtr, XvPortPtr, GCPtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiPutImage(ClientPtr, DrawablePtr, XvPortPtr, GCPtr,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiSelectVideoNotify(ClientPtr, DrawablePtr, BOOL);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiSelectPortNotify(ClientPtr, XvPortPtr, BOOL);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiSetPortAttribute(ClientPtr, XvPortPtr, Atom, INT32);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiGetPortAttribute(ClientPtr, XvPortPtr, Atom, INT32*);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiStopVideo(ClientPtr, XvPortPtr, DrawablePtr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiPreemptVideo(ClientPtr, XvPortPtr, DrawablePtr);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiGrabPort(ClientPtr, XvPortPtr, Time, int *);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int XvdiUngrabPort( ClientPtr, XvPortPtr, Time);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#if !defined(UNIXCPP)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* XVDIX_H */