45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright © 2000 SuSE, Inc.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission to use, copy, modify, distribute, and sell this software and its
45e9809aff7304721fddb95654901b32195c9c7avboxsync * documentation for any purpose is hereby granted without fee, provided that
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the above copyright notice appear in all copies and that both that
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copyright notice and this permission notice appear in supporting
45e9809aff7304721fddb95654901b32195c9c7avboxsync * documentation, and that the name of SuSE not be used in advertising or
45e9809aff7304721fddb95654901b32195c9c7avboxsync * publicity pertaining to distribution of the software without specific,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * written prior permission. SuSE makes no representations about the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * suitability of this software for any purpose. It is provided "as is"
45e9809aff7304721fddb95654901b32195c9c7avboxsync * without express or implied warranty.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
45e9809aff7304721fddb95654901b32195c9c7avboxsync * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
45e9809aff7304721fddb95654901b32195c9c7avboxsync * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
45e9809aff7304721fddb95654901b32195c9c7avboxsync * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Author: Keith Packard, SuSE, Inc.
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct pixman_vector PictVector, *PictVectorPtr;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct pixman_transform PictTransform, *PictTransformPtr;
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int class;
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int class;
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int class;
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int class;
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int class;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef Bool (*PictFilterValidateParamsProcPtr) (ScreenPtr pScreen, int id,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef int (*CreatePictureProcPtr) (PicturePtr pPicture);
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*DestroyPictureProcPtr) (PicturePtr pPicture);
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef int (*ChangePictureClipProcPtr) (PicturePtr pPicture,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*DestroyPictureClipProcPtr)(PicturePtr pPicture);
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef int (*ChangePictureTransformProcPtr) (PicturePtr pPicture,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef int (*ChangePictureFilterProcPtr) (PicturePtr pPicture,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*DestroyPictureFilterProcPtr) (PicturePtr pPicture);
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*ChangePictureProcPtr) (PicturePtr pPicture,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*ValidatePictureProcPtr) (PicturePtr pPicture,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*RasterizeTrapezoidProcPtr)(PicturePtr pMask,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef Bool (*InitIndexedProcPtr) (ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*CloseIndexedProcPtr) (ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*UpdateIndexedProcPtr) (ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*AddTrapsProcPtr) (PicturePtr pPicture,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*AddTrianglesProcPtr) (PicturePtr pPicture,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef Bool (*RealizeGlyphProcPtr) (ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*UnrealizeGlyphProcPtr) (ScreenPtr pScreen,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Called immediately after a picture's transform is changed through the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * SetPictureTransform request. Not called for source-only pictures.
45e9809aff7304721fddb95654901b32195c9c7avboxsync ChangePictureTransformProcPtr ChangePictureTransform;
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Called immediately after a picture's transform is changed through the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * SetPictureFilter request. Not called for source-only pictures.
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT DevPrivateKey PictureScreenPrivateKey;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern _X_EXPORT DevPrivateKey PictureWindowPrivateKey;
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GetPictureScreen(s) ((PictureScreenPtr)dixLookupPrivate(&(s)->devPrivates, PictureScreenPrivateKey))
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GetPictureScreenIfSet(s) GetPictureScreen(s)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define SetPictureScreen(s,p) dixSetPrivate(&(s)->devPrivates, PictureScreenPrivateKey, p)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GetPictureWindow(w) ((PicturePtr)dixLookupPrivate(&(w)->devPrivates, PictureWindowPrivateKey))
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define SetPictureWindow(w,p) dixSetPrivate(&(w)->devPrivates, PictureWindowPrivateKey, p)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VERIFY_PICTURE(pPicture, pid, client, mode, err) {\
45e9809aff7304721fddb95654901b32195c9c7avboxsync int rc = dixLookupResourceByType((pointer)&(pPicture), pid,\
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VERIFY_ALPHA(pPicture, pid, client, mode, err) {\
45e9809aff7304721fddb95654901b32195c9c7avboxsync VERIFY_PICTURE(pPicture, pid, client, mode, err); \
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureStoreColors (ColormapPtr pColormap, int ndef, xColorItem *pdef);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureInitIndexedFormat (ScreenPtr pScreen, PictFormatPtr format);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureSetSubpixelOrder (ScreenPtr pScreen, int subpixel);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureCreateDefaultFormats (ScreenPtr pScreen, int *nformatp);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureMatchVisual (ScreenPtr pScreen, int depth, VisualPtr pVisual);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureMatchFormat (ScreenPtr pScreen, int depth, CARD32 format);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureInit (ScreenPtr pScreen, PictFormatPtr formats, int nformats);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureGetFilterId (char *filter, int len, Bool makeit);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureSetFilterAlias (ScreenPtr pScreen, char *filter, char *alias);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureFindFilter (ScreenPtr pScreen, char *name, int len);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncSetPicturePictFilter (PicturePtr pPicture, PictFilterPtr pFilter,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncSetPictureFilter (PicturePtr pPicture, char *name, int len,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncAnimCursorCreate (CursorPtr *cursors, CARD32 *deltas, int ncursor, CursorPtr *ppCursor, ClientPtr client, XID cid);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictTransform_from_xRenderTransform (PictTransformPtr pict,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncxRenderTransform_from_PictTransform (xRenderTransform *render,
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPictureTransformPoint3d (PictTransformPtr transform,
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* _PICTURESTR_H_ */