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>
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.
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.
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
22 #ifndef __SWFDEC_CODEC_GST_H__
23 #define __SWFDEC_CODEC_GST_H__
26 #include <swfdec/swfdec.h>
34 GQueue
* queue
; /* all the stored output GstBuffers */
37 gboolean
swfdec_gst_decoder_init (SwfdecGstDecoder
* dec
,
40 ...) G_GNUC_NULL_TERMINATED
;
41 void swfdec_gst_decoder_set_codec_data
42 (SwfdecGstDecoder
* dec
,
44 void swfdec_gst_decoder_push_eos (SwfdecGstDecoder
* dec
);
45 GstBuffer
* swfdec_gst_decoder_pull (SwfdecGstDecoder
* dec
);
46 gboolean
swfdec_gst_decoder_push (SwfdecGstDecoder
* dec
,
48 void swfdec_gst_decoder_finish (SwfdecGstDecoder
* dec
);
51 /* NB: references argument more than once */
52 #define swfdec_buffer_new_from_gst(buffer) \
53 swfdec_buffer_new_full (GST_BUFFER_DATA (buffer), GST_BUFFER_SIZE (buffer), \
54 (SwfdecBufferFreeFunc) gst_mini_object_unref, (buffer))
55 GstBuffer
* swfdec_gst_buffer_new (SwfdecBuffer
* buffer
);
59 swfdec_gst_get_element_factory (GstCaps
* caps
);