mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-28 02:21:08 +00:00
Merge f277f2f642 into a8192aa709
This commit is contained in:
commit
683c11dfb1
12 changed files with 72 additions and 128 deletions
|
|
@ -53,6 +53,7 @@
|
||||||
#include "os/osdep.h"
|
#include "os/osdep.h"
|
||||||
#include "Xext/panoramiX/panoramiX_priv.h"
|
#include "Xext/panoramiX/panoramiX_priv.h"
|
||||||
#include "Xext/panoramiX/panoramiXsrv.h"
|
#include "Xext/panoramiX/panoramiXsrv.h"
|
||||||
|
#include "Xext/render/picturestr_priv.h"
|
||||||
|
|
||||||
#include "compint.h"
|
#include "compint.h"
|
||||||
#include "compositeext_priv.h"
|
#include "compositeext_priv.h"
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
#include "os/osdep.h"
|
#include "os/osdep.h"
|
||||||
#include "Xext/randr/randrstr_priv.h"
|
#include "Xext/randr/randrstr_priv.h"
|
||||||
#include "Xext/randr/rrdispatch_priv.h"
|
#include "Xext/randr/rrdispatch_priv.h"
|
||||||
|
#include "Xext/render/picturestr_priv.h"
|
||||||
|
|
||||||
#include "swaprep.h"
|
#include "swaprep.h"
|
||||||
#include "mipointer.h"
|
#include "mipointer.h"
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
|
|
||||||
#include "Xext/randr/randrstr_priv.h"
|
#include "Xext/randr/randrstr_priv.h"
|
||||||
|
#include "Xext/render/picturestr_priv.h"
|
||||||
|
|
||||||
static RRModePtr
|
static RRModePtr
|
||||||
RROldModeAdd(RROutputPtr output, RRScreenSizePtr size, int refresh)
|
RROldModeAdd(RROutputPtr output, RRScreenSizePtr size, int refresh)
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
#include "dix/server_priv.h"
|
#include "dix/server_priv.h"
|
||||||
#include "Xext/randr/randrstr_priv.h"
|
#include "Xext/randr/randrstr_priv.h"
|
||||||
#include "Xext/randr/rrdispatch_priv.h"
|
#include "Xext/randr/rrdispatch_priv.h"
|
||||||
|
#include "Xext/render/picturestr_priv.h"
|
||||||
|
|
||||||
static CARD16 RR10CurrentSizeID(ScreenPtr pScreen);
|
static CARD16 RR10CurrentSizeID(ScreenPtr pScreen);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#include "dix/screenint_priv.h"
|
#include "dix/screenint_priv.h"
|
||||||
#include "include/misc.h"
|
#include "include/misc.h"
|
||||||
|
#include "render/picturestr_priv.h"
|
||||||
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
#include "include/misc.h"
|
#include "include/misc.h"
|
||||||
#include "os/bug_priv.h"
|
#include "os/bug_priv.h"
|
||||||
#include "os/xsha1.h"
|
#include "os/xsha1.h"
|
||||||
|
#include "render/picturestr_priv.h"
|
||||||
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
|
|
||||||
#include "include/misc.h"
|
#include "include/misc.h"
|
||||||
|
#include "render/picturestr_priv.h"
|
||||||
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
|
|
|
||||||
|
|
@ -27,13 +27,13 @@
|
||||||
|
|
||||||
#include "include/mipict.h"
|
#include "include/mipict.h"
|
||||||
#include "os/osdep.h"
|
#include "os/osdep.h"
|
||||||
|
#include "render/picturestr_priv.h"
|
||||||
|
|
||||||
#include "scrnintstr.h"
|
#include "scrnintstr.h"
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "pixmapstr.h"
|
#include "pixmapstr.h"
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "mi.h"
|
#include "mi.h"
|
||||||
#include "picturestr.h"
|
|
||||||
|
|
||||||
int
|
int
|
||||||
miCreatePicture(PicturePtr pPicture)
|
miCreatePicture(PicturePtr pPicture)
|
||||||
|
|
|
||||||
|
|
@ -43,4 +43,66 @@ void PanoramiXRenderInit(void);
|
||||||
void PanoramiXRenderReset(void);
|
void PanoramiXRenderReset(void);
|
||||||
#endif /* XINERAMA */
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
|
int PictureGetSubpixelOrder(ScreenPtr pScreen);
|
||||||
|
Bool PictureInit(ScreenPtr pScreen, PictFormatPtr formats, int nformats);
|
||||||
|
int PictureGetFilterId(const char *filter, int len, Bool makeit);
|
||||||
|
int PictureAddFilter(ScreenPtr pScreen, const char *filter,
|
||||||
|
PictFilterValidateParamsProcPtr ValidateParams,
|
||||||
|
int width, int height);
|
||||||
|
Bool PictureSetFilterAlias(ScreenPtr pScreen, const char *filter,
|
||||||
|
const char *alias);
|
||||||
|
Bool PictureSetDefaultFilters(ScreenPtr pScreen);
|
||||||
|
void PictureResetFilters(ScreenPtr pScreen);
|
||||||
|
Bool PictureFinishInit(void);
|
||||||
|
int SetPictureClipRects(PicturePtr pPicture, int xOrigin, int yOrigin,
|
||||||
|
int nRect, xRectangle *rects);
|
||||||
|
int SetPictureClipRegion(PicturePtr pPicture, int xOrigin, int yOrigin,
|
||||||
|
RegionPtr pRegion);
|
||||||
|
void CompositeGlyphs(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
|
||||||
|
PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
|
||||||
|
int nlist, GlyphListPtr lists, GlyphPtr *glyphs);
|
||||||
|
void CompositeRects(CARD8 op, PicturePtr pDst, xRenderColor *color,
|
||||||
|
int nRect, xRectangle *rects);
|
||||||
|
void CompositeTrapezoids(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
|
||||||
|
PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
|
||||||
|
int ntrap, xTrapezoid *traps);
|
||||||
|
void CompositeTriangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
|
||||||
|
PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
|
||||||
|
int ntriangles, xTriangle * triangles);
|
||||||
|
void CompositeTriStrip(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
|
||||||
|
PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
|
||||||
|
int npoints, xPointFixed * points);
|
||||||
|
void CompositeTriFan(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
|
||||||
|
PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
|
||||||
|
int npoints, xPointFixed * points);
|
||||||
|
void AddTraps(PicturePtr pPicture, INT16 xOff, INT16 yOff, int ntraps,
|
||||||
|
xTrap *traps);
|
||||||
|
PicturePtr CreateLinearGradientPicture(Picture pid, xPointFixed *p1,
|
||||||
|
xPointFixed *p2, int nStops,
|
||||||
|
xFixed *stops, xRenderColor *colors,
|
||||||
|
int *error);
|
||||||
|
PicturePtr CreateRadialGradientPicture(Picture pid, xPointFixed *inner,
|
||||||
|
xPointFixed *outer, xFixed innerRadius,
|
||||||
|
xFixed outerRadius, int nStops,
|
||||||
|
xFixed *stops, xRenderColor *colors,
|
||||||
|
int *error);
|
||||||
|
PicturePtr CreateConicalGradientPicture(Picture pid, xPointFixed *center,
|
||||||
|
xFixed angle, int nStops, xFixed *stops,
|
||||||
|
xRenderColor *colors, int *error);
|
||||||
|
void PictTransform_from_xRenderTransform(PictTransformPtr pict,
|
||||||
|
xRenderTransform *render);
|
||||||
|
void xRenderTransform_from_PictTransform(xRenderTransform *render,
|
||||||
|
PictTransformPtr pict);
|
||||||
|
Bool PictureTransformPoint3d(PictTransformPtr transform,
|
||||||
|
PictVectorPtr vector);
|
||||||
|
|
||||||
|
/* these need to be _X_EXPORT'ed for Nvidia proprietary, but should not
|
||||||
|
be used by external drivers anymore */
|
||||||
|
_X_EXPORT PictFormatPtr PictureMatchVisual(ScreenPtr pScreen, int depth,
|
||||||
|
VisualPtr pVisual);
|
||||||
|
_X_EXPORT PictFilterPtr PictureFindFilter(ScreenPtr pScreen, char *name,
|
||||||
|
int len);
|
||||||
|
_X_EXPORT int SetPictureFilter(PicturePtr pPicture, char *name, int len,
|
||||||
|
xFixed *params, int nparams);
|
||||||
|
|
||||||
#endif /* _XSERVER_PICTURESTR_PRIV_H_ */
|
#endif /* _XSERVER_PICTURESTR_PRIV_H_ */
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@
|
||||||
#include "Xext/dpms/dpms_priv.h"
|
#include "Xext/dpms/dpms_priv.h"
|
||||||
#endif
|
#endif
|
||||||
#include "Xext/randr/randrstr_priv.h"
|
#include "Xext/randr/randrstr_priv.h"
|
||||||
|
#include "Xext/render/picturestr_priv.h"
|
||||||
|
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
|
|
@ -86,7 +87,6 @@
|
||||||
#include "xf86Xinput.h"
|
#include "xf86Xinput.h"
|
||||||
#include "xf86InPriv.h"
|
#include "xf86InPriv.h"
|
||||||
#include "xf86Crtc.h"
|
#include "xf86Crtc.h"
|
||||||
#include "picturestr.h"
|
|
||||||
#include "xf86Bus.h"
|
#include "xf86Bus.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "xserver-properties.h"
|
#include "xserver-properties.h"
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@
|
||||||
#include "win.h"
|
#include "win.h"
|
||||||
|
|
||||||
#include "Xext/randr/randrstr_priv.h"
|
#include "Xext/randr/randrstr_priv.h"
|
||||||
|
#include "Xext/render/picturestr_priv.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Answer queries about the RandR features supported.
|
* Answer queries about the RandR features supported.
|
||||||
|
|
|
||||||
|
|
@ -356,52 +356,15 @@ extern _X_EXPORT PictFormatPtr
|
||||||
extern _X_EXPORT Bool
|
extern _X_EXPORT Bool
|
||||||
PictureSetSubpixelOrder(ScreenPtr pScreen, int subpixel);
|
PictureSetSubpixelOrder(ScreenPtr pScreen, int subpixel);
|
||||||
|
|
||||||
extern _X_EXPORT int
|
|
||||||
PictureGetSubpixelOrder(ScreenPtr pScreen);
|
|
||||||
|
|
||||||
extern _X_EXPORT PictFormatPtr
|
|
||||||
PictureMatchVisual(ScreenPtr pScreen, int depth, VisualPtr pVisual);
|
|
||||||
|
|
||||||
extern _X_EXPORT PictFormatPtr
|
extern _X_EXPORT PictFormatPtr
|
||||||
PictureMatchFormat(ScreenPtr pScreen, int depth, CARD32 format);
|
PictureMatchFormat(ScreenPtr pScreen, int depth, CARD32 format);
|
||||||
|
|
||||||
extern _X_EXPORT Bool
|
|
||||||
PictureInit(ScreenPtr pScreen, PictFormatPtr formats, int nformats);
|
|
||||||
|
|
||||||
extern _X_EXPORT int
|
|
||||||
PictureGetFilterId(const char *filter, int len, Bool makeit);
|
|
||||||
|
|
||||||
extern _X_EXPORT char *PictureGetFilterName(int id);
|
extern _X_EXPORT char *PictureGetFilterName(int id);
|
||||||
|
|
||||||
extern _X_EXPORT int
|
|
||||||
PictureAddFilter(ScreenPtr pScreen,
|
|
||||||
const char *filter,
|
|
||||||
PictFilterValidateParamsProcPtr ValidateParams,
|
|
||||||
int width, int height);
|
|
||||||
|
|
||||||
extern _X_EXPORT Bool
|
|
||||||
PictureSetFilterAlias(ScreenPtr pScreen, const char *filter, const char *alias);
|
|
||||||
|
|
||||||
extern _X_EXPORT Bool
|
|
||||||
PictureSetDefaultFilters(ScreenPtr pScreen);
|
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
PictureResetFilters(ScreenPtr pScreen);
|
|
||||||
|
|
||||||
extern _X_EXPORT PictFilterPtr
|
|
||||||
PictureFindFilter(ScreenPtr pScreen, char *name, int len);
|
|
||||||
|
|
||||||
extern _X_EXPORT int
|
extern _X_EXPORT int
|
||||||
SetPicturePictFilter(PicturePtr pPicture, PictFilterPtr pFilter,
|
SetPicturePictFilter(PicturePtr pPicture, PictFilterPtr pFilter,
|
||||||
xFixed * params, int nparams);
|
xFixed * params, int nparams);
|
||||||
|
|
||||||
extern _X_EXPORT int
|
|
||||||
SetPictureFilter(PicturePtr pPicture, char *name, int len,
|
|
||||||
xFixed * params, int nparams);
|
|
||||||
|
|
||||||
extern _X_EXPORT Bool
|
|
||||||
PictureFinishInit(void);
|
|
||||||
|
|
||||||
extern _X_EXPORT PicturePtr
|
extern _X_EXPORT PicturePtr
|
||||||
CreatePicture(Picture pid,
|
CreatePicture(Picture pid,
|
||||||
DrawablePtr pDrawable,
|
DrawablePtr pDrawable,
|
||||||
|
|
@ -412,15 +375,6 @@ extern _X_EXPORT int
|
||||||
ChangePicture(PicturePtr pPicture,
|
ChangePicture(PicturePtr pPicture,
|
||||||
Mask vmask, XID *vlist, DevUnion *ulist, ClientPtr client);
|
Mask vmask, XID *vlist, DevUnion *ulist, ClientPtr client);
|
||||||
|
|
||||||
extern _X_EXPORT int
|
|
||||||
|
|
||||||
SetPictureClipRects(PicturePtr pPicture,
|
|
||||||
int xOrigin, int yOrigin, int nRect, xRectangle *rects);
|
|
||||||
|
|
||||||
extern _X_EXPORT int
|
|
||||||
SetPictureClipRegion(PicturePtr pPicture,
|
|
||||||
int xOrigin, int yOrigin, RegionPtr pRegion);
|
|
||||||
|
|
||||||
extern _X_EXPORT int
|
extern _X_EXPORT int
|
||||||
SetPictureTransform(PicturePtr pPicture, PictTransform * transform);
|
SetPictureTransform(PicturePtr pPicture, PictTransform * transform);
|
||||||
|
|
||||||
|
|
@ -441,94 +395,14 @@ CompositePicture(CARD8 op,
|
||||||
INT16 yMask,
|
INT16 yMask,
|
||||||
INT16 xDst, INT16 yDst, CARD16 width, CARD16 height);
|
INT16 xDst, INT16 yDst, CARD16 width, CARD16 height);
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
CompositeGlyphs(CARD8 op,
|
|
||||||
PicturePtr pSrc,
|
|
||||||
PicturePtr pDst,
|
|
||||||
PictFormatPtr maskFormat,
|
|
||||||
INT16 xSrc,
|
|
||||||
INT16 ySrc, int nlist, GlyphListPtr lists, GlyphPtr * glyphs);
|
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
CompositeRects(CARD8 op,
|
|
||||||
PicturePtr pDst,
|
|
||||||
xRenderColor * color, int nRect, xRectangle *rects);
|
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
CompositeTrapezoids(CARD8 op,
|
|
||||||
PicturePtr pSrc,
|
|
||||||
PicturePtr pDst,
|
|
||||||
PictFormatPtr maskFormat,
|
|
||||||
INT16 xSrc, INT16 ySrc, int ntrap, xTrapezoid * traps);
|
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
CompositeTriangles(CARD8 op,
|
|
||||||
PicturePtr pSrc,
|
|
||||||
PicturePtr pDst,
|
|
||||||
PictFormatPtr maskFormat,
|
|
||||||
INT16 xSrc,
|
|
||||||
INT16 ySrc, int ntriangles, xTriangle * triangles);
|
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
CompositeTriStrip(CARD8 op,
|
|
||||||
PicturePtr pSrc,
|
|
||||||
PicturePtr pDst,
|
|
||||||
PictFormatPtr maskFormat,
|
|
||||||
INT16 xSrc, INT16 ySrc, int npoints, xPointFixed * points);
|
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
CompositeTriFan(CARD8 op,
|
|
||||||
PicturePtr pSrc,
|
|
||||||
PicturePtr pDst,
|
|
||||||
PictFormatPtr maskFormat,
|
|
||||||
INT16 xSrc, INT16 ySrc, int npoints, xPointFixed * points);
|
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
AddTraps(PicturePtr pPicture,
|
|
||||||
INT16 xOff, INT16 yOff, int ntraps, xTrap * traps);
|
|
||||||
|
|
||||||
extern _X_EXPORT PicturePtr
|
extern _X_EXPORT PicturePtr
|
||||||
CreateSolidPicture(Picture pid, xRenderColor * color, int *error);
|
CreateSolidPicture(Picture pid, xRenderColor * color, int *error);
|
||||||
|
|
||||||
extern _X_EXPORT PicturePtr
|
|
||||||
CreateLinearGradientPicture(Picture pid,
|
|
||||||
xPointFixed * p1,
|
|
||||||
xPointFixed * p2,
|
|
||||||
int nStops,
|
|
||||||
xFixed * stops, xRenderColor * colors, int *error);
|
|
||||||
|
|
||||||
extern _X_EXPORT PicturePtr
|
|
||||||
CreateRadialGradientPicture(Picture pid,
|
|
||||||
xPointFixed * inner,
|
|
||||||
xPointFixed * outer,
|
|
||||||
xFixed innerRadius,
|
|
||||||
xFixed outerRadius,
|
|
||||||
int nStops,
|
|
||||||
xFixed * stops, xRenderColor * colors, int *error);
|
|
||||||
|
|
||||||
extern _X_EXPORT PicturePtr
|
|
||||||
CreateConicalGradientPicture(Picture pid,
|
|
||||||
xPointFixed * center,
|
|
||||||
xFixed angle,
|
|
||||||
int nStops,
|
|
||||||
xFixed * stops, xRenderColor * colors, int *error);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* matrix.c
|
* matrix.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
PictTransform_from_xRenderTransform(PictTransformPtr pict,
|
|
||||||
xRenderTransform * render);
|
|
||||||
|
|
||||||
extern _X_EXPORT void
|
|
||||||
xRenderTransform_from_PictTransform(xRenderTransform * render,
|
|
||||||
PictTransformPtr pict);
|
|
||||||
|
|
||||||
extern _X_EXPORT Bool
|
extern _X_EXPORT Bool
|
||||||
PictureTransformPoint(PictTransformPtr transform, PictVectorPtr vector);
|
PictureTransformPoint(PictTransformPtr transform, PictVectorPtr vector);
|
||||||
|
|
||||||
extern _X_EXPORT Bool
|
|
||||||
PictureTransformPoint3d(PictTransformPtr transform, PictVectorPtr vector);
|
|
||||||
|
|
||||||
#endif /* _PICTURESTR_H_ */
|
#endif /* _PICTURESTR_H_ */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue