1 /* 2 * GStreamer 3 * Copyright (C) 2020 Seungha Yang <seungha@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_D3D11_COMPOSITOR_BIN_H__ 22 #define __GST_D3D11_COMPOSITOR_BIN_H__ 23 24 #include <gst/gst.h> 25 #include <gst/video/video.h> 26 #include <gst/video/gstvideoaggregator.h> 27 #include <gst/d3d11/gstd3d11.h> 28 29 G_BEGIN_DECLS 30 31 #define GST_TYPE_D3D11_COMPOSITOR_BIN_PAD (gst_d3d11_compositor_bin_pad_get_type()) 32 #define GST_D3D11_COMPOSITOR_BIN_PAD(obj) \ 33 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_D3D11_COMPOSITOR_BIN_PAD, GstD3D11CompositorBinPad)) 34 #define GST_D3D11_COMPOSITOR_BIN_PAD_CLASS(klass) \ 35 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_D3D11_COMPOSITOR_BIN_PAD, GstD3D11CompositorBinPadClass)) 36 #define GST_IS_D3D11_COMPOSITOR_BIN_PAD(obj) \ 37 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_D3D11_COMPOSITOR_BIN_PAD)) 38 #define GST_IS_D3D11_COMPOSITOR_BIN_PAD_CLASS(klass) \ 39 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_D3D11_COMPOSITOR_BIN_PAD)) 40 #define GST_D3D11_COMPOSITOR_BIN_PAD_GET_CLASS(obj) \ 41 (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_D3D11_COMPOSITOR_BIN_PAD,GstD3D11CompositorBinPadClass)) 42 43 typedef struct _GstD3D11CompositorBinPad GstD3D11CompositorBinPad; 44 typedef struct _GstD3D11CompositorBinPadClass GstD3D11CompositorBinPadClass; 45 46 struct _GstD3D11CompositorBinPadClass 47 { 48 GstGhostPadClass parent_class; 49 50 void (*set_target) (GstD3D11CompositorBinPad * pad, GstPad * target); 51 }; 52 53 GType gst_d3d11_compositor_bin_pad_get_type (void); 54 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstD3D11CompositorBinPad, gst_object_unref) 55 56 #define GST_TYPE_D3D11_COMPOSITOR_BIN_INPUT (gst_d3d11_compositor_bin_input_get_type()) 57 G_DECLARE_FINAL_TYPE (GstD3D11CompositorBinInput, gst_d3d11_compositor_bin_input, 58 GST, D3D11_COMPOSITOR_BIN_INPUT, GstD3D11CompositorBinPad); 59 60 #define GST_TYPE_D3D11_COMPOSITOR_BIN (gst_d3d11_compositor_bin_get_type()) 61 G_DECLARE_FINAL_TYPE (GstD3D11CompositorBin, gst_d3d11_compositor_bin, 62 GST, D3D11_COMPOSITOR_BIN, GstBin) 63 64 G_END_DECLS 65 66 #endif /* __GST_D3D11_COMPOSITOR_BIN_H__ */ 67