2 * Copyright (C) 2004 Benjamin Otte <in7y118@public.uni-hamburg.de>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef __GST_THEORADEC_H__
21 #define __GST_THEORADEC_H__
28 #include <theora/theoradec.h>
33 #define GST_TYPE_THEORA_DEC \
34 (gst_theora_dec_get_type())
35 #define GST_THEORA_DEC(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_THEORA_DEC,GstTheoraDec))
37 #define GST_THEORA_DEC_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_THEORA_DEC,GstTheoraDecClass))
39 #define GST_IS_THEORA_DEC(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_THEORA_DEC))
41 #define GST_IS_THEORA_DEC_CLASS(klass) \
42 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_THEORA_DEC))
44 typedef struct _GstTheoraDec GstTheoraDec;
45 typedef struct _GstTheoraDecClass GstTheoraDecClass;
50 * Opaque object data structure.
60 /* theora decoder state */
69 GstClockTime last_timestamp;
71 gboolean need_keyframe;
73 gint offset_x, offset_y;
76 /* telemetry debuging options */
78 gint telemetry_mbmode;
84 /* list of buffers that need timestamps */
86 /* list of raw output buffers */
88 /* gather/decode queues for reverse playback */
95 /* segment info */ /* with STREAM_LOCK */
100 /* QoS stuff */ /* with LOCK*/
102 GstClockTime earliest_time;
111 struct _GstTheoraDecClass
113 GstElementClass parent_class;
116 GType gst_theora_dec_get_type (void);
120 #endif /* __GST_THEORADEC_H__ */