1 /* -*- c-basic-offset: 2 -*-
3 * Copyright (C) <2004> Thomas Vander Stichele <thomas at apestaart dot org>
4 * Copyright (C) 2006 Andy Wingo <wingo@pobox.com>
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., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
23 #ifndef __GST_THEORA_PARSE_H__
24 #define __GST_THEORA_PARSE_H__
28 #include <theora/theoradec.h>
32 #define GST_TYPE_THEORA_PARSE \
33 (gst_theora_parse_get_type())
34 #define GST_THEORA_PARSE(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_THEORA_PARSE,GstTheoraParse))
36 #define GST_THEORA_PARSE_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_THEORA_PARSE,GstTheoraParseClass))
38 #define GST_IS_THEORA_PARSE(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_THEORA_PARSE))
40 #define GST_IS_THEORA_PARSE_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_THEORA_PARSE))
43 typedef struct _GstTheoraParse GstTheoraParse;
44 typedef struct _GstTheoraParseClass GstTheoraParseClass;
49 * Opaque data structure.
51 struct _GstTheoraParse {
57 gboolean send_streamheader;
58 gboolean streamheader_received;
59 gboolean is_old_bitstream;
60 GstBuffer * streamheader[3];
63 GQueue * buffer_queue;
73 gint64 granule_offset;
79 struct _GstTheoraParseClass {
80 GstElementClass parent_class;
83 GType gst_theora_parse_get_type(void);
87 #endif /* __GST_THEORA_PARSE_H__ */