diff options
author | Keith Packard <keithp@keithp.com> | 2008-03-15 00:32:35 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-03-15 00:32:35 -0700 |
commit | aa5cd18a9f84aa075ffa7f70e6591b70b093119f (patch) | |
tree | 583fa2dcd4de93c9d4420d2653945a06f26ca419 | |
parent | 329b2068c1505dbc2eef7cc245b02c3bbf9c67ff (diff) |
Add filters to CRTC transforms.
This allows scaling transforms to use bilinear filtering if desired.
-rw-r--r-- | randrproto.h | 11 | ||||
-rw-r--r-- | randrproto.txt | 9 |
2 files changed, 16 insertions, 4 deletions
diff --git a/randrproto.h b/randrproto.h index d2d0963..e6bab25 100644 --- a/randrproto.h +++ b/randrproto.h @@ -570,7 +570,8 @@ typedef struct { xRenderTransform transform; CARD32 pad0 B32; xRenderTransform inverse; - CARD32 pad1 B32; + CARD16 nbytesFilter; /* number of bytes in filter name */ + CARD16 pad B16; } xRRSetCrtcTransformReq; #define sz_xRRSetCrtcTransformReq 88 @@ -592,13 +593,15 @@ typedef struct { xRenderTransform pendingTransform; BYTE hasTransforms; CARD8 pad0a; - CARD16 pad0b B16; + CARD16 pad0 B16; xRenderTransform pendingInverse; - CARD32 pad1 B32; + CARD16 pendingNbytesFilter B16; /* number of bytes in filter name */ + CARD16 pendingNparamsFilter B16; /* number of filter params */ xRenderTransform currentTransform; CARD32 pad2 B32; xRenderTransform currentInverse; - CARD32 pad3 B32; + CARD16 currentNbytesFilter B16; /* number of bytes in filter name */ + CARD16 currentNparamsFilter B16; /* number of filter params */ } xRRGetCrtcTransformReply; #define sz_xRRGetCrtcTransformReply 168 diff --git a/randrproto.txt b/randrproto.txt index 8d21160..ac40f93 100644 --- a/randrproto.txt +++ b/randrproto.txt @@ -984,6 +984,8 @@ dynamic changes in the display environment. crtc: CRTC transform: TRANSFORM inverse: TRANSFORM + filter: STRING8 + values: LISTofFIXED └─── Errors: Crtc, Match @@ -995,6 +997,9 @@ transformation is applied before the rotation and reflection values to compute the complete transform. 'inverse' must be the multiplicative inverse of 'transform' or a Match error results. +'filter' and 'values' specify a Render filter that may be used by the server +when transforming data from frame buffer to crtc. + This request sets the transform to be used at the next RRSetCrtcConfig request execution; it does not cause any change to occur in the current configuration. @@ -1010,8 +1015,12 @@ the screen when the mode is set. ▶ pending-transform: TRANSFORM pending-inverse: TRANSFORM + pending-filter: STRING8 + pending-values: LISTofFIXED current-transform: TRANSFORM current-inverse: TRANSFORM + current-filter: STRING8 + current-values: LISTofFIXED └─── This request returns the pending and current transforms for the specified |