summaryrefslogtreecommitdiff
path: root/render/picturestr.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-03-17 15:19:17 -0700
committerKeith Packard <keithp@keithp.com>2008-11-24 13:24:37 -0800
commit1df02d7ddd44f84bcaefd6583af1a9141cb3c78b (patch)
tree50a57ab9f6ed7c35c072042bd72f812364458f1d /render/picturestr.h
parent40f3dff6b350fe0be55ebf7dbca88a0ef8f6380f (diff)
Add kernel size to Render filters.
This width/height value lets filter users know how far the filter spreads into the source image.
Diffstat (limited to 'render/picturestr.h')
-rw-r--r--render/picturestr.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/render/picturestr.h b/render/picturestr.h
index 8a926ce90..60be68ab8 100644
--- a/render/picturestr.h
+++ b/render/picturestr.h
@@ -185,11 +185,13 @@ typedef struct _Picture {
} PictureRec;
typedef Bool (*PictFilterValidateParamsProcPtr) (ScreenPtr pScreen, int id,
- xFixed *params, int nparams);
+ xFixed *params, int nparams,
+ int *width, int *height);
typedef struct {
char *name;
int id;
PictFilterValidateParamsProcPtr ValidateParams;
+ int width, height;
} PictFilterRec, *PictFilterPtr;
#define PictFilterNearest 0
@@ -458,7 +460,9 @@ PictureGetFilterName (int id);
int
PictureAddFilter (ScreenPtr pScreen,
char *filter,
- PictFilterValidateParamsProcPtr ValidateParams);
+ PictFilterValidateParamsProcPtr ValidateParams,
+ int width,
+ int height);
Bool
PictureSetFilterAlias (ScreenPtr pScreen, char *filter, char *alias);