OLD | NEW |
(Empty) | |
| 1 #ifndef _VA_X11_H_ |
| 2 #define _VA_X11_H_ |
| 3 |
| 4 #include <va/va.h> |
| 5 #include <X11/Xlib.h> |
| 6 |
| 7 #ifdef __cplusplus |
| 8 extern "C" { |
| 9 #endif |
| 10 |
| 11 /* |
| 12 * Returns a suitable VADisplay for VA API |
| 13 */ |
| 14 VADisplay vaGetDisplay ( |
| 15 Display *dpy |
| 16 ); |
| 17 |
| 18 /* |
| 19 * Output rendering |
| 20 * Following is the rendering interface for X windows, |
| 21 * to get the decode output surface to a X drawable |
| 22 * It basically performs a de-interlacing (if needed), |
| 23 * color space conversion and scaling to the destination |
| 24 * rectangle |
| 25 */ |
| 26 VAStatus vaPutSurface ( |
| 27 VADisplay dpy, |
| 28 VASurfaceID surface, |
| 29 Drawable draw, /* X Drawable */ |
| 30 short srcx, |
| 31 short srcy, |
| 32 unsigned short srcw, |
| 33 unsigned short srch, |
| 34 short destx, |
| 35 short desty, |
| 36 unsigned short destw, |
| 37 unsigned short desth, |
| 38 VARectangle *cliprects, /* client supplied destination clip list */ |
| 39 unsigned int number_cliprects, /* number of clip rects in the clip list */ |
| 40 unsigned int flags /* PutSurface flags */ |
| 41 ); |
| 42 |
| 43 #ifdef __cplusplus |
| 44 } |
| 45 #endif |
| 46 |
| 47 #endif /* _VA_X11_H_ */ |
OLD | NEW |