diff options
author | Ville Syrjälä <ville.syrjala@nokia.com> | 2010-11-02 16:05:13 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@nokia.com> | 2010-11-26 18:01:05 +0200 |
commit | a942534ca3908418c407115c6393263c2fe05931 (patch) | |
tree | d9e6d75dd7354cb55e1e196e8e8895c208f11b1b | |
parent | 0fef4e94480f2bf1157ce5f92fcb0c7dd1585371 (diff) |
xfree86/xv: Pass all coordinate arguments to ReputImage
Pass all of the src/dst coordinates to ReputImage so that drivers
don't necessarily have to do double bookkeeping.
Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Reviewed-by: Luc Verhaegen <luc.verhaegen@basyskom.de>
-rw-r--r-- | hw/xfree86/common/xf86xv.c | 7 | ||||
-rw-r--r-- | hw/xfree86/common/xf86xv.h | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86xv.c b/hw/xfree86/common/xf86xv.c index 66cf6858d..d3230069e 100644 --- a/hw/xfree86/common/xf86xv.c +++ b/hw/xfree86/common/xf86xv.c @@ -941,3 +941,6 @@ xf86XVReputImage(XvPortRecPrivatePtr portPriv) ret = (*portPriv->AdaptorRec->ReputImage)(portPriv->pScrn, + portPriv->vid_x, portPriv->vid_y, WinBox.x1, WinBox.y1, + portPriv->vid_w, portPriv->vid_h, + portPriv->drw_w, portPriv->drw_h, &ClipRegion, portPriv->DevPriv.ptr, @@ -1495,2 +1498,4 @@ xf86XVPutStill( portPriv->isOn = XV_ON; + portPriv->vid_x = vid_x; portPriv->vid_y = vid_y; + portPriv->vid_w = vid_w; portPriv->vid_h = vid_h; portPriv->drw_x = drw_x; portPriv->drw_y = drw_y; @@ -1798,2 +1803,4 @@ xf86XVPutImage( portPriv->isOn = XV_ON; + portPriv->vid_x = src_x; portPriv->vid_y = src_y; + portPriv->vid_w = src_w; portPriv->vid_h = src_h; portPriv->drw_x = drw_x; portPriv->drw_y = drw_y; diff --git a/hw/xfree86/common/xf86xv.h b/hw/xfree86/common/xf86xv.h index 973b1d0f4..47061fed2 100644 --- a/hw/xfree86/common/xf86xv.h +++ b/hw/xfree86/common/xf86xv.h @@ -113,3 +113,5 @@ typedef int (* PutImageFuncPtr)( ScrnInfoPtr pScrn, RegionPtr clipBoxes, pointer data, DrawablePtr pDraw ); -typedef int (* ReputImageFuncPtr)( ScrnInfoPtr pScrn, short drw_x, short drw_y, +typedef int (* ReputImageFuncPtr)( ScrnInfoPtr pScrn, + short src_x, short src_y, short drw_x, short drw_y, + short src_w, short src_h, short drw_w, short drw_h, RegionPtr clipBoxes, pointer data, DrawablePtr pDraw ); |