rtp: allow per feature registration

Split plugin into features including
dynamic types which can be indiviually
registered during a static build.

More details here:

https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/876>
This commit is contained in:
Stéphane Cerveau 2021-02-12 13:16:28 +01:00
parent 8c4c4b5cff
commit 80f8780e92
191 changed files with 587 additions and 1238 deletions

View file

@ -24,6 +24,7 @@
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
#include "gstrtpelements.h"
#include "gstasteriskh263.h"
#define GST_ASTERISKH263_HEADER_LEN 6
@ -64,6 +65,8 @@ static GstStateChangeReturn gst_asteriskh263_change_state (GstElement *
#define gst_asteriskh263_parent_class parent_class
G_DEFINE_TYPE (GstAsteriskh263, gst_asteriskh263, GST_TYPE_ELEMENT);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (asteriskh263, "asteriskh263",
GST_RANK_NONE, GST_TYPE_ASTERISK_H263, rtp_element_init (plugin));
static void
gst_asteriskh263_class_init (GstAsteriskh263Class * klass)
@ -221,10 +224,3 @@ gst_asteriskh263_change_state (GstElement * element, GstStateChange transition)
*/
return ret;
}
gboolean
gst_asteriskh263_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "asteriskh263",
GST_RANK_NONE, GST_TYPE_ASTERISK_H263);
}

View file

@ -58,8 +58,6 @@ struct _GstAsteriskh263Class
GType gst_asteriskh263_get_type (void);
gboolean gst_asteriskh263_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_ASTERISK_H263_H__ */

View file

@ -23,409 +23,112 @@
#include <gst/tag/tag.h>
#include "gstrtputils.h"
#include "gstrtpelements.h"
#include "gstrtpac3depay.h"
#include "gstrtpac3pay.h"
#include "gstrtpbvdepay.h"
#include "gstrtpbvpay.h"
#include "gstrtpceltdepay.h"
#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"
#include "gstrtpg722depay.h"
#include "gstrtpg722pay.h"
#include "gstrtpg723depay.h"
#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 "gstrtpopusdepay.h"
#include "gstrtpopuspay.h"
#include "gstrtph261pay.h"
#include "gstrtph261depay.h"
#include "gstrtph263pdepay.h"
#include "gstrtph263ppay.h"
#include "gstrtph263depay.h"
#include "gstrtph263pay.h"
#include "gstrtph264depay.h"
#include "gstrtph264pay.h"
#include "gstrtph265depay.h"
#include "gstrtph265pay.h"
#include "gstrtpisacdepay.h"
#include "gstrtpisacpay.h"
#include "gstrtpj2kdepay.h"
#include "gstrtpj2kpay.h"
#include "gstrtpjpegdepay.h"
#include "gstrtpjpegpay.h"
#include "gstrtpklvdepay.h"
#include "gstrtpklvpay.h"
#include "gstrtpL8depay.h"
#include "gstrtpL8pay.h"
#include "gstrtpL16depay.h"
#include "gstrtpL16pay.h"
#include "gstrtpL24depay.h"
#include "gstrtpL24pay.h"
#include "gstrtpldacpay.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 "gstrtpsbcdepay.h"
#include "gstrtpsbcpay.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 "gstrtpvp8depay.h"
#include "gstrtpvp8pay.h"
#include "gstrtpvp9depay.h"
#include "gstrtpvp9pay.h"
#include "gstrtpvrawdepay.h"
#include "gstrtpvrawpay.h"
#include "gstrtpstreampay.h"
#include "gstrtpstreamdepay.h"
#include "gstrtpredenc.h"
#include "gstrtpreddec.h"
#include "gstrtpulpfecdec.h"
#include "gstrtpulpfecenc.h"
#include "gstrtpstorage.h"
static gboolean
plugin_init (GstPlugin * plugin)
{
gst_tag_image_type_get_type ();
rtp_quark_meta_tag_video =
g_quark_from_static_string (GST_META_TAG_VIDEO_STR);
rtp_quark_meta_tag_audio =
g_quark_from_static_string (GST_META_TAG_AUDIO_STR);
if (!gst_rtp_ac3_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_ac3_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_bv_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_bv_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_celt_depay_plugin_init (plugin))
return FALSE;
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;
if (!gst_rtp_g722_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_g722_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_g723_depay_plugin_init (plugin))
return FALSE;
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))
return FALSE;
if (!gst_rtp_mpa_pay_plugin_init (plugin))
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_opus_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_opus_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_h261_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_h261_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_h263p_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_h263p_depay_plugin_init (plugin))
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_h265_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_h265_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_klv_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_klv_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_L8_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_L8_depay_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_rtp_L24_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_L24_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_ldac_pay_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_sbc_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_sbc_pay_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_vp8_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_vp8_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_vp9_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_vp9_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;
if (!gst_rtp_stream_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_stream_depay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_isac_pay_plugin_init (plugin))
return FALSE;
if (!gst_rtp_isac_depay_plugin_init (plugin))
return FALSE;
if (!gst_element_register (plugin, "rtpredenc", GST_RANK_NONE,
GST_TYPE_RTP_RED_ENC))
return FALSE;
if (!gst_element_register (plugin, "rtpreddec", GST_RANK_NONE,
GST_TYPE_RTP_RED_DEC))
return FALSE;
if (!gst_element_register (plugin, "rtpulpfecdec", GST_RANK_NONE,
GST_TYPE_RTP_ULPFEC_DEC))
return FALSE;
if (!gst_element_register (plugin, "rtpulpfecenc", GST_RANK_NONE,
GST_TYPE_RTP_ULPFEC_ENC))
return FALSE;
if (!gst_element_register (plugin, "rtpstorage", GST_RANK_NONE,
GST_TYPE_RTP_STORAGE))
return FALSE;
return TRUE;
gboolean ret = FALSE;
ret |= GST_ELEMENT_REGISTER (rtpac3depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpac3pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpbvdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpbvpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpceltdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpceltpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpdvdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpdvpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpgstdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpgstpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpilbcpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpilbcdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpg722depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpg722pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpg723depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpg723pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpg726depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpg726pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpg729depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpg729pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpgsmdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpgsmpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpamrdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpamrpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtppcmadepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtppcmudepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtppcmupay, plugin);
ret |= GST_ELEMENT_REGISTER (rtppcmapay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmpadepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmpapay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmparobustdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmpvdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmpvpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpopusdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpopuspay, plugin);
ret |= GST_ELEMENT_REGISTER (rtph261pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtph261depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtph263ppay, plugin);
ret |= GST_ELEMENT_REGISTER (rtph263pdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtph263depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtph263pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtph264depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtph264pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtph265depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtph265pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpj2kdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpj2kpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpjpegdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpjpegpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpklvdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpklvpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpL8pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpL8depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpL16pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpL16depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpL24pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpL24depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpldacpay, plugin);
ret |= GST_ELEMENT_REGISTER (asteriskh263, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmp1sdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmp2tdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmp2tpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmp4vpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmp4vdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmp4apay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmp4adepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmp4gdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpmp4gpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpqcelpdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpqdm2depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpsbcdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpsbcpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpsirenpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpsirendepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpspeexpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpspeexdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpsv3vdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtptheoradepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtptheorapay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpvorbisdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpvorbispay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpvp8depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpvp8pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpvp9depay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpvp9pay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpvrawdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpvrawpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpstreampay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpstreamdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpisacpay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpisacdepay, plugin);
ret |= GST_ELEMENT_REGISTER (rtpredenc, plugin);
ret |= GST_ELEMENT_REGISTER (rtpreddec, plugin);
ret |= GST_ELEMENT_REGISTER (rtpulpfecdec, plugin);
ret |= GST_ELEMENT_REGISTER (rtpulpfecenc, plugin);
ret |= GST_ELEMENT_REGISTER (rtpstorage, plugin);
return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -42,6 +42,7 @@
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpL16depay.h"
#include "gstrtpchannels.h"
#include "gstrtputils.h"
@ -81,6 +82,8 @@ static GstStaticPadTemplate gst_rtp_L16_depay_sink_template =
#define gst_rtp_L16_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpL16Depay, gst_rtp_L16_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL16depay, "rtpL16depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L16_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_L16_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
@ -291,10 +294,3 @@ reorder_failed:
return NULL;
}
}
gboolean
gst_rtp_L16_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpL16depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L16_DEPAY);
}

View file

@ -60,8 +60,6 @@ struct _GstRtpL16DepayClass
GType gst_rtp_L16_depay_get_type (void);
gboolean gst_rtp_L16_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_L16_DEPAY_H__ */

View file

@ -42,6 +42,7 @@
#include <gst/audio/audio.h>
#include <gst/rtp/gstrtpbuffer.h>
#include "gstrtpelements.h"
#include "gstrtpL16pay.h"
#include "gstrtpchannels.h"
@ -90,6 +91,8 @@ gst_rtp_L16_pay_handle_buffer (GstRTPBasePayload * basepayload,
#define gst_rtp_L16_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpL16Pay, gst_rtp_L16_pay, GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL16pay, "rtpL16pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L16_PAY, rtp_element_init (plugin));
static void
gst_rtp_L16_pay_class_init (GstRtpL16PayClass * klass)
@ -254,10 +257,3 @@ gst_rtp_L16_pay_handle_buffer (GstRTPBasePayload * basepayload,
return GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->handle_buffer (basepayload,
buffer);
}
gboolean
gst_rtp_L16_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpL16pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L16_PAY);
}

View file

@ -56,8 +56,6 @@ struct _GstRtpL16PayClass
GType gst_rtp_L16_pay_get_type (void);
gboolean gst_rtp_L16_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_L16_PAY_H__ */

View file

@ -42,6 +42,7 @@
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpL24depay.h"
#include "gstrtpchannels.h"
#include "gstrtputils.h"
@ -70,6 +71,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
#define gst_rtp_L24_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpL24Depay, gst_rtp_L24_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL24depay, "rtpL24depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L24_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_L24_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
@ -256,10 +259,3 @@ reorder_failed:
return NULL;
}
}
gboolean
gst_rtp_L24_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpL24depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L24_DEPAY);
}

View file

@ -60,8 +60,6 @@ struct _GstRtpL24DepayClass
GType gst_rtp_L24_depay_get_type (void);
gboolean gst_rtp_L24_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_L24_DEPAY_H__ */

View file

@ -42,6 +42,7 @@
#include <gst/audio/audio.h>
#include <gst/rtp/gstrtpbuffer.h>
#include "gstrtpelements.h"
#include "gstrtpL24pay.h"
#include "gstrtpchannels.h"
@ -79,6 +80,8 @@ gst_rtp_L24_pay_handle_buffer (GstRTPBasePayload * basepayload,
#define gst_rtp_L24_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpL24Pay, gst_rtp_L24_pay, GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL24pay, "rtpL24pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L24_PAY, rtp_element_init (plugin));
static void
gst_rtp_L24_pay_class_init (GstRtpL24PayClass * klass)
@ -235,10 +238,3 @@ gst_rtp_L24_pay_handle_buffer (GstRTPBasePayload * basepayload,
return GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->handle_buffer (basepayload,
buffer);
}
gboolean
gst_rtp_L24_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpL24pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L24_PAY);
}

View file

@ -56,8 +56,6 @@ struct _GstRtpL24PayClass
GType gst_rtp_L24_pay_get_type (void);
gboolean gst_rtp_L24_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_L24_PAY_H__ */

View file

@ -42,6 +42,7 @@
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpL8depay.h"
#include "gstrtpchannels.h"
@ -73,6 +74,10 @@ static GstStaticPadTemplate gst_rtp_L8_depay_sink_template =
#define gst_rtp_L8_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpL8Depay, gst_rtp_L8_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL8depay, "rtpL8depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L8_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_L8_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
static GstBuffer *gst_rtp_L8_depay_process (GstRTPBaseDepayload * depayload,
@ -258,10 +263,3 @@ reorder_failed:
return NULL;
}
}
gboolean
gst_rtp_L8_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpL8depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L8_DEPAY);
}

View file

@ -58,8 +58,6 @@ struct _GstRtpL8DepayClass
GType gst_rtp_L8_depay_get_type (void);
gboolean gst_rtp_L8_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_L8_DEPAY_H__ */

View file

@ -42,6 +42,7 @@
#include <gst/audio/audio.h>
#include <gst/rtp/gstrtpbuffer.h>
#include "gstrtpelements.h"
#include "gstrtpL8pay.h"
#include "gstrtpchannels.h"
@ -80,6 +81,10 @@ gst_rtp_L8_pay_handle_buffer (GstRTPBasePayload * basepayload,
#define gst_rtp_L8_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpL8Pay, gst_rtp_L8_pay, GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpL8pay, "rtpL8pay", GST_RANK_SECONDARY,
GST_TYPE_RTP_L8_PAY, rtp_element_init (plugin));
static void
gst_rtp_L8_pay_class_init (GstRtpL8PayClass * klass)
{
@ -234,10 +239,3 @@ gst_rtp_L8_pay_handle_buffer (GstRTPBasePayload * basepayload,
return GST_RTP_BASE_PAYLOAD_CLASS (parent_class)->handle_buffer (basepayload,
buffer);
}
gboolean
gst_rtp_L8_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpL8pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_L8_PAY);
}

View file

@ -57,8 +57,6 @@ struct _GstRtpL8PayClass
GType gst_rtp_L8_pay_get_type (void);
gboolean gst_rtp_L8_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_L8_PAY_H__ */

View file

@ -41,6 +41,7 @@
#include <gst/audio/audio.h>
#include <string.h>
#include "gstrtpelements.h"
#include "gstrtpac3depay.h"
#include "gstrtputils.h"
@ -65,6 +66,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
);
G_DEFINE_TYPE (GstRtpAC3Depay, gst_rtp_ac3_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpac3depay, "rtpac3depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_AC3_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_ac3_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
@ -171,10 +174,3 @@ empty_packet:
return NULL;
}
}
gboolean
gst_rtp_ac3_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpac3depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_AC3_DEPAY);
}

View file

@ -51,8 +51,6 @@ struct _GstRtpAC3DepayClass
GType gst_rtp_ac3_depay_get_type (void);
gboolean gst_rtp_ac3_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_AC3_DEPAY_H__ */

View file

@ -42,6 +42,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpac3pay.h"
#include "gstrtputils.h"
@ -81,6 +82,8 @@ static GstFlowReturn gst_rtp_ac3_pay_handle_buffer (GstRTPBasePayload * payload,
#define gst_rtp_ac3_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpAC3Pay, gst_rtp_ac3_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpac3pay, "rtpac3pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_AC3_PAY, rtp_element_init (plugin));
static void
gst_rtp_ac3_pay_class_init (GstRtpAC3PayClass * klass)
@ -470,10 +473,3 @@ gst_rtp_ac3_pay_change_state (GstElement * element, GstStateChange transition)
}
return ret;
}
gboolean
gst_rtp_ac3_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpac3pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_AC3_PAY);
}

View file

@ -57,8 +57,6 @@ struct _GstRtpAC3PayClass
GType gst_rtp_ac3_pay_get_type (void);
gboolean gst_rtp_ac3_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_AC3_PAY_H__ */

View file

@ -48,6 +48,7 @@
#include <stdlib.h>
#include <string.h>
#include "gstrtpelements.h"
#include "gstrtpamrdepay.h"
#include "gstrtputils.h"
@ -130,6 +131,8 @@ static GstBuffer *gst_rtp_amr_depay_process (GstRTPBaseDepayload * depayload,
#define gst_rtp_amr_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpAMRDepay, gst_rtp_amr_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpamrdepay, "rtpamrdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_AMR_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_amr_depay_class_init (GstRtpAMRDepayClass * klass)
@ -469,10 +472,3 @@ bad_packet:
return NULL;
}
}
gboolean
gst_rtp_amr_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpamrdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_AMR_DEPAY);
}

View file

@ -70,8 +70,6 @@ struct _GstRtpAMRDepayClass
GType gst_rtp_amr_depay_get_type (void);
gboolean gst_rtp_amr_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_AMR_DEPAY_H__ */

View file

@ -55,6 +55,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpamrpay.h"
#include "gstrtputils.h"
@ -113,6 +114,8 @@ gst_rtp_amr_pay_change_state (GstElement * element, GstStateChange transition);
#define gst_rtp_amr_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpAMRPay, gst_rtp_amr_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpamrpay, "rtpamrpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_AMR_PAY, rtp_element_init (plugin));
static void
gst_rtp_amr_pay_class_init (GstRtpAMRPayClass * klass)
@ -456,10 +459,3 @@ gst_rtp_amr_pay_change_state (GstElement * element, GstStateChange transition)
return ret;
}
gboolean
gst_rtp_amr_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpamrpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_AMR_PAY);
}

View file

@ -63,8 +63,6 @@ struct _GstRtpAMRPayClass
GType gst_rtp_amr_pay_get_type (void);
gboolean gst_rtp_amr_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_AMR_PAY_H__ */

View file

@ -35,6 +35,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpbvdepay.h"
#include "gstrtputils.h"
@ -65,6 +66,8 @@ static gboolean gst_rtp_bv_depay_setcaps (GstRTPBaseDepayload * depayload,
#define gst_rtp_bv_depay_parent_class parent_class
G_DEFINE_TYPE (GstRTPBVDepay, gst_rtp_bv_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpbvdepay, "rtpbvdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_BV_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_bv_depay_class_init (GstRTPBVDepayClass * klass)
@ -182,10 +185,3 @@ gst_rtp_bv_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
return outbuf;
}
gboolean
gst_rtp_bv_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpbvdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_BV_DEPAY);
}

View file

@ -53,8 +53,6 @@ struct _GstRTPBVDepayClass
GType gst_rtp_bv_depay_get_type (void);
gboolean gst_rtp_bv_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_BV_DEPAY_H__ */

View file

@ -34,6 +34,7 @@
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
#include "gstrtpelements.h"
#include "gstrtpbvpay.h"
GST_DEBUG_CATEGORY_STATIC (rtpbvpay_debug);
@ -69,6 +70,8 @@ static gboolean gst_rtp_bv_pay_sink_setcaps (GstRTPBasePayload * payload,
#define gst_rtp_bv_pay_parent_class parent_class
G_DEFINE_TYPE (GstRTPBVPay, gst_rtp_bv_pay, GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpbvpay, "rtpbvpay", GST_RANK_SECONDARY,
GST_TYPE_RTP_BV_PAY, rtp_element_init (plugin));
static void
gst_rtp_bv_pay_class_init (GstRTPBVPayClass * klass)
@ -231,10 +234,3 @@ gst_rtp_bv_pay_sink_getcaps (GstRTPBasePayload * rtppayload, GstPad * pad,
return caps;
}
gboolean
gst_rtp_bv_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpbvpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_BV_PAY);
}

View file

@ -53,8 +53,6 @@ struct _GstRTPBVPayClass
GType gst_rtp_bv_pay_get_type (void);
gboolean gst_rtp_bv_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_BV_PAY_H__ */

View file

@ -26,6 +26,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpceltdepay.h"
#include "gstrtputils.h"
@ -74,7 +75,8 @@ static gboolean gst_rtp_celt_depay_setcaps (GstRTPBaseDepayload * depayload,
#define gst_rtp_celt_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpCELTDepay, gst_rtp_celt_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpceltdepay, "rtpceltdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_CELT_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_celt_depay_class_init (GstRtpCELTDepayClass * klass)
{
@ -267,10 +269,3 @@ gst_rtp_celt_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
return NULL;
}
gboolean
gst_rtp_celt_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpceltdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_CELT_DEPAY);
}

View file

@ -47,8 +47,6 @@ struct _GstRtpCELTDepayClass
GType gst_rtp_celt_depay_get_type (void);
gboolean gst_rtp_celt_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_CELT_DEPAY_H__ */

View file

@ -26,6 +26,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpceltpay.h"
#include "gstrtputils.h"
@ -66,6 +67,8 @@ static GstFlowReturn gst_rtp_celt_pay_handle_buffer (GstRTPBasePayload *
#define gst_rtp_celt_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpCELTPay, gst_rtp_celt_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpceltpay, "rtpceltpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_CELT_PAY, rtp_element_init (plugin));
static void
gst_rtp_celt_pay_class_init (GstRtpCELTPayClass * klass)
@ -495,10 +498,3 @@ gst_rtp_celt_pay_change_state (GstElement * element, GstStateChange transition)
}
return ret;
}
gboolean
gst_rtp_celt_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpceltpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_CELT_PAY);
}

View file

@ -55,8 +55,6 @@ struct _GstRtpCELTPayClass
GType gst_rtp_celt_pay_get_type (void);
gboolean gst_rtp_celt_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_CELT_PAY_H__ */

View file

@ -33,6 +33,8 @@
#include <gst/gst.h>
#include "gstrtpdvdepay.h"
#include "gstrtpelements.h"
#include "gstrtputils.h"
GST_DEBUG_CATEGORY (rtpdvdepay_debug);
@ -82,7 +84,8 @@ static gboolean gst_rtp_dv_depay_setcaps (GstRTPBaseDepayload * depayload,
#define gst_rtp_dv_depay_parent_class parent_class
G_DEFINE_TYPE (GstRTPDVDepay, gst_rtp_dv_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpdvdepay, "rtpdvdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_DV_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_dv_depay_class_init (GstRTPDVDepayClass * klass)
@ -416,10 +419,3 @@ gst_rtp_dv_depay_change_state (GstElement * element, GstStateChange transition)
}
return ret;
}
gboolean
gst_rtp_dv_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpdvdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_DV_DEPAY);
}

View file

@ -59,8 +59,6 @@ struct _GstRTPDVDepayClass
GType gst_rtp_dv_depay_get_type (void);
gboolean gst_rtp_dv_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GSTRTPDVDEPAY_H__ */

View file

@ -26,6 +26,7 @@
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
#include "gstrtpelements.h"
#include "gstrtpdvpay.h"
#include "gstrtputils.h"
@ -97,6 +98,8 @@ static void gst_dv_pay_get_property (GObject * object,
#define gst_rtp_dv_pay_parent_class parent_class
G_DEFINE_TYPE (GstRTPDVPay, gst_rtp_dv_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpdvpay, "rtpdvpay", GST_RANK_SECONDARY,
GST_TYPE_RTP_DV_PAY, rtp_element_init (plugin));
static void
gst_rtp_dv_pay_class_init (GstRTPDVPayClass * klass)
@ -392,10 +395,3 @@ beach:
return ret;
}
gboolean
gst_rtp_dv_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpdvpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_DV_PAY);
}

View file

@ -62,8 +62,6 @@ struct _GstRTPDVPayClass
GType gst_rtp_dv_pay_get_type (void);
gboolean gst_rtp_dv_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GSTRTPDVPAY_H__ */

46
gst/rtp/gstrtpelement.c Normal file
View file

@ -0,0 +1,46 @@
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
* Copyright (C) 2020 Huawei Technologies Co., Ltd.
* @Author: Julian Bouzas <julian.bouzas@collabora.com>
*
* 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., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <gst/tag/tag.h>
#include <gst/video/video.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtputils.h"
void
rtp_element_init (GstPlugin * plugin)
{
static gsize res = FALSE;
if (g_once_init_enter (&res)) {
gst_tag_image_type_get_type ();
rtp_quark_meta_tag_video =
g_quark_from_static_string (GST_META_TAG_VIDEO_STR);
rtp_quark_meta_tag_audio =
g_quark_from_static_string (GST_META_TAG_AUDIO_STR);
g_once_init_leave (&res, TRUE);
}
}

133
gst/rtp/gstrtpelements.h Normal file
View file

@ -0,0 +1,133 @@
/* GStreamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
* Copyright (C) 2020 Huawei Technologies Co., Ltd.
* @Author: Julian Bouzas <julian.bouzas@collabora.com>
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __GST_RTP_ELEMENTS_H__
#define __GST_RTP_ELEMENTS_H__
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <gst/gst.h>
G_BEGIN_DECLS
void rtp_element_init (GstPlugin * plugin);
GST_ELEMENT_REGISTER_DECLARE (rtpac3depay);
GST_ELEMENT_REGISTER_DECLARE (rtpac3pay);
GST_ELEMENT_REGISTER_DECLARE (rtpbvdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpbvpay);
GST_ELEMENT_REGISTER_DECLARE (rtpceltdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpceltpay);
GST_ELEMENT_REGISTER_DECLARE (rtpdvdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpdvpay);
GST_ELEMENT_REGISTER_DECLARE (rtpgstdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpgstpay);
GST_ELEMENT_REGISTER_DECLARE (rtpilbcpay);
GST_ELEMENT_REGISTER_DECLARE (rtpilbcdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpg722depay);
GST_ELEMENT_REGISTER_DECLARE (rtpg722pay);
GST_ELEMENT_REGISTER_DECLARE (rtpg723depay);
GST_ELEMENT_REGISTER_DECLARE (rtpg723pay);
GST_ELEMENT_REGISTER_DECLARE (rtpg726depay);
GST_ELEMENT_REGISTER_DECLARE (rtpg726pay);
GST_ELEMENT_REGISTER_DECLARE (rtpg729depay);
GST_ELEMENT_REGISTER_DECLARE (rtpg729pay);
GST_ELEMENT_REGISTER_DECLARE (rtpgsmdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpgsmpay);
GST_ELEMENT_REGISTER_DECLARE (rtpamrdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpamrpay);
GST_ELEMENT_REGISTER_DECLARE (rtppcmadepay);
GST_ELEMENT_REGISTER_DECLARE (rtppcmudepay);
GST_ELEMENT_REGISTER_DECLARE (rtppcmupay);
GST_ELEMENT_REGISTER_DECLARE (rtppcmapay);
GST_ELEMENT_REGISTER_DECLARE (rtpmpadepay);
GST_ELEMENT_REGISTER_DECLARE (rtpmpapay);
GST_ELEMENT_REGISTER_DECLARE (rtpmparobustdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpmpvdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpmpvpay);
GST_ELEMENT_REGISTER_DECLARE (rtpopusdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpopuspay);
GST_ELEMENT_REGISTER_DECLARE (rtph261pay);
GST_ELEMENT_REGISTER_DECLARE (rtph261depay);
GST_ELEMENT_REGISTER_DECLARE (rtph263ppay);
GST_ELEMENT_REGISTER_DECLARE (rtph263pdepay);
GST_ELEMENT_REGISTER_DECLARE (rtph263depay);
GST_ELEMENT_REGISTER_DECLARE (rtph263pay);
GST_ELEMENT_REGISTER_DECLARE (rtph264depay);
GST_ELEMENT_REGISTER_DECLARE (rtph264pay);
GST_ELEMENT_REGISTER_DECLARE (rtph265depay);
GST_ELEMENT_REGISTER_DECLARE (rtph265pay);
GST_ELEMENT_REGISTER_DECLARE (rtpj2kdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpj2kpay);
GST_ELEMENT_REGISTER_DECLARE (rtpjpegdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpjpegpay);
GST_ELEMENT_REGISTER_DECLARE (rtpklvdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpklvpay);
GST_ELEMENT_REGISTER_DECLARE (rtpL8pay);
GST_ELEMENT_REGISTER_DECLARE (rtpL8depay);
GST_ELEMENT_REGISTER_DECLARE (rtpL16pay);
GST_ELEMENT_REGISTER_DECLARE (rtpL16depay);
GST_ELEMENT_REGISTER_DECLARE (rtpL24pay);
GST_ELEMENT_REGISTER_DECLARE (rtpL24depay);
GST_ELEMENT_REGISTER_DECLARE (rtpldacpay);
GST_ELEMENT_REGISTER_DECLARE (asteriskh263);
GST_ELEMENT_REGISTER_DECLARE (rtpmp1sdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpmp2tdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpmp2tpay);
GST_ELEMENT_REGISTER_DECLARE (rtpmp4vpay);
GST_ELEMENT_REGISTER_DECLARE (rtpmp4vdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpmp4apay);
GST_ELEMENT_REGISTER_DECLARE (rtpmp4adepay);
GST_ELEMENT_REGISTER_DECLARE (rtpmp4gdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpmp4gpay);
GST_ELEMENT_REGISTER_DECLARE (rtpqcelpdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpqdm2depay);
GST_ELEMENT_REGISTER_DECLARE (rtpsbcdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpsbcpay);
GST_ELEMENT_REGISTER_DECLARE (rtpsirenpay);
GST_ELEMENT_REGISTER_DECLARE (rtpsirendepay);
GST_ELEMENT_REGISTER_DECLARE (rtpspeexpay);
GST_ELEMENT_REGISTER_DECLARE (rtpspeexdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpsv3vdepay);
GST_ELEMENT_REGISTER_DECLARE (rtptheoradepay);
GST_ELEMENT_REGISTER_DECLARE (rtptheorapay);
GST_ELEMENT_REGISTER_DECLARE (rtpvorbisdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpvorbispay);
GST_ELEMENT_REGISTER_DECLARE (rtpvp8depay);
GST_ELEMENT_REGISTER_DECLARE (rtpvp8pay);
GST_ELEMENT_REGISTER_DECLARE (rtpvp9depay);
GST_ELEMENT_REGISTER_DECLARE (rtpvp9pay);
GST_ELEMENT_REGISTER_DECLARE (rtpvrawdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpvrawpay);
GST_ELEMENT_REGISTER_DECLARE (rtpstreampay);
GST_ELEMENT_REGISTER_DECLARE (rtpstreamdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpisacpay);
GST_ELEMENT_REGISTER_DECLARE (rtpisacdepay);
GST_ELEMENT_REGISTER_DECLARE (rtpredenc);
GST_ELEMENT_REGISTER_DECLARE (rtpreddec);
GST_ELEMENT_REGISTER_DECLARE (rtpulpfecdec);
GST_ELEMENT_REGISTER_DECLARE (rtpulpfecenc);
GST_ELEMENT_REGISTER_DECLARE (rtpstorage);
G_END_DECLS
#endif /* __GST_RTP_ELEMENTS_H__ */

View file

@ -26,6 +26,7 @@
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpg722depay.h"
#include "gstrtpchannels.h"
#include "gstrtputils.h"
@ -63,6 +64,8 @@ static GstStaticPadTemplate gst_rtp_g722_depay_sink_template =
#define gst_rtp_g722_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpG722Depay, gst_rtp_g722_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg722depay, "rtpg722depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G722_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_g722_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
@ -253,10 +256,3 @@ empty_packet:
return NULL;
}
}
gboolean
gst_rtp_g722_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpg722depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G722_DEPAY);
}

View file

@ -57,8 +57,6 @@ struct _GstRtpG722DepayClass
GType gst_rtp_g722_depay_get_type (void);
gboolean gst_rtp_g722_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_G722_DEPAY_H__ */

View file

@ -26,6 +26,7 @@
#include <gst/audio/audio.h>
#include <gst/rtp/gstrtpbuffer.h>
#include "gstrtpelements.h"
#include "gstrtpg722pay.h"
#include "gstrtpchannels.h"
@ -64,6 +65,8 @@ static GstCaps *gst_rtp_g722_pay_getcaps (GstRTPBasePayload * rtppayload,
#define gst_rtp_g722_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpG722Pay, gst_rtp_g722_pay,
GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg722pay, "rtpg722pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G722_PAY, rtp_element_init (plugin));
static void
gst_rtp_g722_pay_class_init (GstRtpG722PayClass * klass)
@ -227,10 +230,3 @@ gst_rtp_g722_pay_getcaps (GstRTPBasePayload * rtppayload, GstPad * pad,
return caps;
}
gboolean
gst_rtp_g722_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpg722pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G722_PAY);
}

View file

@ -54,8 +54,6 @@ struct _GstRtpG722PayClass
GType gst_rtp_g722_pay_get_type (void);
gboolean gst_rtp_g722_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_G722_PAY_H__ */

View file

@ -26,6 +26,7 @@
#include <stdlib.h>
#include <string.h>
#include "gstrtpelements.h"
#include "gstrtpg723depay.h"
GST_DEBUG_CATEGORY_STATIC (rtpg723depay_debug);
@ -80,6 +81,8 @@ static GstBuffer *gst_rtp_g723_depay_process (GstRTPBaseDepayload * depayload,
#define gst_rtp_g723_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpG723Depay, gst_rtp_g723_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg723depay, "rtpg723depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G723_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_g723_depay_class_init (GstRtpG723DepayClass * klass)
@ -214,10 +217,3 @@ bad_packet:
return NULL;
}
}
gboolean
gst_rtp_g723_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpg723depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G723_DEPAY);
}

View file

@ -52,8 +52,6 @@ struct _GstRtpG723DepayClass
GType gst_rtp_g723_depay_get_type (void);
gboolean gst_rtp_g723_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_G723_DEPAY_H__ */

View file

@ -28,6 +28,7 @@
#include <gst/base/gstadapter.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpg723pay.h"
#include "gstrtputils.h"
@ -68,6 +69,8 @@ static GstStateChangeReturn gst_rtp_g723_pay_change_state (GstElement * element,
#define gst_rtp_g723_pay_parent_class parent_class
G_DEFINE_TYPE (GstRTPG723Pay, gst_rtp_g723_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg723pay, "rtpg723pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G723_PAY, rtp_element_init (plugin));
static void
gst_rtp_g723_pay_class_init (GstRTPG723PayClass * klass)
@ -298,11 +301,3 @@ gst_rtp_g723_pay_change_state (GstElement * element, GstStateChange transition)
return ret;
}
/*Plugin init functions*/
gboolean
gst_rtp_g723_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpg723pay", GST_RANK_SECONDARY,
gst_rtp_g723_pay_get_type ());
}

View file

@ -57,8 +57,6 @@ struct _GstRTPG723PayClass
GType gst_rtp_g723_pay_get_type (void);
gboolean gst_rtp_g723_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_G723_PAY_H__ */

View file

@ -30,6 +30,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpg726depay.h"
#include "gstrtputils.h"
@ -91,6 +92,8 @@ static gboolean gst_rtp_g726_depay_setcaps (GstRTPBaseDepayload * depayload,
#define gst_rtp_g726_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpG726Depay, gst_rtp_g726_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg726depay, "rtpg726depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G726_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_g726_depay_class_init (GstRtpG726DepayClass * klass)
@ -384,10 +387,3 @@ gst_rtp_g726_depay_get_property (GObject * object, guint prop_id,
break;
}
}
gboolean
gst_rtp_g726_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpg726depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G726_DEPAY);
}

View file

@ -52,7 +52,5 @@ struct _GstRtpG726DepayClass
GType gst_rtp_g726_depay_get_type (void);
gboolean gst_rtp_g726_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_G726_DEPAY_H__ */

View file

@ -28,6 +28,7 @@
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
#include "gstrtpelements.h"
#include "gstrtpg726pay.h"
GST_DEBUG_CATEGORY_STATIC (rtpg726pay_debug);
@ -77,6 +78,8 @@ static GstFlowReturn gst_rtp_g726_pay_handle_buffer (GstRTPBasePayload *
#define gst_rtp_g726_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpG726Pay, gst_rtp_g726_pay,
GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg726pay, "rtpg726pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G726_PAY, rtp_element_init (plugin));
static void
gst_rtp_g726_pay_class_init (GstRtpG726PayClass * klass)
@ -413,10 +416,3 @@ gst_rtp_g726_pay_get_property (GObject * object, guint prop_id,
break;
}
}
gboolean
gst_rtp_g726_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpg726pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G726_PAY);
}

View file

@ -49,7 +49,5 @@ struct _GstRtpG726PayClass
GType gst_rtp_g726_pay_get_type (void);
gboolean gst_rtp_g726_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_G726_PAY_H__ */

View file

@ -25,6 +25,7 @@
#include <stdlib.h>
#include <string.h>
#include "gstrtpelements.h"
#include "gstrtpg729depay.h"
#include "gstrtputils.h"
@ -80,6 +81,8 @@ static GstBuffer *gst_rtp_g729_depay_process (GstRTPBaseDepayload * depayload,
#define gst_rtp_g729_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpG729Depay, gst_rtp_g729_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg729depay, "rtpg729depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G729_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_g729_depay_class_init (GstRtpG729DepayClass * klass)
@ -216,10 +219,3 @@ bad_packet:
return NULL;
}
}
gboolean
gst_rtp_g729_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpg729depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G729_DEPAY);
}

View file

@ -54,8 +54,6 @@ struct _GstRtpG729DepayClass
GType gst_rtp_g729_depay_get_type (void);
gboolean gst_rtp_g729_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_G729_DEPAY_H__ */

View file

@ -34,6 +34,7 @@
#include <gst/base/gstadapter.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpg729pay.h"
#include "gstrtputils.h"
@ -78,6 +79,8 @@ static GstStaticPadTemplate gst_rtp_g729_pay_src_template =
#define gst_rtp_g729_pay_parent_class parent_class
G_DEFINE_TYPE (GstRTPG729Pay, gst_rtp_g729_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg729pay, "rtpg729pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G729_PAY, rtp_element_init (plugin));
static void
gst_rtp_g729_pay_finalize (GObject * object)
@ -389,10 +392,3 @@ gst_rtp_g729_pay_change_state (GstElement * element, GstStateChange transition)
return ret;
}
gboolean
gst_rtp_g729_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpg729pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_G729_PAY);
}

View file

@ -59,8 +59,6 @@ struct _GstRTPG729PayClass
GType gst_rtp_g729_pay_get_type (void);
gboolean gst_rtp_g729_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_G729_PAY_H__ */

View file

@ -25,6 +25,7 @@
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpgsmdepay.h"
#include "gstrtputils.h"
@ -65,6 +66,8 @@ static gboolean gst_rtp_gsm_depay_setcaps (GstRTPBaseDepayload * _depayload,
#define gst_rtp_gsm_depay_parent_class parent_class
G_DEFINE_TYPE (GstRTPGSMDepay, gst_rtp_gsm_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpgsmdepay, "rtpgsmdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_GSM_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_gsm_depay_class_init (GstRTPGSMDepayClass * klass)
@ -143,10 +146,3 @@ gst_rtp_gsm_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
return outbuf;
}
gboolean
gst_rtp_gsm_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpgsmdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_GSM_DEPAY);
}

View file

@ -51,8 +51,6 @@ struct _GstRTPGSMDepayClass
GType gst_rtp_gsm_depay_get_type (void);
gboolean gst_rtp_gsm_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_GSM_DEPAY_H__ */

View file

@ -27,6 +27,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpgsmpay.h"
#include "gstrtputils.h"
@ -61,6 +62,8 @@ static GstFlowReturn gst_rtp_gsm_pay_handle_buffer (GstRTPBasePayload * payload,
#define gst_rtp_gsm_pay_parent_class parent_class
G_DEFINE_TYPE (GstRTPGSMPay, gst_rtp_gsm_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpgsmpay, "rtpgsmpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_GSM_PAY, rtp_element_init (plugin));
static void
gst_rtp_gsm_pay_class_init (GstRTPGSMPayClass * klass)
@ -172,10 +175,3 @@ too_big:
return GST_FLOW_ERROR;
}
}
gboolean
gst_rtp_gsm_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpgsmpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_GSM_PAY);
}

View file

@ -52,7 +52,6 @@ struct _GstRTPGSMPayClass
GType gst_rtp_gsm_pay_get_type (void);
gboolean gst_rtp_gsm_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS

View file

@ -24,6 +24,7 @@
#include <string.h>
#include <stdlib.h>
#include "gstrtpelements.h"
#include "gstrtpgstdepay.h"
#include "gstrtputils.h"
@ -49,6 +50,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
#define gst_rtp_gst_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpGSTDepay, gst_rtp_gst_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpgstdepay, "rtpgstdepay",
GST_RANK_MARGINAL, GST_TYPE_RTP_GST_DEPAY, rtp_element_init (plugin));
static void gst_rtp_gst_depay_finalize (GObject * object);
@ -602,11 +605,3 @@ gst_rtp_gst_depay_change_state (GstElement * element, GstStateChange transition)
}
return ret;
}
gboolean
gst_rtp_gst_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpgstdepay",
GST_RANK_MARGINAL, GST_TYPE_RTP_GST_DEPAY);
}

View file

@ -59,8 +59,6 @@ struct _GstRtpGSTDepayClass
GType gst_rtp_gst_depay_get_type (void);
gboolean gst_rtp_gst_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_GST_DEPAY_H__ */

View file

@ -26,6 +26,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
#include "gstrtpelements.h"
#include "gstrtpgstpay.h"
#include "gstrtputils.h"
@ -102,6 +103,8 @@ static gboolean gst_rtp_gst_pay_src_event (GstRTPBasePayload * payload,
#define gst_rtp_gst_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpGSTPay, gst_rtp_gst_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpgstpay, "rtpgstpay", GST_RANK_NONE,
GST_TYPE_RTP_GST_PAY, rtp_element_init (plugin));
static void
gst_rtp_gst_pay_class_init (GstRtpGSTPayClass * klass)
@ -694,10 +697,3 @@ gst_rtp_gst_pay_handle_buffer (GstRTPBasePayload * basepayload,
return ret;
}
gboolean
gst_rtp_gst_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpgstpay",
GST_RANK_NONE, GST_TYPE_RTP_GST_PAY);
}

View file

@ -66,8 +66,6 @@ struct _GstRtpGSTPayClass
GType gst_rtp_gst_pay_get_type (void);
gboolean gst_rtp_gst_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_GST_PAY_H__ */

View file

@ -46,6 +46,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
#include "gstrtpelements.h"
#include "gstrtph261depay.h"
#include "gstrtph261pay.h" /* GstRtpH261PayHeader */
#include "gstrtputils.h"
@ -75,10 +76,11 @@ static GstStaticPadTemplate gst_rtp_h261_depay_sink_template =
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
"clock-rate = (int) 90000, " "encoding-name = (string) \"H261\"")
);
#define parent_class gst_rtp_h261_depay_parent_class
G_DEFINE_TYPE (GstRtpH261Depay, gst_rtp_h261_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
#define parent_class gst_rtp_h261_depay_parent_class
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph261depay, "rtph261depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H261_DEPAY, rtp_element_init (plugin));
static GstBuffer *
gst_rtp_h261_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
@ -285,10 +287,3 @@ gst_rtp_h261_depay_init (GstRtpH261Depay * depay)
depay->adapter = gst_adapter_new ();
depay->leftover = NO_LEFTOVER;
}
gboolean
gst_rtp_h261_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtph261depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H261_DEPAY);
}

View file

@ -54,7 +54,5 @@ struct _GstRtpH261DepayClass
GType gst_rtp_h261_depay_get_type (void);
gboolean gst_rtp_h261_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_H261_DEPAY_H__ */

View file

@ -48,6 +48,7 @@
# include "config.h"
#endif
#include "gstrtpelements.h"
#include "gstrtph261pay.h"
#include "gstrtputils.h"
#include <gst/rtp/gstrtpbuffer.h>
@ -82,8 +83,10 @@ static GstStaticPadTemplate gst_rtp_h261_pay_src_template =
"clock-rate = (int) 90000, " "encoding-name = (string) \"H261\"")
);
G_DEFINE_TYPE (GstRtpH261Pay, gst_rtp_h261_pay, GST_TYPE_RTP_BASE_PAYLOAD);
#define parent_class gst_rtp_h261_pay_parent_class
G_DEFINE_TYPE (GstRtpH261Pay, gst_rtp_h261_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph261pay, "rtph261pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H261_PAY, rtp_element_init (plugin));
typedef struct
{
@ -1063,10 +1066,3 @@ gst_rtp_h261_pay_class_init (GstRtpH261PayClass * klass)
GST_DEBUG_CATEGORY_INIT (rtph261pay_debug, "rtph261pay", 0,
"H261 RTP Payloader");
}
gboolean
gst_rtp_h261_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtph261pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H261_PAY);
}

View file

@ -94,7 +94,5 @@ typedef struct _GstRtpH261PayHeader
GType gst_rtp_h261_pay_get_type (void);
gboolean gst_rtp_h261_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_H261_PAY_H__ */

View file

@ -31,6 +31,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
#include "gstrtpelements.h"
#include "gstrtph263depay.h"
#include "gstrtputils.h"
@ -72,6 +73,8 @@ static GstStaticPadTemplate gst_rtp_h263_depay_sink_template =
#define gst_rtp_h263_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpH263Depay, gst_rtp_h263_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph263depay, "rtph263depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H263_DEPAY, rtp_element_init (plugin));
static void gst_rtp_h263_depay_finalize (GObject * object);
@ -438,10 +441,3 @@ gst_rtp_h263_depay_change_state (GstElement * element,
}
return ret;
}
gboolean
gst_rtp_h263_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtph263depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H263_DEPAY);
}

View file

@ -58,8 +58,6 @@ struct _GstRtpH263DepayClass
GType gst_rtp_h263_depay_get_type (void);
gboolean gst_rtp_h263_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_H263_DEPAY_H__ */

View file

@ -29,6 +29,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
#include "gstrtpelements.h"
#include "gstrtph263pay.h"
#include "gstrtputils.h"
@ -399,6 +400,8 @@ static void gst_rtp_h263_pay_package_destroy (GstRtpH263PayPackage * pack);
#define gst_rtp_h263_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpH263Pay, gst_rtp_h263_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph263pay, "rtph263pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H263_PAY, rtp_element_init (plugin));
static void
gst_rtp_h263_pay_class_init (GstRtpH263PayClass * klass)
@ -1865,10 +1868,3 @@ gst_rtp_h263_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer)
return ret;
}
gboolean
gst_rtp_h263_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtph263pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H263_PAY);
}

View file

@ -409,7 +409,5 @@ struct _GstRtpH263PayPackage
GType gst_rtp_h263_pay_get_type (void);
gboolean gst_rtp_h263_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_H263_PAY_H__ */

View file

@ -25,6 +25,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
#include "gstrtpelements.h"
#include "gstrtph263pdepay.h"
#include "gstrtputils.h"
@ -84,6 +85,8 @@ static GstStaticPadTemplate gst_rtp_h263p_depay_sink_template =
#define gst_rtp_h263p_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpH263PDepay, gst_rtp_h263p_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph263pdepay, "rtph263pdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H263P_DEPAY, rtp_element_init (plugin));
static void gst_rtp_h263p_depay_finalize (GObject * object);
@ -394,10 +397,3 @@ gst_rtp_h263p_depay_change_state (GstElement * element,
}
return ret;
}
gboolean
gst_rtp_h263p_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtph263pdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H263P_DEPAY);
}

View file

@ -55,8 +55,6 @@ struct _GstRtpH263PDepayClass
GType gst_rtp_h263p_depay_get_type (void);
gboolean gst_rtp_h263p_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_H263P_DEPAY_H__ */

View file

@ -28,6 +28,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
#include "gstrtpelements.h"
#include "gstrtph263ppay.h"
#include "gstrtputils.h"
@ -112,6 +113,8 @@ static GstFlowReturn gst_rtp_h263p_pay_handle_buffer (GstRTPBasePayload *
#define gst_rtp_h263p_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpH263PPay, gst_rtp_h263p_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph263ppay, "rtph263ppay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H263P_PAY, rtp_element_init (plugin));
static void
gst_rtp_h263p_pay_class_init (GstRtpH263PPayClass * klass)
@ -809,10 +812,3 @@ gst_rtp_h263p_pay_handle_buffer (GstRTPBasePayload * payload,
return ret;
}
gboolean
gst_rtp_h263p_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtph263ppay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H263P_PAY);
}

View file

@ -63,8 +63,6 @@ struct _GstRtpH263PPayClass
GType gst_rtp_h263p_pay_get_type (void);
gboolean gst_rtp_h263p_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_H263P_PAY_H__ */

View file

@ -28,6 +28,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/pbutils/pbutils.h>
#include <gst/video/video.h>
#include "gstrtpelements.h"
#include "gstrtph264depay.h"
#include "gstrtputils.h"
@ -91,6 +92,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
#define gst_rtp_h264_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpH264Depay, gst_rtp_h264_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph264depay, "rtph264depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H264_DEPAY, rtp_element_init (plugin));
static void gst_rtp_h264_depay_finalize (GObject * object);
@ -1506,13 +1509,3 @@ gst_rtp_h264_depay_change_state (GstElement * element,
}
return ret;
}
gboolean
gst_rtp_h264_depay_plugin_init (GstPlugin * plugin)
{
GST_DEBUG_CATEGORY_INIT (rtph264depay_debug, "rtph264depay", 0,
"H264 Video RTP Depayloader");
return gst_element_register (plugin, "rtph264depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H264_DEPAY);
}

View file

@ -84,8 +84,6 @@ struct _GstRtpH264DepayClass
GType gst_rtp_h264_depay_get_type (void);
gboolean gst_rtp_h264_depay_plugin_init (GstPlugin * plugin);
gboolean gst_rtp_h264_add_sps_pps (GstElement * rtph264, GPtrArray * sps,
GPtrArray * pps, GstBuffer * nal);

View file

@ -31,6 +31,7 @@
/* Included to not duplicate gst_rtp_h264_add_sps_pps () */
#include "gstrtph264depay.h"
#include "gstrtpelements.h"
#include "gstrtph264pay.h"
#include "gstrtputils.h"
#include "gstbuffermemory.h"
@ -133,6 +134,8 @@ static void gst_rtp_h264_pay_reset_bundle (GstRtpH264Pay * rtph264pay);
#define gst_rtp_h264_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpH264Pay, gst_rtp_h264_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph264pay, "rtph264pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H264_PAY, rtp_element_init (plugin));
static void
gst_rtp_h264_pay_class_init (GstRtpH264PayClass * klass)
@ -1809,10 +1812,3 @@ gst_rtp_h264_pay_get_property (GObject * object, guint prop_id,
break;
}
}
gboolean
gst_rtp_h264_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtph264pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H264_PAY);
}

View file

@ -104,8 +104,6 @@ struct _GstRtpH264PayClass
GType gst_rtp_h264_pay_get_type (void);
gboolean gst_rtp_h264_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_H264_PAY_H__ */

View file

@ -28,6 +28,7 @@
#include <gst/base/gstbitreader.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
#include "gstrtpelements.h"
#include "gstrtph265depay.h"
#include "gstrtputils.h"
@ -97,6 +98,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
#define gst_rtp_h265_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpH265Depay, gst_rtp_h265_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph265depay, "rtph265depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H265_DEPAY, rtp_element_init (plugin));
static void gst_rtp_h265_depay_finalize (GObject * object);
@ -460,7 +463,6 @@ gst_rtp_h265_set_src_caps (GstRtpH265Depay * rtph265depay)
gst_rtp_read_golomb (&br, &chroma_format_idc); /* chroma_format_idc */
if (chroma_format_idc == 3)
gst_bit_reader_get_bits_uint8 (&br, &tmp8, 1); /* separate_colour_plane_flag */
gst_rtp_read_golomb (&br, &tmp); /* pic_width_in_luma_samples */
@ -1661,13 +1663,3 @@ gst_rtp_h265_depay_change_state (GstElement * element,
}
return ret;
}
gboolean
gst_rtp_h265_depay_plugin_init (GstPlugin * plugin)
{
GST_DEBUG_CATEGORY_INIT (rtph265depay_debug, "rtph265depay", 0,
"H265 Video RTP Depayloader");
return gst_element_register (plugin, "rtph265depay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H265_DEPAY);
}

View file

@ -108,8 +108,6 @@ typedef struct
GType gst_rtp_h265_depay_get_type (void);
gboolean gst_rtp_h265_depay_plugin_init (GstPlugin * plugin);
gboolean gst_rtp_h265_add_vps_sps_pps (GstElement * rtph265, GPtrArray * vps,
GPtrArray * sps, GPtrArray * pps, GstBuffer * nal);

View file

@ -32,6 +32,7 @@
/* Included to not duplicate gst_rtp_h265_add_vps_sps_pps () */
#include "gstrtph265depay.h"
#include "gstrtpelements.h"
#include "gstrtph265pay.h"
#include "gstrtputils.h"
#include "gstbuffermemory.h"
@ -166,6 +167,8 @@ static void gst_rtp_h265_pay_reset_bundle (GstRtpH265Pay * rtph265pay);
#define gst_rtp_h265_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpH265Pay, gst_rtp_h265_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtph265pay, "rtph265pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H265_PAY, rtp_element_init (plugin));
static void
gst_rtp_h265_pay_class_init (GstRtpH265PayClass * klass)
@ -1821,10 +1824,3 @@ gst_rtp_h265_pay_get_property (GObject * object, guint prop_id,
break;
}
}
gboolean
gst_rtp_h265_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtph265pay",
GST_RANK_SECONDARY, GST_TYPE_RTP_H265_PAY);
}

View file

@ -87,7 +87,5 @@ struct _GstRtpH265PayClass
GType gst_rtp_h265_pay_get_type (void);
gboolean gst_rtp_h265_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_H265_PAY_H__ */

View file

@ -25,6 +25,7 @@
#include <stdlib.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpilbcdepay.h"
#include "gstrtputils.h"
@ -74,6 +75,8 @@ static gboolean gst_rtp_ilbc_depay_setcaps (GstRTPBaseDepayload * depayload,
#define gst_rtp_ilbc_depay_parent_class parent_class
G_DEFINE_TYPE (GstRTPiLBCDepay, gst_rtp_ilbc_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpilbcdepay, "rtpilbcdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_ILBC_DEPAY, rtp_element_init (plugin));
#define GST_TYPE_ILBC_MODE (gst_ilbc_mode_get_type())
static GType
@ -230,10 +233,3 @@ gst_ilbc_depay_get_property (GObject * object,
break;
}
}
gboolean
gst_rtp_ilbc_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpilbcdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_ILBC_DEPAY);
}

View file

@ -58,8 +58,6 @@ struct _GstRTPiLBCDepayClass
GType gst_rtp_ilbc_depay_get_type (void);
gboolean gst_rtp_ilbc_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_ILBC_DEPAY_H__ */

View file

@ -23,6 +23,7 @@
#include <stdlib.h>
#include <gst/rtp/gstrtpbuffer.h>
#include "gstrtpelements.h"
#include "gstrtpilbcpay.h"
GST_DEBUG_CATEGORY_STATIC (rtpilbcpay_debug);
@ -56,6 +57,8 @@ static gboolean gst_rtp_ilbc_pay_sink_setcaps (GstRTPBasePayload * payload,
#define gst_rtp_ilbc_pay_parent_class parent_class
G_DEFINE_TYPE (GstRTPILBCPay, gst_rtp_ilbc_pay,
GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpilbcpay, "rtpilbcpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_ILBC_PAY, rtp_element_init (plugin));
static void
gst_rtp_ilbc_pay_class_init (GstRTPILBCPayClass * klass)
@ -219,10 +222,3 @@ gst_rtp_ilbc_pay_sink_getcaps (GstRTPBasePayload * rtppayload, GstPad * pad,
return caps;
}
gboolean
gst_rtp_ilbc_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpilbcpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_ILBC_PAY);
}

View file

@ -53,8 +53,6 @@ struct _GstRTPILBCPayClass
GType gst_rtp_ilbc_pay_get_type (void);
gboolean gst_rtp_ilbc_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_ILBC_PAY_H__ */

View file

@ -36,6 +36,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
#include "gstrtpelements.h"
#include "gstrtpisacdepay.h"
#include "gstrtputils.h"
@ -72,6 +73,8 @@ struct _GstRtpIsacDepay
#define gst_rtp_isac_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpIsacDepay, gst_rtp_isac_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpisacdepay, "rtpisacdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_ISAC_DEPAY, rtp_element_init (plugin));
static gboolean
gst_rtp_isac_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
@ -142,10 +145,3 @@ static void
gst_rtp_isac_depay_init (GstRtpIsacDepay * rtpisacdepay)
{
}
gboolean
gst_rtp_isac_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpisacdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_ISAC_DEPAY);
}

View file

@ -27,7 +27,5 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (GstRtpIsacDepay, gst_rtp_isac_depay, GST, RTP_ISAC_DEPAY,
GstRTPBaseDepayload);
gboolean gst_rtp_isac_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_ISAC_DEPAY_H__ */

View file

@ -33,6 +33,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include "gstrtpelements.h"
#include "gstrtpisacpay.h"
#include "gstrtputils.h"
@ -67,6 +68,8 @@ struct _GstRtpIsacPay
#define gst_rtp_isac_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpIsacPay, gst_rtp_isac_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpisacpay, "rtpisacpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_ISAC_PAY, rtp_element_init (plugin));
static GstCaps *
gst_rtp_isac_pay_getcaps (GstRTPBasePayload * payload, GstPad * pad,
@ -178,10 +181,3 @@ static void
gst_rtp_isac_pay_init (GstRtpIsacPay * rtpisacpay)
{
}
gboolean
gst_rtp_isac_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpisacpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_ISAC_PAY);
}

View file

@ -26,8 +26,6 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE(GstRtpIsacPay, gst_rtp_isac_pay, GST, RTP_ISAC_PAY, GstRTPBasePayload);
gboolean gst_rtp_isac_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_ISAC_PAY_H__ */

View file

@ -37,6 +37,7 @@
#include <gst/video/video.h>
#include <string.h>
#include "gstrtpelements.h"
#include "gstrtpj2kcommon.h"
#include "gstrtpj2kdepay.h"
#include "gstrtputils.h"
@ -74,6 +75,8 @@ enum
#define gst_rtp_j2k_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpJ2KDepay, gst_rtp_j2k_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpj2kdepay, "rtpj2kdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_J2K_DEPAY, rtp_element_init (plugin));
static void gst_rtp_j2k_depay_finalize (GObject * object);
@ -659,10 +662,3 @@ gst_rtp_j2k_depay_change_state (GstElement * element, GstStateChange transition)
}
return ret;
}
gboolean
gst_rtp_j2k_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpj2kdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_J2K_DEPAY);
}

View file

@ -66,7 +66,6 @@ struct _GstRtpJ2KDepayClass
GType gst_rtp_j2k_depay_get_type (void);
gboolean gst_rtp_j2k_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_J2K_DEPAY_H__ */

View file

@ -40,6 +40,7 @@
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
#include "gstrtpelements.h"
#include "gstrtpj2kcommon.h"
#include "gstrtpj2kpay.h"
#include "gstrtputils.h"
@ -97,6 +98,8 @@ static GstFlowReturn gst_rtp_j2k_pay_handle_buffer (GstRTPBasePayload * pad,
#define gst_rtp_j2k_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpJ2KPay, gst_rtp_j2k_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpj2kpay, "rtpj2kpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_J2K_PAY, rtp_element_init (plugin));
static void
gst_rtp_j2k_pay_class_init (GstRtpJ2KPayClass * klass)
@ -562,10 +565,3 @@ gst_rtp_j2k_pay_get_property (GObject * object, guint prop_id,
break;
}
}
gboolean
gst_rtp_j2k_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpj2kpay", GST_RANK_SECONDARY,
GST_TYPE_RTP_J2K_PAY);
}

View file

@ -52,7 +52,5 @@ struct _GstRtpJ2KPayClass
GType gst_rtp_j2k_pay_get_type (void);
gboolean gst_rtp_j2k_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_J2K_PAY_H__ */

View file

@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "gstrtpelements.h"
#include "gstrtpjpegdepay.h"
#include "gstrtputils.h"
@ -70,6 +71,8 @@ static GstStaticPadTemplate gst_rtp_jpeg_depay_sink_template =
#define gst_rtp_jpeg_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpJPEGDepay, gst_rtp_jpeg_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpjpegdepay, "rtpjpegdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_JPEG_DEPAY, rtp_element_init (plugin));
static void gst_rtp_jpeg_depay_finalize (GObject * object);
@ -790,11 +793,3 @@ gst_rtp_jpeg_depay_change_state (GstElement * element,
}
return ret;
}
gboolean
gst_rtp_jpeg_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpjpegdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_JPEG_DEPAY);
}

View file

@ -63,7 +63,6 @@ struct _GstRtpJPEGDepayClass
GType gst_rtp_jpeg_depay_get_type (void);
gboolean gst_rtp_jpeg_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS

View file

@ -41,6 +41,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
#include "gstrtpelements.h"
#include "gstrtpjpegpay.h"
#include "gstrtputils.h"
#include "gstbuffermemory.h"
@ -248,6 +249,8 @@ static GstFlowReturn gst_rtp_jpeg_pay_handle_buffer (GstRTPBasePayload * pad,
#define gst_rtp_jpeg_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpJPEGPay, gst_rtp_jpeg_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpjpegpay, "rtpjpegpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_JPEG_PAY, rtp_element_init (plugin));
static void
gst_rtp_jpeg_pay_class_init (GstRtpJPEGPayClass * klass)
@ -1047,10 +1050,3 @@ gst_rtp_jpeg_pay_get_property (GObject * object, guint prop_id,
break;
}
}
gboolean
gst_rtp_jpeg_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpjpegpay", GST_RANK_SECONDARY,
GST_TYPE_RTP_JPEG_PAY);
}

View file

@ -57,7 +57,5 @@ struct _GstRtpJPEGPayClass
GType gst_rtp_jpeg_pay_get_type (void);
gboolean gst_rtp_jpeg_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_JPEG_PAY_H__ */

View file

@ -37,6 +37,7 @@
#include "config.h"
#endif
#include "gstrtpelements.h"
#include "gstrtpklvdepay.h"
#include <string.h>
@ -59,6 +60,8 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
#define gst_rtp_klv_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpKlvDepay, gst_rtp_klv_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpklvdepay, "rtpklvdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_KLV_DEPAY, rtp_element_init (plugin));
static void gst_rtp_klv_depay_finalize (GObject * object);
@ -388,10 +391,3 @@ gst_rtp_klv_depay_change_state (GstElement * element, GstStateChange transition)
}
return ret;
}
gboolean
gst_rtp_klv_depay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpklvdepay",
GST_RANK_SECONDARY, GST_TYPE_RTP_KLV_DEPAY);
}

View file

@ -58,8 +58,6 @@ struct _GstRtpKlvDepayClass
G_GNUC_INTERNAL GType gst_rtp_klv_depay_get_type (void);
G_GNUC_INTERNAL gboolean gst_rtp_klv_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#endif /* __GST_RTP_KLV_DEPAY_H__ */

View file

@ -37,6 +37,7 @@
#include "config.h"
#endif
#include "gstrtpelements.h"
#include "gstrtpklvpay.h"
#include "gstrtputils.h"
@ -60,6 +61,8 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
#define gst_rtp_klv_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpKlvPay, gst_rtp_klv_pay, GST_TYPE_RTP_BASE_PAYLOAD);
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpklvpay, "rtpklvpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_KLV_PAY, rtp_element_init (plugin));
static gboolean gst_rtp_klv_pay_setcaps (GstRTPBasePayload * pay,
GstCaps * caps);
@ -195,10 +198,3 @@ bad_input:
goto done;
}
}
gboolean
gst_rtp_klv_pay_plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "rtpklvpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_KLV_PAY);
}

Some files were not shown because too many files have changed in this diff Show more