~ubuntu-branches/ubuntu/precise/gst-plugins-bad0.10/precise-proposed

« back to all changes in this revision

Viewing changes to gst/mpegtsparse/mpegtsparse.h

Tags: upstream-0.10.5.3
Import upstream version 0.10.5.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * mpegts_parse.h - GStreamer MPEG transport stream parser
 
3
 * Copyright (C) 2007 Alessandro Decina
 
4
 * 
 
5
 * Authors:
 
6
 *   Alessandro Decina <alessandro@nnva.org>
 
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., 59 Temple Place - Suite 330,
 
21
 * Boston, MA 02111-1307, USA.
 
22
 */
 
23
 
 
24
 
 
25
#ifndef GST_MPEG_TS_PARSE_H
 
26
#define GST_MPEG_TS_PARSE_H
 
27
 
 
28
#include <gst/gst.h>
 
29
#include "mpegtspacketizer.h"
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
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))
 
43
 
 
44
typedef struct _MpegTSParse MpegTSParse;
 
45
typedef struct _MpegTSParseClass MpegTSParseClass;
 
46
 
 
47
struct _MpegTSParse {
 
48
  GstElement element;
 
49
 
 
50
  GstPad *sinkpad;
 
51
 
 
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;
 
55
  GList *pads_to_add;
 
56
  GList *pads_to_remove;
 
57
  GHashTable *programs;
 
58
  guint req_pads;
 
59
 
 
60
  GstStructure *pat;
 
61
  MpegTSPacketizer *packetizer;
 
62
  GHashTable *psi_pids;
 
63
  gboolean disposed;
 
64
};
 
65
 
 
66
struct _MpegTSParseClass {
 
67
  GstElementClass parent_class;
 
68
 
 
69
  /* signals */
 
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);
 
75
};
 
76
 
 
77
GType gst_mpegts_parse_get_type(void);
 
78
 
 
79
G_END_DECLS
 
80
 
 
81
#endif /* GST_MPEG_TS_PARSE_H */