|
Packit Service |
9402ce |
/*
|
|
Packit Service |
9402ce |
* Copyright (c) 2012 Intel Corporation. All Rights Reserved.
|
|
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
|
|
Packit Service |
9402ce |
* "Software"), to deal in the Software without restriction, including
|
|
Packit Service |
9402ce |
* without limitation the rights to use, copy, modify, merge, publish,
|
|
Packit Service |
9402ce |
* distribute, sub license, and/or sell copies of the Software, and to
|
|
Packit Service |
9402ce |
* permit persons to whom the Software is furnished to do so, subject to
|
|
Packit Service |
9402ce |
* the following conditions:
|
|
Packit Service |
9402ce |
*
|
|
Packit Service |
9402ce |
* The above copyright notice and this permission notice (including the
|
|
Packit Service |
9402ce |
* next paragraph) shall be included in all copies or substantial portions
|
|
Packit Service |
9402ce |
* of the Software.
|
|
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
|
|
Packit Service |
9402ce |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
|
Packit Service |
9402ce |
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
|
Packit Service |
9402ce |
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
Packit Service |
9402ce |
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
Packit Service |
9402ce |
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
Packit Service |
9402ce |
*/
|
|
Packit Service |
9402ce |
#ifndef _VA_X11_H_
|
|
Packit Service |
9402ce |
#define _VA_X11_H_
|
|
Packit Service |
9402ce |
|
|
Packit Service |
9402ce |
#include <va/va.h>
|
|
Packit Service |
9402ce |
#include <X11/Xlib.h>
|
|
Packit Service |
9402ce |
|
|
Packit Service |
9402ce |
#ifdef __cplusplus
|
|
Packit Service |
9402ce |
extern "C" {
|
|
Packit Service |
9402ce |
#endif
|
|
Packit Service |
9402ce |
|
|
Packit Service |
9402ce |
/*
|
|
Packit Service |
9402ce |
* Returns a suitable VADisplay for VA API
|
|
Packit Service |
9402ce |
*/
|
|
Packit Service |
9402ce |
VADisplay vaGetDisplay (
|
|
Packit Service |
9402ce |
Display *dpy
|
|
Packit Service |
9402ce |
);
|
|
Packit Service |
9402ce |
|
|
Packit Service |
9402ce |
/*
|
|
Packit Service |
9402ce |
* Output rendering
|
|
Packit Service |
9402ce |
* Following is the rendering interface for X windows,
|
|
Packit Service |
9402ce |
* to get the decode output surface to a X drawable
|
|
Packit Service |
9402ce |
* It basically performs a de-interlacing (if needed),
|
|
Packit Service |
9402ce |
* color space conversion and scaling to the destination
|
|
Packit Service |
9402ce |
* rectangle
|
|
Packit Service |
9402ce |
*/
|
|
Packit Service |
9402ce |
VAStatus vaPutSurface (
|
|
Packit Service |
9402ce |
VADisplay dpy,
|
|
Packit Service |
9402ce |
VASurfaceID surface,
|
|
Packit Service |
9402ce |
Drawable draw, /* X Drawable */
|
|
Packit Service |
9402ce |
short srcx,
|
|
Packit Service |
9402ce |
short srcy,
|
|
Packit Service |
9402ce |
unsigned short srcw,
|
|
Packit Service |
9402ce |
unsigned short srch,
|
|
Packit Service |
9402ce |
short destx,
|
|
Packit Service |
9402ce |
short desty,
|
|
Packit Service |
9402ce |
unsigned short destw,
|
|
Packit Service |
9402ce |
unsigned short desth,
|
|
Packit Service |
9402ce |
VARectangle *cliprects, /* client supplied destination clip list */
|
|
Packit Service |
9402ce |
unsigned int number_cliprects, /* number of clip rects in the clip list */
|
|
Packit Service |
9402ce |
unsigned int flags /* PutSurface flags */
|
|
Packit Service |
9402ce |
);
|
|
Packit Service |
9402ce |
|
|
Packit Service |
9402ce |
#ifdef __cplusplus
|
|
Packit Service |
9402ce |
}
|
|
Packit Service |
9402ce |
#endif
|
|
Packit Service |
9402ce |
|
|
Packit Service |
9402ce |
#endif /* _VA_X11_H_ */
|