VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.9.99.901+git20110131.be3be758/rrtransform.h@ 36300

最後變更 在這個檔案從36300是 35847,由 vboxsync 提交於 14 年 前

Additions/x11/x11include: export header files for X.Org Server 1.10 pre-release to OSE

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.8 KB
 
1/*
2 * Copyright © 2007 Keith Packard
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that copyright
7 * notice and this permission notice appear in supporting documentation, and
8 * that the name of the copyright holders not be used in advertising or
9 * publicity pertaining to distribution of the software without specific,
10 * written prior permission. The copyright holders make no representations
11 * about the suitability of this software for any purpose. It is provided "as
12 * is" without express or implied warranty.
13 *
14 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
20 * OF THIS SOFTWARE.
21 */
22
23#ifndef _RRTRANSFORM_H_
24#define _RRTRANSFORM_H_
25
26#include <X11/extensions/randr.h>
27#include "picturestr.h"
28
29typedef struct _rrTransform RRTransformRec, *RRTransformPtr;
30
31struct _rrTransform {
32 PictTransform transform;
33 struct pict_f_transform f_transform;
34 struct pict_f_transform f_inverse;
35 PictFilterPtr filter;
36 xFixed *params;
37 int nparams;
38 int width;
39 int height;
40};
41
42extern _X_EXPORT void
43RRTransformInit (RRTransformPtr transform);
44
45extern _X_EXPORT void
46RRTransformFini (RRTransformPtr transform);
47
48extern _X_EXPORT Bool
49RRTransformEqual (RRTransformPtr a, RRTransformPtr b);
50
51extern _X_EXPORT Bool
52RRTransformSetFilter (RRTransformPtr dst,
53 PictFilterPtr filter,
54 xFixed *params,
55 int nparams,
56 int width,
57 int height);
58
59extern _X_EXPORT Bool
60RRTransformCopy (RRTransformPtr dst, RRTransformPtr src);
61
62/*
63 * Compute the complete transformation matrix including
64 * client-specified transform, rotation/reflection values and the crtc
65 * offset.
66 *
67 * Return TRUE if the resulting transform is not a simple translation.
68 */
69extern _X_EXPORT Bool
70RRTransformCompute (int x,
71 int y,
72 int width,
73 int height,
74 Rotation rotation,
75 RRTransformPtr rr_transform,
76 struct pict_f_transform *sprite_position_transform,
77 struct pict_f_transform *sprite_image_transform,
78
79 PictTransformPtr transform,
80 struct pict_f_transform *f_transform,
81 struct pict_f_transform *f_inverse,
82 struct pict_f_transform *f_fb_to_sprite,
83 struct pict_f_transform *f_sprite_to_image,
84 Bool *sprite_transform_in_use);
85
86#endif /* _RRTRANSFORM_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette