1/*
2 * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
3 * Copyright © 2012 Intel Corporation
4 *
5 * Permission to use, copy, modify, distribute, and sell this software and its
6 * documentation for any purpose is hereby granted without fee, provided that
7 * the above copyright notice appear in all copies and that both that
8 * copyright notice and this permission notice appear in supporting
9 * documentation, and that the name of Keith Packard not be used in
10 * advertising or publicity pertaining to distribution of the software without
11 * specific, written prior permission.  Keith Packard makes no
12 * representations about the suitability of this software for any purpose.  It
13 * is provided "as is" without express or implied warranty.
14 *
15 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21 * PERFORMANCE OF THIS SOFTWARE.
22 */
23
24#ifndef FBPICT_H
25#define FBPICT_H
26
27#include <xorg-server.h>
28#include <picturestr.h>
29
30#include "sfb.h"
31
32extern void
33fbComposite(CARD8 op,
34	    PicturePtr pSrc,
35	    PicturePtr pMask,
36	    PicturePtr pDst,
37	    INT16 xSrc, INT16 ySrc,
38	    INT16 xMask, INT16 yMask,
39	    INT16 xDst, INT16 yDst,
40	    CARD16 width, CARD16 height);
41
42extern pixman_image_t *image_from_pict(PicturePtr pict,
43				       Bool has_clip,
44				       int *xoff, int *yoff);
45
46extern void free_pixman_pict(PicturePtr, pixman_image_t *);
47
48#endif  /* FBPICT_H */
49