summaryrefslogtreecommitdiff
path: root/sys/inteldrm/intelbufmgrpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/inteldrm/intelbufmgrpool.h')
-rw-r--r--sys/inteldrm/intelbufmgrpool.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/sys/inteldrm/intelbufmgrpool.h b/sys/inteldrm/intelbufmgrpool.h
new file mode 100644
index 0000000..1eed15d
--- /dev/null
+++ b/sys/inteldrm/intelbufmgrpool.h
@@ -0,0 +1,56 @@
+/*
+ * GStreamer intel dmabuf upload element
+ *
+ * Copyright (C) 2014 Collabora Ltd.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ */
+
+#ifndef __GST_INTEL_BUFMGR_POOL_H__
+#define __GST_INTEL_BUFMGR_POOL_H__
+
+#include "gstinteldmabufupload.h"
+#include <gst/allocators/allocators.h>
+#include <gst/video/video.h>
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_INTEL_BUFMGR_POOL (gst_intel_bufmgr_pool_get_type ())
+#define GST_INTEL_BUFMGR_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_INTEL_BUFMGR_POOL, GstIntelBufmgrPool))
+
+typedef struct _GstIntelBufmgrPool GstIntelBufmgrPool;
+typedef struct _GstIntelBufmgrPoolClass GstIntelBufmgrPoolClass;
+
+struct _GstIntelBufmgrPool
+{
+ GstBufferPool parent_instance;
+ GstAllocator *allocator;
+ GstVideoInfo info;
+ GstIntelBufmgrContext *context;
+};
+
+struct _GstIntelBufmgrPoolClass
+{
+ GstBufferPoolClass parent_class;
+};
+
+GType gst_intel_bufmgr_pool_get_type (void);
+
+GstBufferPool * gst_intel_bufmgr_pool_new (GstIntelBufmgrContext *context);
+
+G_END_DECLS
+
+#endif /* __GST_INTEL_BUFMGR_POOL_H__ */