diff options
Diffstat (limited to 'src/compat-api.h')
-rw-r--r-- | src/compat-api.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/compat-api.h b/src/compat-api.h index 7e82b78a..46a755b9 100644 --- a/src/compat-api.h +++ b/src/compat-api.h @@ -191,4 +191,26 @@ static inline void FreePixmap(PixmapPtr pixmap) #define DamageUnregister(d, dd) DamageUnregister(dd) #endif +#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,16,99,1,0) + +#define XORG_XV_VERSION 2 +#define ddStopVideo_ARGS XvPortPtr port, DrawablePtr draw +#define ddSetPortAttribute_ARGS XvPortPtr port, Atom attribute, INT32 value +#define ddGetPortAttribute_ARGS XvPortPtr port, Atom attribute, INT32 *value +#define ddQueryBestSize_ARGS XvPortPtr port, CARD8 motion, CARD16 vid_w, CARD16 vid_h, CARD16 drw_w, CARD16 drw_h, unsigned int *p_w, unsigned int *p_h +#define ddPutImage_ARGS DrawablePtr draw, XvPortPtr port, GCPtr gc, INT16 src_x, INT16 src_y, CARD16 src_w, CARD16 src_h, INT16 drw_x, INT16 drw_y, CARD16 drw_w, CARD16 drw_h, XvImagePtr format, unsigned char *buf, Bool sync, CARD16 width, CARD16 height +#define ddQueryImageAttributes_ARGS XvPortPtr port, XvImagePtr format, unsigned short *w, unsigned short *h, int *pitches, int *offsets + +#else + +#define XORG_XV_VERSION 1 +#define ddStopVideo_ARGS ClientPtr client, XvPortPtr port, DrawablePtr draw +#define ddSetPortAttribute_ARGS ClientPtr client, XvPortPtr port, Atom attribute, INT32 value +#define ddGetPortAttribute_ARGS ClientPtr client, XvPortPtr port, Atom attribute, INT32 *value +#define ddQueryBestSize_ARGS ClientPtr client, XvPortPtr port, CARD8 motion, CARD16 vid_w, CARD16 vid_h, CARD16 drw_w, CARD16 drw_h, unsigned int *p_w, unsigned int *p_h +#define ddPutImage_ARGS ClientPtr client, DrawablePtr draw, XvPortPtr port, GCPtr gc, INT16 src_x, INT16 src_y, CARD16 src_w, CARD16 src_h, INT16 drw_x, INT16 drw_y, CARD16 drw_w, CARD16 drw_h, XvImagePtr format, unsigned char *buf, Bool sync, CARD16 width, CARD16 height +#define ddQueryImageAttributes_ARGS ClientPtr client, XvPortPtr port, XvImagePtr format, unsigned short *w, unsigned short *h, int *pitches, int *offsets + +#endif + #endif |