Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
*/
typedef void* VANativeDisplay; /* window system dependent */
+/*
+ * Returns a suitable VADisplay for VA API
+ */
+VADisplay vaGetDisplay (
+ VANativeDisplay dpy
+);
+
int vaDisplayIsValid(VADisplay dpy);
/*
#include <va/va.h>
#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * Returns a suitable VADisplay for VA API
- */
-VADisplay vaGetDisplay (
- void *android_dpy
-);
-
-#ifdef __cplusplus
-}
-#endif
-
-#ifdef __cplusplus
#ifdef ANDROID
#include <surfaceflinger/ISurface.h>
using namespace android;
#endif
/*
- * Returns a suitable VADisplay for VA API
- */
-VADisplay vaGetDisplay (
- Display *dpy
-);
-
-/*
* Output rendering
* Following is the rendering interface for X windows,
* to get the decode output surface to a X drawable
VADisplay vaGetDisplay (
- Display *native_dpy /* implementation specific */
+ VANativeDisplay native_dpy /* implementation specific */
)
{
VADisplay dpy = NULL;