1 /* 2 * GStreamer 3 * Copyright (C) 2019 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 _VK_FULL_SCREEN_RENDER_H_ 22 #define _VK_FULL_SCREEN_RENDER_H_ 23 24 #include <gst/gst.h> 25 #include <gst/video/video.h> 26 #include <gst/vulkan/gstvkqueue.h> 27 28 G_BEGIN_DECLS 29 30 GST_VULKAN_API 31 GType gst_vulkan_video_filter_get_type(void); 32 #define GST_TYPE_VULKAN_VIDEO_FILTER (gst_vulkan_video_filter_get_type()) 33 #define GST_VULKAN_VIDEO_FILTER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VULKAN_VIDEO_FILTER,GstVulkanVideoFilter)) 34 #define GST_VULKAN_VIDEO_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VULKAN_VIDEO_FILTER,GstVulkanVideoFilterClass)) 35 #define GST_VULKAN_VIDEO_FILTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_VULKAN_VIDEO_FILTER,GstVulkanVideoFilterClass)) 36 #define GST_IS_VULKAN_VIDEO_FILTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VULKAN_VIDEO_FILTER)) 37 #define GST_IS_VULKAN_VIDEO_FILTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VULKAN_VIDEO_FILTER)) 38 39 typedef struct _GstVulkanVideoFilter GstVulkanVideoFilter; 40 typedef struct _GstVulkanVideoFilterClass GstVulkanVideoFilterClass; 41 42 /** 43 * GstVulkanVideoFilter: 44 * @parent: the parent #GstBaseTransform 45 * @instance: the configured #GstVulkanInstance 46 * @device: the configured #GstVulkanDevice 47 * @queue: the configured #GstVulkanQueue 48 * @in_caps: the configured input #GstCaps 49 * @in_info: the configured input #GstVideoInfo 50 * @out_caps: the configured output #GstCaps 51 * @out_info: the configured output #GstVideoInfo 52 * 53 * Since: 1.18 54 */ 55 struct _GstVulkanVideoFilter 56 { 57 GstBaseTransform parent; 58 59 GstVulkanInstance *instance; 60 GstVulkanDevice *device; 61 GstVulkanQueue *queue; 62 63 GstCaps *in_caps; 64 GstVideoInfo in_info; 65 GstCaps *out_caps; 66 GstVideoInfo out_info; 67 68 /* <private> */ 69 gpointer _reserved [GST_PADDING]; 70 }; 71 72 /** 73 * GstVulkanVideoFilterClass: 74 * @parent_class: the parent #GstBaseTransformClass 75 * 76 * Since: 1.18 77 */ 78 struct _GstVulkanVideoFilterClass 79 { 80 GstBaseTransformClass parent_class; 81 82 /* <private> */ 83 gpointer _reserved [GST_PADDING]; 84 }; 85 86 G_END_DECLS 87 88 #endif 89