xref: /OK3568_Linux_fs/external/xserver/fb/fbpict.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  *
3*4882a593Smuzhiyun  * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Permission to use, copy, modify, distribute, and sell this software and its
6*4882a593Smuzhiyun  * documentation for any purpose is hereby granted without fee, provided that
7*4882a593Smuzhiyun  * the above copyright notice appear in all copies and that both that
8*4882a593Smuzhiyun  * copyright notice and this permission notice appear in supporting
9*4882a593Smuzhiyun  * documentation, and that the name of Keith Packard not be used in
10*4882a593Smuzhiyun  * advertising or publicity pertaining to distribution of the software without
11*4882a593Smuzhiyun  * specific, written prior permission.  Keith Packard makes no
12*4882a593Smuzhiyun  * representations about the suitability of this software for any purpose.  It
13*4882a593Smuzhiyun  * is provided "as is" without express or implied warranty.
14*4882a593Smuzhiyun  *
15*4882a593Smuzhiyun  * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16*4882a593Smuzhiyun  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17*4882a593Smuzhiyun  * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18*4882a593Smuzhiyun  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19*4882a593Smuzhiyun  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20*4882a593Smuzhiyun  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21*4882a593Smuzhiyun  * PERFORMANCE OF THIS SOFTWARE.
22*4882a593Smuzhiyun  */
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #ifdef HAVE_DIX_CONFIG_H
25*4882a593Smuzhiyun #include <dix-config.h>
26*4882a593Smuzhiyun #endif
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #ifndef _FBPICT_H_
29*4882a593Smuzhiyun #define _FBPICT_H_
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun /* fbpict.c */
32*4882a593Smuzhiyun extern _X_EXPORT void
33*4882a593Smuzhiyun fbComposite(CARD8 op,
34*4882a593Smuzhiyun             PicturePtr pSrc,
35*4882a593Smuzhiyun             PicturePtr pMask,
36*4882a593Smuzhiyun             PicturePtr pDst,
37*4882a593Smuzhiyun             INT16 xSrc,
38*4882a593Smuzhiyun             INT16 ySrc,
39*4882a593Smuzhiyun             INT16 xMask,
40*4882a593Smuzhiyun             INT16 yMask, INT16 xDst, INT16 yDst, CARD16 width, CARD16 height);
41*4882a593Smuzhiyun 
42*4882a593Smuzhiyun /* fbtrap.c */
43*4882a593Smuzhiyun 
44*4882a593Smuzhiyun extern _X_EXPORT void
45*4882a593Smuzhiyun fbAddTraps(PicturePtr pPicture,
46*4882a593Smuzhiyun            INT16 xOff, INT16 yOff, int ntrap, xTrap * traps);
47*4882a593Smuzhiyun 
48*4882a593Smuzhiyun extern _X_EXPORT void
49*4882a593Smuzhiyun fbRasterizeTrapezoid(PicturePtr alpha, xTrapezoid * trap, int x_off, int y_off);
50*4882a593Smuzhiyun 
51*4882a593Smuzhiyun extern _X_EXPORT void
52*4882a593Smuzhiyun fbAddTriangles(PicturePtr pPicture,
53*4882a593Smuzhiyun                INT16 xOff, INT16 yOff, int ntri, xTriangle * tris);
54*4882a593Smuzhiyun 
55*4882a593Smuzhiyun extern _X_EXPORT void
56*4882a593Smuzhiyun fbTrapezoids(CARD8 op,
57*4882a593Smuzhiyun              PicturePtr pSrc,
58*4882a593Smuzhiyun              PicturePtr pDst,
59*4882a593Smuzhiyun              PictFormatPtr maskFormat,
60*4882a593Smuzhiyun              INT16 xSrc, INT16 ySrc, int ntrap, xTrapezoid * traps);
61*4882a593Smuzhiyun 
62*4882a593Smuzhiyun extern _X_EXPORT void
63*4882a593Smuzhiyun fbTriangles(CARD8 op,
64*4882a593Smuzhiyun             PicturePtr pSrc,
65*4882a593Smuzhiyun             PicturePtr pDst,
66*4882a593Smuzhiyun             PictFormatPtr maskFormat,
67*4882a593Smuzhiyun             INT16 xSrc, INT16 ySrc, int ntris, xTriangle * tris);
68*4882a593Smuzhiyun 
69*4882a593Smuzhiyun extern _X_EXPORT void
70*4882a593Smuzhiyun fbGlyphs(CARD8 op,
71*4882a593Smuzhiyun 	 PicturePtr pSrc,
72*4882a593Smuzhiyun 	 PicturePtr pDst,
73*4882a593Smuzhiyun 	 PictFormatPtr maskFormat,
74*4882a593Smuzhiyun 	 INT16 xSrc,
75*4882a593Smuzhiyun 	 INT16 ySrc, int nlist,
76*4882a593Smuzhiyun 	 GlyphListPtr list,
77*4882a593Smuzhiyun 	 GlyphPtr *glyphs);
78*4882a593Smuzhiyun 
79*4882a593Smuzhiyun #endif                          /* _FBPICT_H_ */
80