~misterc/libva/Trunk

« back to all changes in this revision

Viewing changes to libva/src/X11/va_dri2.h

  • Committer: Austin Yuan
  • Date: 2009-06-13 01:17:46 UTC
  • Revision ID: git-v1:527643827e6589645df6fe2232c2d397f9fe76e9
Fix the issue that all files are moved into a sub-directory libva.

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright © 2007,2008 Red Hat, Inc.
3
 
 *
4
 
 * Permission is hereby granted, free of charge, to any person obtaining a
5
 
 * copy of this software and associated documentation files (the "Soft-
6
 
 * ware"), to deal in the Software without restriction, including without
7
 
 * limitation the rights to use, copy, modify, merge, publish, distribute,
8
 
 * and/or sell copies of the Software, and to permit persons to whom the
9
 
 * Software is furnished to do so, provided that the above copyright
10
 
 * notice(s) and this permission notice appear in all copies of the Soft-
11
 
 * ware and that both the above copyright notice(s) and this permission
12
 
 * notice appear in supporting documentation.
13
 
 *
14
 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
 
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16
 
 * ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY
17
 
 * RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
18
 
 * THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE-
19
 
 * QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20
 
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21
 
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR-
22
 
 * MANCE OF THIS SOFTWARE.
23
 
 *
24
 
 * Except as contained in this notice, the name of a copyright holder shall
25
 
 * not be used in advertising or otherwise to promote the sale, use or
26
 
 * other dealings in this Software without prior written authorization of
27
 
 * the copyright holder.
28
 
 *
29
 
 * Authors:
30
 
 *   Kristian Høgsberg (krh@redhat.com)
31
 
 */
32
 
 
33
 
#ifndef _VA_DRI2_H_
34
 
#define _VA_DRI2_H_
35
 
 
36
 
#include <X11/extensions/Xfixes.h>
37
 
#include <X11/Xfuncproto.h>
38
 
#include <xf86drm.h>
39
 
 
40
 
typedef struct {
41
 
    unsigned int attachment;
42
 
    unsigned int name;
43
 
    unsigned int pitch;
44
 
    unsigned int cpp;
45
 
    unsigned int flags;
46
 
} VA_DRI2Buffer;
47
 
 
48
 
extern Bool
49
 
VA_DRI2QueryExtension(Display *display, int *eventBase, int *errorBase);
50
 
extern Bool
51
 
VA_DRI2QueryVersion(Display *display, int *major, int *minor);
52
 
extern Bool
53
 
VA_DRI2Connect(Display *display, XID window,
54
 
            char **driverName, char **deviceName);
55
 
extern Bool
56
 
VA_DRI2Authenticate(Display *display, XID window, drm_magic_t magic);
57
 
extern void
58
 
VA_DRI2CreateDrawable(Display *display, XID drawable);
59
 
extern void
60
 
VA_DRI2DestroyDrawable(Display *display, XID handle);
61
 
extern VA_DRI2Buffer *
62
 
VA_DRI2GetBuffers(Display *dpy, XID drawable,
63
 
               int *width, int *height,
64
 
               unsigned int *attachments, int count,
65
 
               int *outCount);
66
 
#if 0
67
 
extern void
68
 
VA_DRI2CopyRegion(Display *dpy, XID drawable, XserverRegion region,
69
 
               CARD32 dest, CARD32 src);
70
 
#endif
71
 
#endif