|
Packit Service |
9402ce |
/*
|
|
Packit Service |
9402ce |
* Copyright © 2007,2008 Red Hat, Inc.
|
|
Packit Service |
9402ce |
*
|
|
Packit Service |
9402ce |
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
Packit Service |
9402ce |
* copy of this software and associated documentation files (the "Soft-
|
|
Packit Service |
9402ce |
* ware"), to deal in the Software without restriction, including without
|
|
Packit Service |
9402ce |
* limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
Packit Service |
9402ce |
* and/or sell copies of the Software, and to permit persons to whom the
|
|
Packit Service |
9402ce |
* Software is furnished to do so, provided that the above copyright
|
|
Packit Service |
9402ce |
* notice(s) and this permission notice appear in all copies of the Soft-
|
|
Packit Service |
9402ce |
* ware and that both the above copyright notice(s) and this permission
|
|
Packit Service |
9402ce |
* notice appear in supporting documentation.
|
|
Packit Service |
9402ce |
*
|
|
Packit Service |
9402ce |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
Packit Service |
9402ce |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
|
|
Packit Service |
9402ce |
* ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY
|
|
Packit Service |
9402ce |
* RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
|
|
Packit Service |
9402ce |
* THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE-
|
|
Packit Service |
9402ce |
* QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
Packit Service |
9402ce |
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
Packit Service |
9402ce |
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR-
|
|
Packit Service |
9402ce |
* MANCE OF THIS SOFTWARE.
|
|
Packit Service |
9402ce |
*
|
|
Packit Service |
9402ce |
* Except as contained in this notice, the name of a copyright holder shall
|
|
Packit Service |
9402ce |
* not be used in advertising or otherwise to promote the sale, use or
|
|
Packit Service |
9402ce |
* other dealings in this Software without prior written authorization of
|
|
Packit Service |
9402ce |
* the copyright holder.
|
|
Packit Service |
9402ce |
*
|
|
Packit Service |
9402ce |
* Authors:
|
|
Packit Service |
9402ce |
* Kristian Høgsberg (krh@redhat.com)
|
|
Packit Service |
9402ce |
*/
|
|
Packit Service |
9402ce |
|
|
Packit Service |
9402ce |
#ifndef _VA_DRI2_H_
|
|
Packit Service |
9402ce |
#define _VA_DRI2_H_
|
|
Packit Service |
9402ce |
|
|
Packit Service |
9402ce |
#include <X11/Xproto.h>
|
|
Packit Service |
9402ce |
#include <X11/extensions/Xfixes.h>
|
|
Packit Service |
9402ce |
#include <X11/Xfuncproto.h>
|
|
Packit Service |
9402ce |
#include <xf86drm.h>
|
|
Packit Service |
9402ce |
|
|
Packit Service |
9402ce |
typedef struct {
|
|
Packit Service |
9402ce |
unsigned int attachment;
|
|
Packit Service |
9402ce |
unsigned int name;
|
|
Packit Service |
9402ce |
unsigned int pitch;
|
|
Packit Service |
9402ce |
unsigned int cpp;
|
|
Packit Service |
9402ce |
unsigned int flags;
|
|
Packit Service |
9402ce |
} VA_DRI2Buffer;
|
|
Packit Service |
9402ce |
|
|
Packit Service |
9402ce |
extern Bool
|
|
Packit Service |
9402ce |
VA_DRI2QueryExtension(Display *display, int *eventBase, int *errorBase);
|
|
Packit Service |
9402ce |
extern Bool
|
|
Packit Service |
9402ce |
VA_DRI2QueryVersion(Display *display, int *major, int *minor);
|
|
Packit Service |
9402ce |
extern Bool
|
|
Packit Service |
9402ce |
VA_DRI2Connect(Display *display, XID window,
|
|
Packit Service |
9402ce |
char **driverName, char **deviceName);
|
|
Packit Service |
9402ce |
extern Bool
|
|
Packit Service |
9402ce |
VA_DRI2Authenticate(Display *display, XID window, drm_magic_t magic);
|
|
Packit Service |
9402ce |
extern void
|
|
Packit Service |
9402ce |
VA_DRI2CreateDrawable(Display *display, XID drawable);
|
|
Packit Service |
9402ce |
extern void
|
|
Packit Service |
9402ce |
VA_DRI2DestroyDrawable(Display *display, XID handle);
|
|
Packit Service |
9402ce |
extern VA_DRI2Buffer *
|
|
Packit Service |
9402ce |
VA_DRI2GetBuffers(Display *dpy, XID drawable,
|
|
Packit Service |
9402ce |
int *width, int *height,
|
|
Packit Service |
9402ce |
unsigned int *attachments, int count,
|
|
Packit Service |
9402ce |
int *outCount);
|
|
Packit Service |
9402ce |
extern void
|
|
Packit Service |
9402ce |
VA_DRI2CopyRegion(Display *dpy, XID drawable, XserverRegion region,
|
|
Packit Service |
9402ce |
CARD32 dest, CARD32 src);
|
|
Packit Service |
9402ce |
extern void
|
|
Packit Service |
9402ce |
VA_DRI2SwapBuffers(Display *dpy, XID drawable, CARD64 target_msc, CARD64 divisor,
|
|
Packit Service |
9402ce |
CARD64 remainder, CARD64 *count);
|
|
Packit Service |
9402ce |
#endif
|