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_IMAGE_BUFFER_POOL_H__ 22 #define __GST_VULKAN_IMAGE_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_image_buffer_pool_get_type (void); 34 #define GST_TYPE_VULKAN_IMAGE_BUFFER_POOL (gst_vulkan_image_buffer_pool_get_type()) 35 #define GST_IS_VULKAN_IMAGE_BUFFER_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VULKAN_IMAGE_BUFFER_POOL)) 36 #define GST_VULKAN_IMAGE_BUFFER_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VULKAN_IMAGE_BUFFER_POOL, GstVulkanImageBufferPool)) 37 38 /** 39 * GST_VULKAN_IMAGE_BUFFER_POOL_CAST: 40 * 41 * Since: 1.18 42 */ 43 #define GST_VULKAN_IMAGE_BUFFER_POOL_CAST(obj) ((GstVulkanImageBufferPool*)(obj)) 44 45 /** 46 * GstVulkanImageBufferPool: 47 * @bufferpool: parent #GstBufferPool 48 * @device: the #GstVulkanDevice to allocate images from 49 * 50 * Since: 1.18 51 */ 52 struct _GstVulkanImageBufferPool 53 { 54 GstBufferPool bufferpool; 55 56 GstVulkanDevice *device; 57 58 /* <private> */ 59 gpointer _reserved [GST_PADDING]; 60 }; 61 62 /** 63 * GstVulkanImageBufferPoolClass: 64 * @parent_class: parent #GstBufferPoolClass 65 * 66 * The #GstVulkanImageBufferPoolClass structure contains only private data 67 * 68 * Since: 1.18 69 */ 70 struct _GstVulkanImageBufferPoolClass 71 { 72 GstBufferPoolClass parent_class; 73 74 /* <private> */ 75 gpointer _reserved [GST_PADDING]; 76 }; 77 78 GST_VULKAN_API 79 GstBufferPool *gst_vulkan_image_buffer_pool_new (GstVulkanDevice * device); 80 81 G_END_DECLS 82 83 #endif /* __GST_VULKAN_IMAGE_BUFFER_POOL_H__ */ 84