diff options
author | Keith Packard <keithp@keithp.com> | 2008-11-24 13:08:48 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-11-25 22:17:58 -0800 |
commit | 9ffc6719390df8fdd0a5295a7a7a0eaea792be45 (patch) | |
tree | 5e8458e61270bc1c8a2473b51ead0562a9414a96 /render/picturestr.h | |
parent | c4b9ab6bf56139fdd8c7c584a6f523c6766cddd6 (diff) |
Move matrix operations from X server to pixman 0.13.2
pixman 0.13.2 now holds all of the matrix operations. This leaves
the protocol conversion routines and some ABI stubs in place
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'render/picturestr.h')
-rw-r--r-- | render/picturestr.h | 120 |
1 files changed, 6 insertions, 114 deletions
diff --git a/render/picturestr.h b/render/picturestr.h index ab5dc162a..4d788fcfb 100644 --- a/render/picturestr.h +++ b/render/picturestr.h @@ -56,13 +56,8 @@ typedef struct _PictFormat { typedef struct pixman_vector PictVector, *PictVectorPtr; typedef struct pixman_transform PictTransform, *PictTransformPtr; -struct pict_f_vector { - double v[3]; -}; - -struct pict_f_transform { - double m[3][3]; -}; +#define pict_f_vector pixman_f_vector +#define pict_f_transform pixman_f_transform #define PICT_GRADIENT_STOPTABLE_SIZE 1024 #define SourcePictTypeSolidFill 0 @@ -685,62 +680,6 @@ void PanoramiXRenderReset (void); /* * matrix.c */ -void -PictureTransformInitIdentity (PictTransformPtr matrix); - -Bool -PictureTransformPoint3d (PictTransformPtr transform, - PictVectorPtr vector); - -Bool -PictureTransformPoint (PictTransformPtr transform, - PictVectorPtr vector); - -Bool -PictureTransformMultiply (PictTransformPtr dst, - PictTransformPtr l, PictTransformPtr r); - -void -PictureTransformInitScale (PictTransformPtr t, xFixed sx, xFixed sy); - -Bool -PictureTransformScale (PictTransformPtr forward, - PictTransformPtr reverse, - xFixed sx, xFixed sy); - -void -PictureTransformInitRotate (PictTransformPtr t, xFixed c, xFixed s); - -Bool -PictureTransformRotate (PictTransformPtr forward, - PictTransformPtr reverse, - xFixed c, xFixed s); - -void -PictureTransformInitTranslate (PictTransformPtr t, xFixed tx, xFixed ty); - -Bool -PictureTransformTranslate (PictTransformPtr forward, - PictTransformPtr reverse, - xFixed tx, xFixed ty); - -Bool -PictureTransformBounds (BoxPtr b, PictTransformPtr matrix); - -Bool -PictureTransformInvert (PictTransformPtr dst, const PictTransformPtr src); - -Bool -PictureTransformIsIdentity(PictTransform *t); - -Bool -PictureTransformIsScale(PictTransform *t); - -Bool -PictureTransformIsIntTranslate (PictTransform *t); - -Bool -PictureTransformIsInverse(PictTransform *t, PictTransform *i); void PictTransform_from_xRenderTransform (PictTransformPtr pict, @@ -750,59 +689,12 @@ void xRenderTransform_from_PictTransform (xRenderTransform *render, PictTransformPtr pict); -void -pict_f_transform_from_pixman_transform (struct pict_f_transform *ft, - struct pixman_transform *t); - -Bool -pixman_transform_from_pict_f_transform (struct pixman_transform *t, - struct pict_f_transform *ft); - -Bool -pict_f_transform_invert (struct pict_f_transform *r, - struct pict_f_transform *m); - - -Bool -pict_f_transform_point (struct pict_f_transform *t, - struct pict_f_vector *v); - -void -pict_f_transform_point_3d (struct pict_f_transform *t, - struct pict_f_vector *v); - -void -pict_f_transform_multiply (struct pict_f_transform *dst, - struct pict_f_transform *l, struct pict_f_transform *r); - -void -pict_f_transform_init_scale (struct pict_f_transform *t, double sx, double sy); - -Bool -pict_f_transform_scale (struct pict_f_transform *forward, - struct pict_f_transform *reverse, - double sx, double sy); - -void -pict_f_transform_init_rotate (struct pict_f_transform *t, double c, double s); - -Bool -pict_f_transform_rotate (struct pict_f_transform *forward, - struct pict_f_transform *reverse, - double c, double s); - -void -pict_f_transform_init_translate (struct pict_f_transform *t, double tx, double ty); - Bool -pict_f_transform_translate (struct pict_f_transform *forward, - struct pict_f_transform *reverse, - double tx, double ty); +PictureTransformPoint (PictTransformPtr transform, + PictVectorPtr vector); Bool -pict_f_transform_bounds (struct pict_f_transform *t, BoxPtr b); - -void -pict_f_transform_init_identity (struct pict_f_transform *t); +PictureTransformPoint3d (PictTransformPtr transform, + PictVectorPtr vector); #endif /* _PICTURESTR_H_ */ |