1 /* 2 * GStreamer 3 * Copyright (C) 2016 Matthew Waters <matthew@centricular.com> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public 16 * License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 21 #ifndef __GST_VULKAN_BUFFER_POOL_H__ 22 #define __GST_VULKAN_BUFFER_POOL_H__ 23 24 #include <gst/video/video.h> 25 #include <gst/video/gstvideometa.h> 26 #include <gst/video/gstvideopool.h> 27 28 #include <gst/vulkan/vulkan.h> 29 30 G_BEGIN_DECLS 31 32 GST_VULKAN_API 33 GType gst_vulkan_buffer_pool_get_type (void); 34 #define GST_TYPE_VULKAN_BUFFER_POOL (gst_vulkan_buffer_pool_get_type()) 35 #define GST_IS_VULKAN_BUFFER_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VULKAN_BUFFER_POOL)) 36 #define GST_VULKAN_BUFFER_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VULKAN_BUFFER_POOL, GstVulkanBufferPool)) 37 /** 38 * GST_VULKAN_BUFFER_POOL_CAST: 39 * 40 * Since: 1.18 41 */ 42 #define GST_VULKAN_BUFFER_POOL_CAST(obj) ((GstVulkanBufferPool*)(obj)) 43 44 /** 45 * GstVulkanBufferPool: 46 * @bufferpool: the parent #GstBufferPool 47 * @device: the #GstVulkanDevice to allocate Vulkan buffers from 48 * 49 * Opaque #GstVulkanBufferPool struct 50 * 51 * Since: 1.18 52 */ 53 struct _GstVulkanBufferPool 54 { 55 GstBufferPool bufferpool; 56 57 GstVulkanDevice *device; 58 59 /* <private> */ 60 gpointer _padding[GST_PADDING]; 61 }; 62 63 /** 64 * GstVulkanBufferPoolClass: 65 * @parent_class: the parent #GstBufferPoolClass 66 * 67 * The #GstVulkanBufferPoolClass structure contains only private data 68 * 69 * Since: 1.18 70 */ 71 struct _GstVulkanBufferPoolClass 72 { 73 GstBufferPoolClass parent_class; 74 75 /* <private> */ 76 gpointer _padding[GST_PADDING]; 77 }; 78 79 GST_VULKAN_API 80 GstBufferPool *gst_vulkan_buffer_pool_new (GstVulkanDevice * device); 81 82 G_END_DECLS 83 84 #endif /* __GST_VULKAN_BUFFER_POOL_H__ */ 85