2 * (c) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
4 * ebml-read.c: read EBML data from file/stream
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef __GST_EBML_READ_H__
23 #define __GST_EBML_READ_H__
27 #include <gst/bytestream/bytestream.h>
31 #define GST_TYPE_EBML_READ \
32 (gst_ebml_read_get_type ())
33 #define GST_EBML_READ(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_EBML_READ, GstEbmlRead))
35 #define GST_EBML_READ_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_EBML_READ, GstEbmlReadClass))
37 #define GST_IS_EBML_READ(obj) \
38 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_EBML_READ))
39 #define GST_IS_EBML_READ_CLASS(obj) \
40 (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_EBML_READ))
41 #define GST_EBML_READ_GET_CLASS(obj) \
42 (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_EBML_READ, GstEbmlReadClass))
44 typedef struct _GstEbmlLevel {
49 typedef struct _GstEbmlRead {
58 typedef struct _GstEbmlReadClass {
59 GstElementClass parent;
62 GType gst_ebml_read_get_type (void);
64 guint32 gst_ebml_peek_id (GstEbmlRead *ebml,
66 GstEvent *gst_ebml_read_seek (GstEbmlRead *ebml,
68 gboolean gst_ebml_read_skip (GstEbmlRead *ebml);
69 gboolean gst_ebml_read_buffer (GstEbmlRead *ebml,
72 gboolean gst_ebml_read_uint (GstEbmlRead *ebml,
75 gboolean gst_ebml_read_sint (GstEbmlRead *ebml,
78 gboolean gst_ebml_read_float (GstEbmlRead *ebml,
81 gboolean gst_ebml_read_ascii (GstEbmlRead *ebml,
84 gboolean gst_ebml_read_utf8 (GstEbmlRead *ebml,
87 gboolean gst_ebml_read_date (GstEbmlRead *ebml,
90 gboolean gst_ebml_read_master (GstEbmlRead *ebml,
92 gboolean gst_ebml_read_binary (GstEbmlRead *ebml,
96 gboolean gst_ebml_read_header (GstEbmlRead *read,
102 #endif /* __GST_EBML_READ_H__ */