2 * Copyright (C) 2006-2008 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 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 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
28 #include <gst/pbutils/pbutils.h>
29 #include "swfdec_audio_decoder_gst.h"
30 #include "swfdec_video_decoder_gst.h"
32 #include <liboil/liboil.h>
34 #include "swfdec_audio_decoder_adpcm.h"
35 #include "swfdec_audio_decoder_uncompressed.h"
36 #include "swfdec_debug.h"
37 #include "swfdec_video_decoder_screen.h"
38 #include "swfdec_video_decoder_vp6_alpha.h"
43 * Initializes the Swfdec library.
48 static gboolean _inited
= FALSE
;
56 /* initialize all types */
57 if (!g_thread_supported ())
62 gst_init (NULL
, NULL
);
67 s
= g_getenv ("SWFDEC_DEBUG");
72 level
= strtoul (s
, &end
, 0);
74 swfdec_debug_set_level (level
);
78 /* Setup audio and video decoders.
79 * NB: The order is important! */
80 swfdec_audio_decoder_register (SWFDEC_TYPE_AUDIO_DECODER_UNCOMPRESSED
);
81 swfdec_audio_decoder_register (SWFDEC_TYPE_AUDIO_DECODER_ADPCM
);
82 swfdec_video_decoder_register (SWFDEC_TYPE_VIDEO_DECODER_SCREEN
);
83 swfdec_video_decoder_register (SWFDEC_TYPE_VIDEO_DECODER_VP6_ALPHA
);
85 swfdec_audio_decoder_register (SWFDEC_TYPE_AUDIO_DECODER_GST
);
86 swfdec_video_decoder_register (SWFDEC_TYPE_VIDEO_DECODER_GST
);