2 * GStreamer streamiddemux eleement
4 * Copyright 2013 LGE Corporation.
5 * @author: Hoonhee Lee <hoonhee.lee@lge.com>
6 * @author: Jeongseok Kim <jeongseok.kim@lge.com>
7 * @author: Wonchul Lee <wonchul86.lee@lge.com>
9 * gststreamiddemux.h: Simple stream-id-demultiplexer element
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 #ifndef __GST_STREAMID_DEMUX_H__
27 #define __GST_STREAMID_DEMUX_H__
32 #define GST_TYPE_STREAMID_DEMUX \
33 (gst_streamid_demux_get_type())
34 #define GST_STREAMID_DEMUX(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_STREAMID_DEMUX, GstStreamidDemux))
36 #define GST_STREAMID_DEMUX_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_STREAMID_DEMUX, GstStreamidDemuxClass))
38 #define GST_IS_STREAMID_DEMUX(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_STREAMID_DEMUX))
40 #define GST_IS_STREAMID_DEMUX_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_STREAMID_DEMUX))
42 typedef struct _GstStreamidDemux GstStreamidDemux;
43 typedef struct _GstStreamidDemuxClass GstStreamidDemuxClass;
48 * The opaque #GstStreamidDemux data structure.
50 struct _GstStreamidDemux
57 GstPad *active_srcpad;
59 /* This table contains srcpad and stream-id */
60 GHashTable *stream_id_pairs;
63 struct _GstStreamidDemuxClass
65 GstElementClass parent_class;
68 G_GNUC_INTERNAL GType gst_streamid_demux_get_type (void);
71 #endif /* __GST_STREAMID_DEMUX_H__ */