gstreamer/gst/rtp/gstrtp.c

308 lines
7.3 KiB
C
Raw Normal View History

/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
*
* 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 "config.h"
#endif
#include "gstrtpac3depay.h"
2010-12-21 21:34:49 +00:00
#include "gstrtpac3pay.h"
2009-11-11 10:59:16 +00:00
#include "gstrtpbvdepay.h"
2009-11-11 10:37:07 +00:00
#include "gstrtpbvpay.h"
2009-06-05 16:55:02 +00:00
#include "gstrtpceltdepay.h"
2009-06-05 13:30:51 +00:00
#include "gstrtpceltpay.h"
#include "gstrtpdvdepay.h"
#include "gstrtpdvpay.h"
#include "gstrtpgstdepay.h"
#include "gstrtpgstpay.h"
#include "gstrtpilbcdepay.h"
#include "gstrtpilbcpay.h"
#include "gstrtppcmupay.h"
#include "gstrtppcmapay.h"
#include "gstrtppcmadepay.h"
#include "gstrtppcmudepay.h"
2010-09-30 16:34:04 +00:00
#include "gstrtpg722depay.h"
#include "gstrtpg722pay.h"
2010-01-05 18:03:06 +00:00
#include "gstrtpg723depay.h"
2009-12-17 16:27:42 +00:00
#include "gstrtpg723pay.h"
#include "gstrtpg726depay.h"
#include "gstrtpg726pay.h"
#include "gstrtpg729depay.h"
#include "gstrtpg729pay.h"
#include "gstrtpgsmpay.h"
#include "gstrtpgsmdepay.h"
#include "gstrtpamrpay.h"
#include "gstrtpamrdepay.h"
#include "gstrtpmpapay.h"
#include "gstrtpmpadepay.h"
#include "gstrtpmparobustdepay.h"
#include "gstrtpmpvdepay.h"
#include "gstrtpmpvpay.h"
#include "gstrtph263pdepay.h"
#include "gstrtph263ppay.h"
#include "gstrtph263depay.h"
#include "gstrtph263pay.h"
#include "gstrtph264depay.h"
#include "gstrtph264pay.h"
#include "gstrtpj2kdepay.h"
#include "gstrtpj2kpay.h"
#include "gstrtpjpegdepay.h"
#include "gstrtpjpegpay.h"
#include "gstrtpL16depay.h"
#include "gstrtpL16pay.h"
#include "gstasteriskh263.h"
#include "gstrtpmp1sdepay.h"
#include "gstrtpmp2tdepay.h"
#include "gstrtpmp2tpay.h"
#include "gstrtpmp4vdepay.h"
#include "gstrtpmp4vpay.h"
#include "gstrtpmp4adepay.h"
#include "gstrtpmp4apay.h"
#include "gstrtpmp4gdepay.h"
#include "gstrtpmp4gpay.h"
#include "gstrtpqcelpdepay.h"
#include "gstrtpqdmdepay.h"
#include "gstrtpsirenpay.h"
#include "gstrtpsirendepay.h"
#include "gstrtpspeexpay.h"
#include "gstrtpspeexdepay.h"
#include "gstrtpsv3vdepay.h"
#include "gstrtptheoradepay.h"
#include "gstrtptheorapay.h"
#include "gstrtpvorbisdepay.h"
#include "gstrtpvorbispay.h"
#include "gstrtpvrawdepay.h"
#include "gstrtpvrawpay.h"
static gboolean
plugin_init (GstPlugin * plugin)
{
if (!gst_rtp_ac3_depay_plugin_init (plugin))
return FALSE;
2010-12-21 21:34:49 +00:00
if (!gst_rtp_ac3_pay_plugin_init (plugin))
return FALSE;
2009-11-11 10:59:16 +00:00
if (!gst_rtp_bv_depay_plugin_init (plugin))
return FALSE;
2009-11-11 10:37:07 +00:00
if (!gst_rtp_bv_pay_plugin_init (plugin))
return FALSE;
2009-06-05 16:55:02 +00:00
if (!gst_rtp_celt_depay_plugin_init (plugin))
return FALSE;
2009-06-05 13:30:51 +00:00
if (!gst_rtp_celt_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_dv_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_dv_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_gst_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_gst_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_ilbc_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_ilbc_depay_plugin_init (plugin))
return FALSE;
2010-09-30 16:34:04 +00:00
if (!gst_rtp_g722_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_g722_pay_plugin_init (plugin))
return FALSE;
2010-01-05 18:03:06 +00:00
if (!gst_rtp_g723_depay_plugin_init (plugin))
return FALSE;
2009-12-17 16:27:42 +00:00
if (!gst_rtp_g723_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_g726_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_g726_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_g729_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_g729_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_gsm_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_gsm_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_amr_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_amr_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_pcma_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_pcmu_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_pcmu_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_pcma_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mpa_depay_plugin_init (plugin))
gst/rtp/: Remove old code that is now in gst-libs/gst/rtp/. Original commit message from CVS: * gst/rtp/Makefile.am: * gst/rtp/gstrtp-common.h: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpL16enc.h: * gst/rtp/gstrtpdec.c: (gst_rtpdec_get_type), (gst_rtpdec_class_init), (gst_rtpdec_chain_rtp), (gst_rtpdec_chain_rtcp), (gst_rtpdec_change_state), (gst_rtpdec_plugin_init): * gst/rtp/gstrtph263pdec.c: (gst_rtph263pdec_get_type), (gst_rtph263pdec_base_init), (gst_rtph263pdec_class_init), (gst_rtph263pdec_init), (gst_rtph263pdec_chain), (gst_rtph263pdec_set_property), (gst_rtph263pdec_get_property), (gst_rtph263pdec_change_state), (gst_rtph263pdec_plugin_init): * gst/rtp/gstrtph263pdec.h: * gst/rtp/gstrtph263penc.c: (gst_rtph263penc_get_type), (gst_rtph263penc_base_init), (gst_rtph263penc_class_init), (gst_rtph263penc_init), (gst_rtph263penc_flush), (gst_rtph263penc_chain), (gst_rtph263penc_set_property), (gst_rtph263penc_get_property), (gst_rtph263penc_change_state), (gst_rtph263penc_plugin_init): * gst/rtp/gstrtph263penc.h: * gst/rtp/gstrtpmpadec.c: (gst_rtpmpadec_get_type), (gst_rtpmpadec_base_init), (gst_rtpmpadec_class_init), (gst_rtpmpadec_init), (gst_rtpmpadec_chain), (gst_rtpmpadec_set_property), (gst_rtpmpadec_get_property), (gst_rtpmpadec_change_state), (gst_rtpmpadec_plugin_init): * gst/rtp/gstrtpmpadec.h: * gst/rtp/gstrtpmpaenc.c: (gst_rtpmpaenc_get_type), (gst_rtpmpaenc_base_init), (gst_rtpmpaenc_class_init), (gst_rtpmpaenc_init), (gst_rtpmpaenc_flush), (gst_rtpmpaenc_chain), (gst_rtpmpaenc_set_property), (gst_rtpmpaenc_get_property), (gst_rtpmpaenc_change_state), (gst_rtpmpaenc_plugin_init): * gst/rtp/gstrtpmpaenc.h: * gst/rtp/rtp-packet.c: * gst/rtp/rtp-packet.h: Remove old code that is now in gst-libs/gst/rtp/. Added some payload/depayloaders. * gst/udp/gstudpsink.c: (gst_udpsink_class_init): Fix port number range.
2005-08-18 10:33:15 +00:00
return FALSE;
if (!gst_rtp_mpa_pay_plugin_init (plugin))
gst/rtp/: Remove old code that is now in gst-libs/gst/rtp/. Original commit message from CVS: * gst/rtp/Makefile.am: * gst/rtp/gstrtp-common.h: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpL16enc.h: * gst/rtp/gstrtpdec.c: (gst_rtpdec_get_type), (gst_rtpdec_class_init), (gst_rtpdec_chain_rtp), (gst_rtpdec_chain_rtcp), (gst_rtpdec_change_state), (gst_rtpdec_plugin_init): * gst/rtp/gstrtph263pdec.c: (gst_rtph263pdec_get_type), (gst_rtph263pdec_base_init), (gst_rtph263pdec_class_init), (gst_rtph263pdec_init), (gst_rtph263pdec_chain), (gst_rtph263pdec_set_property), (gst_rtph263pdec_get_property), (gst_rtph263pdec_change_state), (gst_rtph263pdec_plugin_init): * gst/rtp/gstrtph263pdec.h: * gst/rtp/gstrtph263penc.c: (gst_rtph263penc_get_type), (gst_rtph263penc_base_init), (gst_rtph263penc_class_init), (gst_rtph263penc_init), (gst_rtph263penc_flush), (gst_rtph263penc_chain), (gst_rtph263penc_set_property), (gst_rtph263penc_get_property), (gst_rtph263penc_change_state), (gst_rtph263penc_plugin_init): * gst/rtp/gstrtph263penc.h: * gst/rtp/gstrtpmpadec.c: (gst_rtpmpadec_get_type), (gst_rtpmpadec_base_init), (gst_rtpmpadec_class_init), (gst_rtpmpadec_init), (gst_rtpmpadec_chain), (gst_rtpmpadec_set_property), (gst_rtpmpadec_get_property), (gst_rtpmpadec_change_state), (gst_rtpmpadec_plugin_init): * gst/rtp/gstrtpmpadec.h: * gst/rtp/gstrtpmpaenc.c: (gst_rtpmpaenc_get_type), (gst_rtpmpaenc_base_init), (gst_rtpmpaenc_class_init), (gst_rtpmpaenc_init), (gst_rtpmpaenc_flush), (gst_rtpmpaenc_chain), (gst_rtpmpaenc_set_property), (gst_rtpmpaenc_get_property), (gst_rtpmpaenc_change_state), (gst_rtpmpaenc_plugin_init): * gst/rtp/gstrtpmpaenc.h: * gst/rtp/rtp-packet.c: * gst/rtp/rtp-packet.h: Remove old code that is now in gst-libs/gst/rtp/. Added some payload/depayloaders. * gst/udp/gstudpsink.c: (gst_udpsink_class_init): Fix port number range.
2005-08-18 10:33:15 +00:00
return FALSE;
if (!gst_rtp_mpa_robust_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mpv_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mpv_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_h263p_pay_plugin_init (plugin))
gst/rtp/: Remove old code that is now in gst-libs/gst/rtp/. Original commit message from CVS: * gst/rtp/Makefile.am: * gst/rtp/gstrtp-common.h: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpL16enc.h: * gst/rtp/gstrtpdec.c: (gst_rtpdec_get_type), (gst_rtpdec_class_init), (gst_rtpdec_chain_rtp), (gst_rtpdec_chain_rtcp), (gst_rtpdec_change_state), (gst_rtpdec_plugin_init): * gst/rtp/gstrtph263pdec.c: (gst_rtph263pdec_get_type), (gst_rtph263pdec_base_init), (gst_rtph263pdec_class_init), (gst_rtph263pdec_init), (gst_rtph263pdec_chain), (gst_rtph263pdec_set_property), (gst_rtph263pdec_get_property), (gst_rtph263pdec_change_state), (gst_rtph263pdec_plugin_init): * gst/rtp/gstrtph263pdec.h: * gst/rtp/gstrtph263penc.c: (gst_rtph263penc_get_type), (gst_rtph263penc_base_init), (gst_rtph263penc_class_init), (gst_rtph263penc_init), (gst_rtph263penc_flush), (gst_rtph263penc_chain), (gst_rtph263penc_set_property), (gst_rtph263penc_get_property), (gst_rtph263penc_change_state), (gst_rtph263penc_plugin_init): * gst/rtp/gstrtph263penc.h: * gst/rtp/gstrtpmpadec.c: (gst_rtpmpadec_get_type), (gst_rtpmpadec_base_init), (gst_rtpmpadec_class_init), (gst_rtpmpadec_init), (gst_rtpmpadec_chain), (gst_rtpmpadec_set_property), (gst_rtpmpadec_get_property), (gst_rtpmpadec_change_state), (gst_rtpmpadec_plugin_init): * gst/rtp/gstrtpmpadec.h: * gst/rtp/gstrtpmpaenc.c: (gst_rtpmpaenc_get_type), (gst_rtpmpaenc_base_init), (gst_rtpmpaenc_class_init), (gst_rtpmpaenc_init), (gst_rtpmpaenc_flush), (gst_rtpmpaenc_chain), (gst_rtpmpaenc_set_property), (gst_rtpmpaenc_get_property), (gst_rtpmpaenc_change_state), (gst_rtpmpaenc_plugin_init): * gst/rtp/gstrtpmpaenc.h: * gst/rtp/rtp-packet.c: * gst/rtp/rtp-packet.h: Remove old code that is now in gst-libs/gst/rtp/. Added some payload/depayloaders. * gst/udp/gstudpsink.c: (gst_udpsink_class_init): Fix port number range.
2005-08-18 10:33:15 +00:00
return FALSE;
if (!gst_rtp_h263p_depay_plugin_init (plugin))
gst/rtp/: Remove old code that is now in gst-libs/gst/rtp/. Original commit message from CVS: * gst/rtp/Makefile.am: * gst/rtp/gstrtp-common.h: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpL16enc.h: * gst/rtp/gstrtpdec.c: (gst_rtpdec_get_type), (gst_rtpdec_class_init), (gst_rtpdec_chain_rtp), (gst_rtpdec_chain_rtcp), (gst_rtpdec_change_state), (gst_rtpdec_plugin_init): * gst/rtp/gstrtph263pdec.c: (gst_rtph263pdec_get_type), (gst_rtph263pdec_base_init), (gst_rtph263pdec_class_init), (gst_rtph263pdec_init), (gst_rtph263pdec_chain), (gst_rtph263pdec_set_property), (gst_rtph263pdec_get_property), (gst_rtph263pdec_change_state), (gst_rtph263pdec_plugin_init): * gst/rtp/gstrtph263pdec.h: * gst/rtp/gstrtph263penc.c: (gst_rtph263penc_get_type), (gst_rtph263penc_base_init), (gst_rtph263penc_class_init), (gst_rtph263penc_init), (gst_rtph263penc_flush), (gst_rtph263penc_chain), (gst_rtph263penc_set_property), (gst_rtph263penc_get_property), (gst_rtph263penc_change_state), (gst_rtph263penc_plugin_init): * gst/rtp/gstrtph263penc.h: * gst/rtp/gstrtpmpadec.c: (gst_rtpmpadec_get_type), (gst_rtpmpadec_base_init), (gst_rtpmpadec_class_init), (gst_rtpmpadec_init), (gst_rtpmpadec_chain), (gst_rtpmpadec_set_property), (gst_rtpmpadec_get_property), (gst_rtpmpadec_change_state), (gst_rtpmpadec_plugin_init): * gst/rtp/gstrtpmpadec.h: * gst/rtp/gstrtpmpaenc.c: (gst_rtpmpaenc_get_type), (gst_rtpmpaenc_base_init), (gst_rtpmpaenc_class_init), (gst_rtpmpaenc_init), (gst_rtpmpaenc_flush), (gst_rtpmpaenc_chain), (gst_rtpmpaenc_set_property), (gst_rtpmpaenc_get_property), (gst_rtpmpaenc_change_state), (gst_rtpmpaenc_plugin_init): * gst/rtp/gstrtpmpaenc.h: * gst/rtp/rtp-packet.c: * gst/rtp/rtp-packet.h: Remove old code that is now in gst-libs/gst/rtp/. Added some payload/depayloaders. * gst/udp/gstudpsink.c: (gst_udpsink_class_init): Fix port number range.
2005-08-18 10:33:15 +00:00
return FALSE;
if (!gst_rtp_h263_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_h263_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_h264_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_h264_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_j2k_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_j2k_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_jpeg_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_jpeg_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_L16_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_L16_depay_plugin_init (plugin))
return FALSE;
if (!gst_asteriskh263_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mp1s_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mp2t_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mp2t_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mp4v_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mp4v_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mp4a_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mp4a_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mp4g_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_mp4g_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_qcelp_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_qdm2_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_siren_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_siren_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_speex_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_speex_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_sv3v_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_theora_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_theora_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_vorbis_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_vorbis_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_vraw_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_vraw_pay_plugin_init (plugin))
return FALSE;
return TRUE;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
rtp,
"Real-time protocol plugins",
plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);