From f783ef73b7d56aa049717fc5fcaff8add912f550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 2 Aug 2008 17:29:44 +0000 Subject: Add CELT encoder and decoder elements based on the Speex elements. Original commit message from CVS: * configure.ac: * ext/Makefile.am: * ext/celt/Makefile.am: * ext/celt/gstcelt.c: (plugin_init): * ext/celt/gstceltdec.c: (gst_celt_dec_base_init), (gst_celt_dec_class_init), (gst_celt_dec_reset), (gst_celt_dec_init), (celt_dec_convert), (celt_get_sink_query_types), (celt_dec_sink_query), (celt_get_src_query_types), (celt_dec_src_query), (celt_dec_src_event), (celt_dec_sink_event), (celt_dec_chain_parse_header), (celt_dec_chain_parse_comments), (celt_dec_chain_parse_data), (celt_dec_chain), (celt_dec_change_state): * ext/celt/gstceltdec.h: * ext/celt/gstceltenc.c: (gst_celt_enc_setup_interfaces), (gst_celt_enc_base_init), (gst_celt_enc_class_init), (gst_celt_enc_finalize), (gst_celt_enc_sink_setcaps), (gst_celt_enc_sink_getcaps), (gst_celt_enc_convert_src), (gst_celt_enc_convert_sink), (gst_celt_enc_get_latency), (gst_celt_enc_get_query_types), (gst_celt_enc_src_query), (gst_celt_enc_sink_query), (gst_celt_enc_init), (gst_celt_enc_create_metadata_buffer), (gst_celt_enc_setup), (gst_celt_enc_buffer_from_data), (gst_celt_enc_push_buffer), (gst_celt_enc_set_header_on_caps), (gst_celt_enc_sinkevent), (gst_celt_enc_chain), (gst_celt_enc_get_property), (gst_celt_enc_set_property), (gst_celt_enc_change_state): * ext/celt/gstceltenc.h: Add CELT encoder and decoder elements based on the Speex elements. --- ext/celt/gstcelt.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 ext/celt/gstcelt.c (limited to 'ext/celt/gstcelt.c') diff --git a/ext/celt/gstcelt.c b/ext/celt/gstcelt.c new file mode 100644 index 00000000..24b7d3ef --- /dev/null +++ b/ext/celt/gstcelt.c @@ -0,0 +1,50 @@ +/* GStreamer + * Copyright (C) <1999> Erik Walthinsen + * Copyright (C) <2008> Sebastian Dröge + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "gstceltdec.h" +#include "gstceltenc.h" + +#include + +static gboolean +plugin_init (GstPlugin * plugin) +{ + + if (!gst_element_register (plugin, "celtenc", GST_RANK_NONE, + GST_TYPE_CELT_ENC)) + return FALSE; + + if (!gst_element_register (plugin, "celtdec", GST_RANK_PRIMARY, + GST_TYPE_CELT_DEC)) + return FALSE; + + gst_tag_register_musicbrainz_tags (); + + return TRUE; +} + +GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, + GST_VERSION_MINOR, + "celt", + "CELT plugin library", + plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN) -- cgit v1.2.1