fbpict.h revision 42542f5f
103b705cfSriastradh/*
203b705cfSriastradh * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
303b705cfSriastradh * Copyright © 2012 Intel Corporation
403b705cfSriastradh *
503b705cfSriastradh * Permission to use, copy, modify, distribute, and sell this software and its
603b705cfSriastradh * documentation for any purpose is hereby granted without fee, provided that
703b705cfSriastradh * the above copyright notice appear in all copies and that both that
803b705cfSriastradh * copyright notice and this permission notice appear in supporting
903b705cfSriastradh * documentation, and that the name of Keith Packard not be used in
1003b705cfSriastradh * advertising or publicity pertaining to distribution of the software without
1103b705cfSriastradh * specific, written prior permission.  Keith Packard makes no
1203b705cfSriastradh * representations about the suitability of this software for any purpose.  It
1303b705cfSriastradh * is provided "as is" without express or implied warranty.
1403b705cfSriastradh *
1503b705cfSriastradh * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1603b705cfSriastradh * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1703b705cfSriastradh * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1803b705cfSriastradh * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1903b705cfSriastradh * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
2003b705cfSriastradh * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2103b705cfSriastradh * PERFORMANCE OF THIS SOFTWARE.
2203b705cfSriastradh */
2303b705cfSriastradh
2403b705cfSriastradh#ifndef FBPICT_H
2503b705cfSriastradh#define FBPICT_H
2603b705cfSriastradh
2703b705cfSriastradh#ifdef HAVE_CONFIG_H
2803b705cfSriastradh#include "config.h"
2903b705cfSriastradh#endif
3003b705cfSriastradh
3142542f5fSchristos#include <xorg-server.h>
3203b705cfSriastradh#include <picturestr.h>
3303b705cfSriastradh
3403b705cfSriastradh#include "sfb.h"
3503b705cfSriastradh
3603b705cfSriastradhextern void
3703b705cfSriastradhfbComposite(CARD8 op,
3803b705cfSriastradh	    PicturePtr pSrc,
3903b705cfSriastradh	    PicturePtr pMask,
4003b705cfSriastradh	    PicturePtr pDst,
4103b705cfSriastradh	    INT16 xSrc, INT16 ySrc,
4203b705cfSriastradh	    INT16 xMask, INT16 yMask,
4303b705cfSriastradh	    INT16 xDst, INT16 yDst,
4403b705cfSriastradh	    CARD16 width, CARD16 height);
4503b705cfSriastradh
4603b705cfSriastradhextern pixman_image_t *image_from_pict(PicturePtr pict,
4703b705cfSriastradh				       Bool has_clip,
4803b705cfSriastradh				       int *xoff, int *yoff);
4903b705cfSriastradh
5003b705cfSriastradhextern void free_pixman_pict(PicturePtr, pixman_image_t *);
5103b705cfSriastradh
5203b705cfSriastradh#endif  /* FBPICT_H */
53