• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3  *                    2000 Wim Taymans <wtay@chello.be>
4  *               2015-2017 YouView TV Ltd, Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
5  *
6  * gstipcpipelinesink.h:
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  */
23 
24 
25 #ifndef __GST_IPC_PIPELINE_SINK_H__
26 #define __GST_IPC_PIPELINE_SINK_H__
27 
28 #include <gst/gst.h>
29 #include "gstipcpipelinecomm.h"
30 
31 G_BEGIN_DECLS
32 
33 #define GST_TYPE_IPC_PIPELINE_SINK \
34   (gst_ipc_pipeline_sink_get_type())
35 #define GST_IPC_PIPELINE_SINK(obj) \
36   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_IPC_PIPELINE_SINK,GstIpcPipelineSink))
37 #define GST_IPC_PIPELINE_SINK_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_IPC_PIPELINE_SINK,GstIpcPipelineSinkClass))
39 #define GST_IS_IPC_PIPELINE_SINK(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_IPC_PIPELINE_SINK))
41 #define GST_IS_IPC_PIPELINE_SINK_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_IPC_PIPELINE_SINK))
43 #define GST_IPC_PIPELINE_SINK_CAST(obj) ((GstIpcPipelineSink *)obj)
44 
45 typedef struct _GstIpcPipelineSink GstIpcPipelineSink;
46 typedef struct _GstIpcPipelineSinkClass GstIpcPipelineSinkClass;
47 
48 struct _GstIpcPipelineSink {
49   GstElement element;
50 
51   GstIpcPipelineComm comm;
52   GThreadPool *threads;
53   gboolean pass_next_async_done;
54   GstPad *sinkpad;
55 };
56 
57 struct _GstIpcPipelineSinkClass {
58   GstElementClass parent_class;
59 
60   void (*disconnect) (GstIpcPipelineSink * sink);
61 };
62 
63 G_GNUC_INTERNAL GType gst_ipc_pipeline_sink_get_type (void);
64 
65 G_END_DECLS
66 
67 #endif /* __GST_IPC_PIPELINE_SINK_H__ */
68