Xvproto.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
/***********************************************************
Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts,
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the names of Digital or MIT not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
/* $XFree86: xc/include/extensions/Xvproto.h,v 1.6 2001/05/07 21:37:12 tsi Exp $ */
#ifndef XVPROTO_H
#define XVPROTO_H
/*
** File:
**
** Xvproto.h --- Xv protocol header file
**
** Author:
**
** David Carver (Digital Workstation Engineering/Project Athena)
**
** Revisions:
**
** 11.06.91 Carver
** - changed SetPortControl to SetPortAttribute
** - changed GetPortControl to GetPortAttribute
** - changed QueryBestSize
**
** 15.05.91 Carver
** - version 2.0 upgrade
**
** 24.01.91 Carver
** - version 1.4 upgrade
**
*/
/* Symbols: These are undefined at the end of this file to restore the
values they have in Xv.h */
#define XvEncodingID CARD32
/* Structures */
typedef struct {
} xvRational;
#define sz_xvRational 8
typedef struct {
#define sz_xvAdaptorInfo 12
typedef struct {
typedef struct {
} xvFormat;
#define sz_xvFormat 8
typedef struct {
#define sz_xvAttributeInfo 16
typedef struct {
#define sz_xvImageFormatInfo 128
/* Requests */
#define xv_QueryExtension 0
#define xv_QueryAdaptors 1
#define xv_QueryEncodings 2
#define xv_GrabPort 3
#define xv_UngrabPort 4
#define xv_PutVideo 5
#define xv_PutStill 6
#define xv_GetVideo 7
#define xv_GetStill 8
#define xv_StopVideo 9
#define xv_SelectVideoNotify 10
#define xv_SelectPortNotify 11
#define xv_QueryBestSize 12
#define xv_SetPortAttribute 13
#define xv_GetPortAttribute 14
#define xv_QueryPortAttributes 15
#define xv_ListImageFormats 16
#define xv_QueryImageAttributes 17
#define xv_PutImage 18
#define xv_ShmPutImage 19
#define xv_LastRequest xv_ShmPutImage
typedef struct {
#define sz_xvQueryExtensionReq 4
typedef struct {
#define sz_xvQueryAdaptorsReq 8
typedef struct {
#define sz_xvQueryEncodingsReq 8
typedef struct {
#define sz_xvPutVideoReq 32
typedef struct {
#define sz_xvPutStillReq 32
typedef struct {
#define sz_xvGetVideoReq 32
typedef struct {
#define sz_xvGetStillReq 32
typedef struct {
#define sz_xvGrabPortReq 12
typedef struct {
#define sz_xvUngrabPortReq 12
typedef struct {
#define sz_xvSelectVideoNotifyReq 12
typedef struct {
#define sz_xvSelectPortNotifyReq 12
typedef struct {
#define sz_xvStopVideoReq 12
typedef struct {
#define sz_xvSetPortAttributeReq 16
typedef struct {
#define sz_xvGetPortAttributeReq 12
typedef struct {
#define sz_xvQueryBestSizeReq 20
typedef struct {
#define sz_xvQueryPortAttributesReq 8
typedef struct {
#define sz_xvPutImageReq 40
typedef struct {
#define sz_xvShmPutImageReq 52
typedef struct {
#define sz_xvListImageFormatsReq 8
typedef struct {
#define sz_xvQueryImageAttributesReq 16
/* Replies */
typedef struct _QueryExtensionReply {
#define sz_xvQueryExtensionReply 32
typedef struct _QueryAdaptorsReply {
#define sz_xvQueryAdaptorsReply 32
typedef struct _QueryEncodingsReply {
#define sz_xvQueryEncodingsReply 32
typedef struct {
#define sz_xvGrabPortReply 32
typedef struct {
#define sz_xvGetPortAttributeReply 32
typedef struct {
#define sz_xvQueryBestSizeReply 32
typedef struct {
#define sz_xvQueryPortAttributesReply 32
typedef struct {
#define sz_xvListImageFormatsReply 32
typedef struct {
#define sz_xvQueryImageAttributesReply 32
/* DEFINE EVENT STRUCTURE */
typedef struct {
union {
struct {
} u;
struct {
} videoNotify;
struct {
} portNotify;
} u;
} xvEvent;
#endif /* XVPROTO_H */