fix swfdec_as_context_startup() to work on non-SwfdecPlayer objects
[swfdec.git] / libswfdec / swfdec_internal.h
blobc3f557288180a1678f3c37e6aa5d29877282b995
1 /* Swfdec
2 * Copyright (C) 2003-2006 David Schleef <ds@schleef.org>
3 * 2005-2006 Eric Anholt <eric@anholt.net>
4 * 2006 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_INTERNAL_H_
23 #define _SWFDEC_INTERNAL_H_
25 #include <libswfdec/swfdec_types.h>
26 #include <libswfdec/swfdec_codec_audio.h>
27 #include <libswfdec/swfdec_codec_video.h>
29 G_BEGIN_DECLS
32 /* audio codecs */
34 SwfdecAudioDecoder * swfdec_audio_decoder_adpcm_new (SwfdecAudioFormat type,
35 gboolean width,
36 SwfdecAudioOut format);
37 #ifdef HAVE_MAD
38 SwfdecAudioDecoder * swfdec_audio_decoder_mad_new (SwfdecAudioFormat type,
39 gboolean width,
40 SwfdecAudioOut format);
41 #endif
42 #ifdef HAVE_FFMPEG
43 SwfdecAudioDecoder * swfdec_audio_decoder_ffmpeg_new (SwfdecAudioFormat type,
44 gboolean width,
45 SwfdecAudioOut format);
46 #endif
47 #ifdef HAVE_GST
48 SwfdecAudioDecoder * swfdec_audio_decoder_gst_new (SwfdecAudioFormat type,
49 gboolean width,
50 SwfdecAudioOut format);
51 #endif
53 /* video codecs */
55 SwfdecVideoDecoder * swfdec_video_decoder_screen_new (SwfdecVideoFormat format);
56 #ifdef HAVE_FFMPEG
57 SwfdecVideoDecoder * swfdec_video_decoder_ffmpeg_new (SwfdecVideoFormat format);
58 #endif
59 #ifdef HAVE_GST
60 SwfdecVideoDecoder * swfdec_video_decoder_gst_new (SwfdecVideoFormat format);
61 #endif
63 /* AS engine setup code */
65 void swfdec_player_preinit_global (SwfdecAsContext * context,
66 guint version);
67 void swfdec_net_connection_init_context (SwfdecPlayer * player,
68 guint version);
69 void swfdec_net_stream_init_context (SwfdecPlayer * player,
70 guint version);
71 void swfdec_sprite_movie_init_context (SwfdecPlayer * player,
72 guint version);
73 void swfdec_video_movie_init_context (SwfdecPlayer * player,
74 guint version);
76 G_END_DECLS
77 #endif