Gnash
0.8.11dev
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
libmedia
gst
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 */
34
}
SwfdecGstDecoder
;
35
36
gboolean
swfdec_gst_decoder_init
(
SwfdecGstDecoder
* dec,
37
GstCaps * srccaps,
38
GstCaps * sinkcaps,
39
...) G_GNUC_NULL_TERMINATED;
40
41
gboolean
swfdec_gst_colorspace_init
(
SwfdecGstDecoder
* dec,
42
GstCaps * srccaps,
43
GstCaps * sinkcaps);
44
45
void
swfdec_gst_decoder_push_eos
(
SwfdecGstDecoder
* dec);
46
GstBuffer *
swfdec_gst_decoder_pull
(
SwfdecGstDecoder
* dec);
47
gboolean
swfdec_gst_decoder_push
(
SwfdecGstDecoder
* dec,
48
GstBuffer * buffer);
49
void
swfdec_gst_decoder_finish
(
SwfdecGstDecoder
* dec);
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
Generated on Sat Nov 30 2013 06:54:23 for Gnash by
1.8.1.2