1706f2543Smrg 2706f2543Smrg/* 3706f2543Smrg * Copyright (c) 2003 by The XFree86 Project, Inc. 4706f2543Smrg * 5706f2543Smrg * Permission is hereby granted, free of charge, to any person obtaining a 6706f2543Smrg * copy of this software and associated documentation files (the "Software"), 7706f2543Smrg * to deal in the Software without restriction, including without limitation 8706f2543Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9706f2543Smrg * and/or sell copies of the Software, and to permit persons to whom the 10706f2543Smrg * Software is furnished to do so, subject to the following conditions: 11706f2543Smrg * 12706f2543Smrg * The above copyright notice and this permission notice shall be included in 13706f2543Smrg * all copies or substantial portions of the Software. 14706f2543Smrg * 15706f2543Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16706f2543Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17706f2543Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18706f2543Smrg * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 19706f2543Smrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20706f2543Smrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21706f2543Smrg * OTHER DEALINGS IN THE SOFTWARE. 22706f2543Smrg * 23706f2543Smrg * Except as contained in this notice, the name of the copyright holder(s) 24706f2543Smrg * and author(s) shall not be used in advertising or otherwise to promote 25706f2543Smrg * the sale, use or other dealings in this Software without prior written 26706f2543Smrg * authorization from the copyright holder(s) and author(s). 27706f2543Smrg */ 28706f2543Smrg 29706f2543Smrg#ifndef _XF86XVPRIV_H_ 30706f2543Smrg#define _XF86XVPRIV_H_ 31706f2543Smrg 32706f2543Smrg#include "xf86xv.h" 33706f2543Smrg#include "privates.h" 34706f2543Smrg 35706f2543Smrg/*** These are DDX layer privates ***/ 36706f2543Smrg 37706f2543Smrgextern _X_EXPORT DevPrivateKey XF86XvScreenKey; 38706f2543Smrg 39706f2543Smrgtypedef struct { 40706f2543Smrg DestroyWindowProcPtr DestroyWindow; 41706f2543Smrg ClipNotifyProcPtr ClipNotify; 42706f2543Smrg WindowExposuresProcPtr WindowExposures; 43706f2543Smrg PostValidateTreeProcPtr PostValidateTree; 44706f2543Smrg void (*AdjustFrame)(int, int, int, int); 45706f2543Smrg Bool (*EnterVT)(int, int); 46706f2543Smrg void (*LeaveVT)(int, int); 47706f2543Smrg xf86ModeSetProc *ModeSet; 48706f2543Smrg} XF86XVScreenRec, *XF86XVScreenPtr; 49706f2543Smrg 50706f2543Smrgtypedef struct { 51706f2543Smrg int flags; 52706f2543Smrg PutVideoFuncPtr PutVideo; 53706f2543Smrg PutStillFuncPtr PutStill; 54706f2543Smrg GetVideoFuncPtr GetVideo; 55706f2543Smrg GetStillFuncPtr GetStill; 56706f2543Smrg StopVideoFuncPtr StopVideo; 57706f2543Smrg SetPortAttributeFuncPtr SetPortAttribute; 58706f2543Smrg GetPortAttributeFuncPtr GetPortAttribute; 59706f2543Smrg QueryBestSizeFuncPtr QueryBestSize; 60706f2543Smrg PutImageFuncPtr PutImage; 61706f2543Smrg ReputImageFuncPtr ReputImage; 62706f2543Smrg QueryImageAttributesFuncPtr QueryImageAttributes; 63706f2543Smrg ClipNotifyFuncPtr ClipNotify; 64706f2543Smrg} XvAdaptorRecPrivate, *XvAdaptorRecPrivatePtr; 65706f2543Smrg 66706f2543Smrgtypedef struct { 67706f2543Smrg ScrnInfoPtr pScrn; 68706f2543Smrg DrawablePtr pDraw; 69706f2543Smrg unsigned char type; 70706f2543Smrg unsigned int subWindowMode; 71706f2543Smrg RegionPtr clientClip; 72706f2543Smrg RegionPtr ckeyFilled; 73706f2543Smrg RegionPtr pCompositeClip; 74706f2543Smrg Bool FreeCompositeClip; 75706f2543Smrg XvAdaptorRecPrivatePtr AdaptorRec; 76706f2543Smrg XvStatus isOn; 77706f2543Smrg Bool clipChanged; 78706f2543Smrg int vid_x, vid_y, vid_w, vid_h; 79706f2543Smrg int drw_x, drw_y, drw_w, drw_h; 80706f2543Smrg DevUnion DevPriv; 81706f2543Smrg} XvPortRecPrivate, *XvPortRecPrivatePtr; 82706f2543Smrg 83706f2543Smrgtypedef struct _XF86XVWindowRec{ 84706f2543Smrg XvPortRecPrivatePtr PortRec; 85706f2543Smrg struct _XF86XVWindowRec *next; 86706f2543Smrg} XF86XVWindowRec, *XF86XVWindowPtr; 87706f2543Smrg 88706f2543Smrg#endif /* _XF86XVPRIV_H_ */ 89