2
* mpegts_parse.h - GStreamer MPEG transport stream parser
3
* Copyright (C) 2007 Alessandro Decina
6
* Alessandro Decina <alessandro@nnva.org>
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.
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.
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., 59 Temple Place - Suite 330,
21
* Boston, MA 02111-1307, USA.
25
#ifndef GST_MPEG_TS_PARSE_H
26
#define GST_MPEG_TS_PARSE_H
29
#include "mpegtspacketizer.h"
33
#define GST_TYPE_MPEGTS_PARSE \
34
(mpegts_parse_get_type())
35
#define GST_MPEGTS_PARSE(obj) \
36
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MPEGTS_PARSE,MpegTSParse))
37
#define GST_MPEGTS_PARSE_CLASS(klass) \
38
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MPEGTS_PARSE,MpegTSParseClass))
39
#define GST_IS_MPEGTS_PARSE(obj) \
40
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MPEGTS_PARSE))
41
#define GST_IS_MPEGTS_PARSE_CLASS(klass) \
42
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MPEGTS_PARSE))
44
typedef struct _MpegTSParse MpegTSParse;
45
typedef struct _MpegTSParseClass MpegTSParseClass;
52
/* the following vars must be protected with the OBJECT_LOCK as they can be
53
* accessed from the application thread and the streaming thread */
54
gchar *program_numbers;
56
GList *pads_to_remove;
61
MpegTSPacketizer *packetizer;
66
struct _MpegTSParseClass {
67
GstElementClass parent_class;
70
void (*pat_info) (GstStructure *pat);
71
void (*pmt_info) (GstStructure *pmt);
72
void (*nit_info) (GstStructure *nit);
73
void (*sdt_info) (GstStructure *sdt);
74
void (*eit_info) (GstStructure *eit);
77
GType gst_mpegts_parse_get_type(void);
81
#endif /* GST_MPEG_TS_PARSE_H */