Index: third_party/libva/va/va_backend_vpp.h |
diff --git a/third_party/libva/va/sysdeps.h b/third_party/libva/va/va_backend_vpp.h |
similarity index 51% |
copy from third_party/libva/va/sysdeps.h |
copy to third_party/libva/va/va_backend_vpp.h |
index 0752b17710bc2f474e9835d092fc7337bf799ed2..b776ef6979dceb9a121b358e880feb5f3ef5c99e 100644 |
--- a/third_party/libva/va/sysdeps.h |
+++ b/third_party/libva/va/va_backend_vpp.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (c) 2007-2009 Intel Corporation. All Rights Reserved. |
+ * Copyright (c) 2007-2011 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 |
@@ -8,11 +8,11 @@ |
* distribute, sub license, and/or sell copies of the Software, and to |
* permit persons to whom the Software is furnished to do so, subject to |
* the following conditions: |
- * |
+ * |
* The above copyright notice and this permission notice (including the |
* next paragraph) shall be included in all copies or substantial portions |
* of the Software. |
- * |
+ * |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. |
@@ -22,23 +22,50 @@ |
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
*/ |
-#ifndef SYSDEPS_H |
-#define SYSDEPS_H |
+#ifndef VA_BACKEND_VPP_H |
+#define VA_BACKEND_VPP_H |
-#ifdef HAVE_CONFIG_H |
-# include "config.h" |
+#include <va/va_vpp.h> |
+ |
+#ifdef __cplusplus |
+extern "C" { |
#endif |
-#include <stdio.h> |
-#include <stdlib.h> |
-#include <string.h> |
-#include <stdint.h> |
-#include <assert.h> |
+/** \brief VTable version for VA/VPP hooks. */ |
+#define VA_DRIVER_VTABLE_VPP_VERSION 1 |
+ |
+struct VADriverVTableVPP { |
+ unsigned int version; |
+ |
+ VAStatus |
+ (*vaQueryVideoProcFilters)( |
+ VADriverContextP ctx, |
+ VAContextID context, |
+ VAProcFilterType *filters, |
+ unsigned int *num_filters |
+ ); |
+ |
+ VAStatus |
+ (*vaQueryVideoProcFilterCaps)( |
+ VADriverContextP ctx, |
+ VAContextID context, |
+ VAProcFilterType type, |
+ void *filter_caps, |
+ unsigned int *num_filter_caps |
+ ); |
+ |
+ VAStatus |
+ (*vaQueryVideoProcPipelineCaps)( |
+ VADriverContextP ctx, |
+ VAContextID context, |
+ VABufferID *filters, |
+ unsigned int num_filters, |
+ VAProcPipelineCaps *pipeline_caps |
+ ); |
+}; |
-#ifdef ANDROID |
-# define Bool int |
-# define True 1 |
-# define False 0 |
+#ifdef __cplusplus |
+} |
#endif |
-#endif /* SYSDEPS_H */ |
+#endif /* VA_BACKEND_VPP_H */ |