diff options
Diffstat (limited to 'src/va_x11.h')
-rwxr-xr-x | src/va_x11.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/va_x11.h b/src/va_x11.h new file mode 100755 index 0000000..60c29b2 --- /dev/null +++ b/src/va_x11.h @@ -0,0 +1,54 @@ +/* + * Video Decode Acceleration API, X11 specific functions + * + * Rev. 0.15 + * <jonathan.bian@intel.com> + * + * Revision History: + * rev 0.1 (12/10/06 Jonathan Bian) - Initial draft + * rev 0.11 (12/15/06 Jonathan Bian) - Fixed some errors + * rev 0.12 (02/05/07 Jonathan Bian) - Added VC-1 data structures + * rev 0.13 (02/28/07 Jonathan Bian) - Added GetDisplay() + * rev 0.14 (04/13/07 Jonathan Bian) - Fixed MPEG-2 PictureParameter struct, cleaned up a few funcs. + * rev 0.15 (04/20/07 Jonathan Bian) - Overhauled buffer management + * + */ + +#ifndef _VA_X11_H_ +#define _VA_X11_H_ + +#include "va.h" +#include <X11/Xlib.h> + +#ifdef __cplusplus +extern "C" { +#endif +/* + * Output rendering + * Following is the rendering interface for X windows, + * to get the decode output surface to a X drawable + * It basically performs a de-interlacing (if needed), + * color space conversion and scaling to the destination + * rectangle + */ + +VAStatus vaPutSurface ( + VADisplay dpy, + VASurface *surface, + Drawable draw, /* X Drawable */ + short srcx, + short srcy, + unsigned short srcw, + unsigned short srch, + short destx, + short desty, + unsigned short destw, + unsigned short desth, + int flags /* de-interlacing flags */ +); + +#ifdef __cplusplus +} +#endif + +#endif /* _VA_X11_H_ */ |