Gnash  0.8.11dev
swfdec_codec_gst.h
Go to the documentation of this file.
1 /* Swfdec
2  * Copyright (C) 2003-2006 David Schleef <ds@schleef.org>
3  * 2005-2006 Eric Anholt <eric@anholt.net>
4  * 2006-2007 Benjamin Otte <otte@gnome.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
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  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301 USA
20  */
21 
22 #ifndef __SWFDEC_CODEC_GST_H__
23 #define __SWFDEC_CODEC_GST_H__
24 
25 #include <gst/gst.h>
26 
27 G_BEGIN_DECLS
28 
29 typedef struct {
30  GstElement * bin;
31  GstPad * src;
32  GstPad * sink;
33  GQueue * queue; /* all the stored output GstBuffers */
35 
37  GstCaps * srccaps,
38  GstCaps * sinkcaps,
39  ...) G_GNUC_NULL_TERMINATED;
40 
42  GstCaps * srccaps,
43  GstCaps * sinkcaps);
44 
46 GstBuffer * swfdec_gst_decoder_pull (SwfdecGstDecoder * dec);
48  GstBuffer * buffer);
50 
51 GstElementFactory *
52  swfdec_gst_get_element_factory (GstCaps * caps);
53 
54 GstElementFactory *
55  swfdec_gst_get_demuxer_factory (GstCaps * caps);
56 GstElementFactory *
57  swfdec_gst_get_parser_factory (GstCaps * caps);
58 
59 GstPad * swfdec_gst_connect_srcpad (GstElement *element, GstCaps *caps);
60 
61 GstPad * swfdec_gst_connect_sinkpad (GstElement *element, GstCaps *caps);
62 GstPad * swfdec_gst_connect_sinkpad_by_pad (GstPad *srcpad, GstCaps *caps);
63 
64 G_END_DECLS
65 #endif
66 
GstPad * src
Definition: swfdec_codec_gst.h:31
GstElement * bin
Definition: swfdec_codec_gst.h:30
gboolean swfdec_gst_decoder_init(SwfdecGstDecoder *dec, GstCaps *srccaps, GstCaps *sinkcaps,...) G_GNUC_NULL_TERMINATED
Definition: swfdec_codec_gst.c:280
gboolean swfdec_gst_colorspace_init(SwfdecGstDecoder *dec, GstCaps *srccaps, GstCaps *sinkcaps)
Definition: swfdec_codec_gst.c:249
void swfdec_gst_decoder_finish(SwfdecGstDecoder *dec)
Definition: swfdec_codec_gst.c:337
void swfdec_gst_decoder_push_eos(SwfdecGstDecoder *dec)
Definition: swfdec_codec_gst.c:393
GstBuffer * swfdec_gst_decoder_pull(SwfdecGstDecoder *dec)
Definition: swfdec_codec_gst.c:399
GstPad * swfdec_gst_connect_sinkpad(GstElement *element, GstCaps *caps)
Definition: swfdec_codec_gst.c:221
GstPad * swfdec_gst_connect_sinkpad_by_pad(GstPad *srcpad, GstCaps *caps)
Definition: swfdec_codec_gst.c:199
GstElementFactory * swfdec_gst_get_demuxer_factory(GstCaps *caps)
Definition: swfdec_codec_gst.c:157
GQueue * queue
Definition: swfdec_codec_gst.h:33
gboolean swfdec_gst_decoder_push(SwfdecGstDecoder *dec, GstBuffer *buffer)
Definition: swfdec_codec_gst.c:365
GstPad * swfdec_gst_connect_srcpad(GstElement *element, GstCaps *caps)
Definition: swfdec_codec_gst.c:172
Definition: swfdec_codec_gst.h:29
GstElementFactory * swfdec_gst_get_element_factory(GstCaps *caps)
Definition: swfdec_codec_gst.c:151
GstElementFactory * swfdec_gst_get_parser_factory(GstCaps *caps)
Definition: swfdec_codec_gst.c:163
GstPad * sink
Definition: swfdec_codec_gst.h:32