diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2009-06-13 09:17:46 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@intel.com> | 2009-06-13 09:17:46 +0800 |
commit | 527643827e6589645df6fe2232c2d397f9fe76e9 (patch) | |
tree | 21273912c858cb5f0fc07978daa1371005567781 /src/X11/va_x11.h | |
parent | bd592e383a2b863863c20cbb51ccfc8f6a068e84 (diff) | |
download | libva-527643827e6589645df6fe2232c2d397f9fe76e9.tar.gz |
Fix the issue that all files are moved into a sub-directory libva.
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Diffstat (limited to 'src/X11/va_x11.h')
-rw-r--r-- | src/X11/va_x11.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/X11/va_x11.h b/src/X11/va_x11.h new file mode 100644 index 0000000..2171ac6 --- /dev/null +++ b/src/X11/va_x11.h @@ -0,0 +1,67 @@ +#ifndef _VA_X11_H_ +#define _VA_X11_H_ + +#ifdef IN_LIBVA +#include "va.h" +#else +#include <va/va.h> +#endif +#include <X11/Xlib.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* + * Returns a suitable VADisplay for VA API + */ +VADisplay vaGetDisplay ( + Display *dpy +); + +/* + * 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 + */ +/* de-interlacing flags for vaPutSurface */ +#define VA_FRAME_PICTURE 0x00000000 +#define VA_TOP_FIELD 0x00000001 +#define VA_BOTTOM_FIELD 0x00000002 + +/* + * clears the drawable with background color. + * for hardware overlay based implementation this flag + * can be used to turn off the overlay + */ +#define VA_CLEAR_DRAWABLE 0x00000008 + +/* color space conversion flags for vaPutSurface */ +#define VA_SRC_BT601 0x00000010 +#define VA_SRC_BT709 0x00000020 + +VAStatus vaPutSurface ( + VADisplay dpy, + VASurfaceID 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, + VARectangle *cliprects, /* client supplied destination clip list */ + unsigned int number_cliprects, /* number of clip rects in the clip list */ + unsigned int flags /* PutSurface flags */ +); + +#ifdef __cplusplus +} +#endif + +#endif /* _VA_X11_H_ */ |