Index: third_party/libva/va/drm/va_drm.h |
diff --git a/third_party/libva/va/sysdeps.h b/third_party/libva/va/drm/va_drm.h |
similarity index 63% |
copy from third_party/libva/va/sysdeps.h |
copy to third_party/libva/va/drm/va_drm.h |
index 0752b17710bc2f474e9835d092fc7337bf799ed2..9af3cc8bde66c37798ae846e46f11cd841094e73 100644 |
--- a/third_party/libva/va/sysdeps.h |
+++ b/third_party/libva/va/drm/va_drm.h |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (c) 2007-2009 Intel Corporation. All Rights Reserved. |
+ * va_drm.h - Raw DRM API |
+ * |
+ * Copyright (c) 2012 Intel Corporation. All Rights Reserved. |
* |
* Permission is hereby granted, free of charge, to any person obtaining a |
* copy of this software and associated documentation files (the |
@@ -22,23 +24,38 @@ |
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
*/ |
-#ifndef SYSDEPS_H |
-#define SYSDEPS_H |
+#ifndef VA_DRM_H |
+#define VA_DRM_H |
+ |
+#include <va/va.h> |
+ |
+/** |
+ * \file va_drm.h |
+ * \brief The raw DRM API |
+ * |
+ * This file contains the \ref api_drm "Raw DRM API". |
+ */ |
-#ifdef HAVE_CONFIG_H |
-# include "config.h" |
+#ifdef __cplusplus |
+extern "C" { |
#endif |
-#include <stdio.h> |
-#include <stdlib.h> |
-#include <string.h> |
-#include <stdint.h> |
-#include <assert.h> |
+/** |
+ * \brief Returns a VA display derived from the specified DRM connection. |
+ * |
+ * This function returns a (possibly cached) VA display from the |
+ * specified DRM connection @fd. |
+ * |
+ * @param[in] fd the DRM connection descriptor |
+ * @return the VA display |
+ */ |
+VADisplay |
+vaGetDisplayDRM(int fd); |
+ |
+/**@}*/ |
-#ifdef ANDROID |
-# define Bool int |
-# define True 1 |
-# define False 0 |
+#ifdef __cplusplus |
+} |
#endif |
-#endif /* SYSDEPS_H */ |
+#endif /* VA_DRM_H */ |