~misterc/libva/Trunk

« back to all changes in this revision

Viewing changes to src/x11/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
 
#ifdef IN_LIBVA
5
 
#include "va.h"
6
 
#else
7
 
#include <va/va.h>
8
 
#endif
9
 
#include <X11/Xlib.h>
10
 
 
11
 
#ifdef __cplusplus
12
 
extern "C" {
13
 
#endif
14
 
 
15
 
/*
16
 
 * Returns a suitable VADisplay for VA API
17
 
 */
18
 
VADisplay vaGetDisplay (
19
 
    Display *dpy
20
 
);
21
 
 
22
 
/*
23
 
 * Output rendering
24
 
 * Following is the rendering interface for X windows, 
25
 
 * to get the decode output surface to a X drawable
26
 
 * It basically performs a de-interlacing (if needed), 
27
 
 * color space conversion and scaling to the destination
28
 
 * rectangle
29
 
 */
30
 
/* de-interlacing flags for vaPutSurface */
31
 
#define VA_FRAME_PICTURE        0x00000000 
32
 
#define VA_TOP_FIELD            0x00000001
33
 
#define VA_BOTTOM_FIELD         0x00000002
34
 
 
35
 
/* 
36
 
 * clears the drawable with background color.
37
 
 * for hardware overlay based implementation this flag
38
 
 * can be used to turn off the overlay
39
 
 */
40
 
#define VA_CLEAR_DRAWABLE       0x00000008 
41
 
 
42
 
/* color space conversion flags for vaPutSurface */
43
 
#define VA_SRC_BT601            0x00000010
44
 
#define VA_SRC_BT709            0x00000020
45
 
 
46
 
VAStatus vaPutSurface (
47
 
    VADisplay dpy,
48
 
    VASurfaceID surface,        
49
 
    Drawable draw, /* X Drawable */
50
 
    short srcx,
51
 
    short srcy,
52
 
    unsigned short srcw,
53
 
    unsigned short srch,
54
 
    short destx,
55
 
    short desty,
56
 
    unsigned short destw,
57
 
    unsigned short desth,
58
 
    VARectangle *cliprects, /* client supplied destination clip list */
59
 
    unsigned int number_cliprects, /* number of clip rects in the clip list */
60
 
    unsigned int flags /* PutSurface flags */
61
 
);
62
 
 
63
 
#ifdef __cplusplus
64
 
}
65
 
#endif
66
 
 
67
 
#endif /* _VA_X11_H_ */