|
Packit |
38d9dc |
/*
|
|
Packit |
38d9dc |
* Copyright (c) 2012 Intel Corporation. All Rights Reserved.
|
|
Packit |
38d9dc |
*
|
|
Packit |
38d9dc |
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
Packit |
38d9dc |
* copy of this software and associated documentation files (the
|
|
Packit |
38d9dc |
* "Software"), to deal in the Software without restriction, including
|
|
Packit |
38d9dc |
* without limitation the rights to use, copy, modify, merge, publish,
|
|
Packit |
38d9dc |
* distribute, sub license, and/or sell copies of the Software, and to
|
|
Packit |
38d9dc |
* permit persons to whom the Software is furnished to do so, subject to
|
|
Packit |
38d9dc |
* the following conditions:
|
|
Packit |
38d9dc |
*
|
|
Packit |
38d9dc |
* The above copyright notice and this permission notice (including the
|
|
Packit |
38d9dc |
* next paragraph) shall be included in all copies or substantial portions
|
|
Packit |
38d9dc |
* of the Software.
|
|
Packit |
38d9dc |
*
|
|
Packit |
38d9dc |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
Packit |
38d9dc |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
Packit |
38d9dc |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
|
Packit |
38d9dc |
* IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
|
Packit |
38d9dc |
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
Packit |
38d9dc |
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
Packit |
38d9dc |
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
Packit |
38d9dc |
*/
|
|
Packit |
38d9dc |
#ifndef _VA_ANDROID_H_
|
|
Packit |
38d9dc |
#define _VA_ANDROID_H_
|
|
Packit |
38d9dc |
|
|
Packit |
38d9dc |
#include <va/va.h>
|
|
Packit |
38d9dc |
|
|
Packit |
38d9dc |
/** \brief Android Gralloc buffer memory type. */
|
|
Packit |
38d9dc |
#define VA_SURFACE_ATTRIB_MEM_TYPE_ANDROID_GRALLOC 0x00100000
|
|
Packit |
38d9dc |
/** \brief Android ION buffer memory type. */
|
|
Packit |
38d9dc |
#define VA_SURFACE_ATTRIB_MEM_TYPE_ANDROID_ION 0x00200000
|
|
Packit |
38d9dc |
|
|
Packit |
38d9dc |
#ifdef __cplusplus
|
|
Packit |
38d9dc |
extern "C" {
|
|
Packit |
38d9dc |
#endif
|
|
Packit |
38d9dc |
|
|
Packit |
38d9dc |
/*
|
|
Packit |
38d9dc |
* Returns a suitable VADisplay for VA API
|
|
Packit |
38d9dc |
*/
|
|
Packit |
38d9dc |
VADisplay vaGetDisplay (
|
|
Packit |
38d9dc |
void *android_dpy
|
|
Packit |
38d9dc |
);
|
|
Packit |
38d9dc |
|
|
Packit |
38d9dc |
#ifdef __cplusplus
|
|
Packit |
38d9dc |
}
|
|
Packit |
38d9dc |
#endif
|
|
Packit |
38d9dc |
|
|
Packit |
38d9dc |
#endif /* _VA_ANDROID_H_ */
|