~misterc/libva/Trunk

« back to all changes in this revision

Viewing changes to va/va_x11.h

  • Committer: Austin Yuan
  • Date: 2010-03-24 02:43:53 UTC
  • mfrom: (0.1.137)
  • Revision ID: git-v1:92e17d62fd6a9249906e284a28926010dc2c1639
Tags: 20100324_5.3.0.0000
Merge branch 'master' of git+ssh://AustinYuan@git.freedesktop.org/git/libva into sync-fdo-master

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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_ */