#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstasteriskh263.h"
#define GST_ASTERISKH263_HEADER_LEN 6
#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)
*/
return ret;
}
-
-gboolean
-gst_asteriskh263_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "asteriskh263",
- GST_RANK_NONE, GST_TYPE_ASTERISK_H263);
-}
GType gst_asteriskh263_get_type (void);
-gboolean gst_asteriskh263_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_ASTERISK_H263_H__ */
#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,
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpL16depay.h"
#include "gstrtpchannels.h"
#include "gstrtputils.h"
#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);
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);
-}
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__ */
#include <gst/audio/audio.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpL16pay.h"
#include "gstrtpchannels.h"
#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)
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);
-}
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__ */
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpL24depay.h"
#include "gstrtpchannels.h"
#include "gstrtputils.h"
#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);
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);
-}
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__ */
#include <gst/audio/audio.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpL24pay.h"
#include "gstrtpchannels.h"
#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)
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);
-}
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__ */
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpL8depay.h"
#include "gstrtpchannels.h"
#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,
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);
-}
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__ */
#include <gst/audio/audio.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpL8pay.h"
#include "gstrtpchannels.h"
#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)
{
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);
-}
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__ */
#include <gst/audio/audio.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpac3depay.h"
#include "gstrtputils.h"
);
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);
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpac3pay.h"
#include "gstrtputils.h"
#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)
}
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);
-}
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__ */
#include <stdlib.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpamrdepay.h"
#include "gstrtputils.h"
#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)
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpamrpay.h"
#include "gstrtputils.h"
#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)
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpbvdepay.h"
#include "gstrtputils.h"
#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)
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);
-}
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__ */
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpbvpay.h"
GST_DEBUG_CATEGORY_STATIC (rtpbvpay_debug);
#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)
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpceltdepay.h"
#include "gstrtputils.h"
#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)
{
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpceltpay.h"
#include "gstrtputils.h"
#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)
}
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);
-}
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__ */
#include <gst/gst.h>
#include "gstrtpdvdepay.h"
+
+#include "gstrtpelements.h"
#include "gstrtputils.h"
GST_DEBUG_CATEGORY (rtpdvdepay_debug);
#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)
}
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);
-}
GType gst_rtp_dv_depay_get_type (void);
-gboolean gst_rtp_dv_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GSTRTPDVDEPAY_H__ */
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpdvpay.h"
#include "gstrtputils.h"
#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)
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);
-}
GType gst_rtp_dv_pay_get_type (void);
-gboolean gst_rtp_dv_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GSTRTPDVPAY_H__ */
--- /dev/null
+/* 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);
+ }
+}
--- /dev/null
+/* 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__ */
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpg722depay.h"
#include "gstrtpchannels.h"
#include "gstrtputils.h"
#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);
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);
-}
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__ */
#include <gst/audio/audio.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpg722pay.h"
#include "gstrtpchannels.h"
#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)
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);
-}
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__ */
#include <stdlib.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpg723depay.h"
GST_DEBUG_CATEGORY_STATIC (rtpg723depay_debug);
#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)
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);
-}
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__ */
#include <gst/base/gstadapter.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpg723pay.h"
#include "gstrtputils.h"
#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)
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 ());
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpg726depay.h"
#include "gstrtputils.h"
#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)
break;
}
}
-
-gboolean
-gst_rtp_g726_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpg726depay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_G726_DEPAY);
-}
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__ */
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpg726pay.h"
GST_DEBUG_CATEGORY_STATIC (rtpg726pay_debug);
#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)
break;
}
}
-
-gboolean
-gst_rtp_g726_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpg726pay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_G726_PAY);
-}
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__ */
#include <stdlib.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpg729depay.h"
#include "gstrtputils.h"
#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)
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);
-}
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__ */
#include <gst/base/gstadapter.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpg729pay.h"
#include "gstrtputils.h"
#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)
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);
-}
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__ */
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpgsmdepay.h"
#include "gstrtputils.h"
#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)
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpgsmpay.h"
#include "gstrtputils.h"
#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)
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);
-}
GType gst_rtp_gsm_pay_get_type (void);
-gboolean gst_rtp_gsm_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#include <string.h>
#include <stdlib.h>
+#include "gstrtpelements.h"
#include "gstrtpgstdepay.h"
#include "gstrtputils.h"
#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);
}
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtpgstpay.h"
#include "gstrtputils.h"
#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)
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtph261depay.h"
#include "gstrtph261pay.h" /* GstRtpH261PayHeader */
#include "gstrtputils.h"
"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)
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);
-}
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__ */
# include "config.h"
#endif
+#include "gstrtpelements.h"
#include "gstrtph261pay.h"
#include "gstrtputils.h"
#include <gst/rtp/gstrtpbuffer.h>
"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
{
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtph263depay.h"
#include "gstrtputils.h"
#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);
}
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtph263pay.h"
#include "gstrtputils.h"
#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)
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtph263pdepay.h"
#include "gstrtputils.h"
#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);
}
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtph263ppay.h"
#include "gstrtputils.h"
#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)
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/pbutils/pbutils.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtph264depay.h"
#include "gstrtputils.h"
#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);
}
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);
-}
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);
/* 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"
#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)
break;
}
}
-
-gboolean
-gst_rtp_h264_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtph264pay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_H264_PAY);
-}
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__ */
#include <gst/base/gstbitreader.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtph265depay.h"
#include "gstrtputils.h"
#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);
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 */
}
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);
-}
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);
/* 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"
#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)
break;
}
}
-
-gboolean
-gst_rtp_h265_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtph265pay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_H265_PAY);
-}
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__ */
#include <stdlib.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpilbcdepay.h"
#include "gstrtputils.h"
#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
break;
}
}
-
-gboolean
-gst_rtp_ilbc_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpilbcdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_ILBC_DEPAY);
-}
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__ */
#include <stdlib.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpilbcpay.h"
GST_DEBUG_CATEGORY_STATIC (rtpilbcpay_debug);
#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)
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpisacdepay.h"
#include "gstrtputils.h"
#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)
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);
-}
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__ */
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpisacpay.h"
#include "gstrtputils.h"
#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,
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);
-}
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__ */
#include <gst/video/video.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpj2kcommon.h"
#include "gstrtpj2kdepay.h"
#include "gstrtputils.h"
#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);
}
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);
-}
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__ */
#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"
#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)
break;
}
}
-
-gboolean
-gst_rtp_j2k_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpj2kpay", GST_RANK_SECONDARY,
- GST_TYPE_RTP_J2K_PAY);
-}
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__ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpjpegdepay.h"
#include "gstrtputils.h"
#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);
}
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);
-}
GType gst_rtp_jpeg_depay_get_type (void);
-gboolean gst_rtp_jpeg_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtpjpegpay.h"
#include "gstrtputils.h"
#include "gstbuffermemory.h"
#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)
break;
}
}
-
-gboolean
-gst_rtp_jpeg_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpjpegpay", GST_RANK_SECONDARY,
- GST_TYPE_RTP_JPEG_PAY);
-}
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__ */
#include "config.h"
#endif
+#include "gstrtpelements.h"
#include "gstrtpklvdepay.h"
#include <string.h>
#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);
}
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);
-}
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__ */
#include "config.h"
#endif
+#include "gstrtpelements.h"
#include "gstrtpklvpay.h"
#include "gstrtputils.h"
#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);
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);
-}
G_GNUC_INTERNAL GType gst_rtp_klv_pay_get_type (void);
-G_GNUC_INTERNAL gboolean gst_rtp_klv_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_KLV_PAY_H__ */
#endif
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpldacpay.h"
#include "gstrtputils.h"
#define parent_class gst_rtp_ldac_pay_parent_class
G_DEFINE_TYPE (GstRtpLdacPay, gst_rtp_ldac_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpldacpay, "rtpldacpay", GST_RANK_NONE,
+ GST_TYPE_RTP_LDAC_PAY, rtp_element_init (plugin));
static GstStaticPadTemplate gst_rtp_ldac_pay_sink_factory =
GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
return gst_rtp_base_payload_push (GST_RTP_BASE_PAYLOAD (ldacpay), outbuf);
}
-
-gboolean
-gst_rtp_ldac_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpldacpay", GST_RANK_NONE,
- GST_TYPE_RTP_LDAC_PAY);
-}
#include <gst/rtp/gstrtpbuffer.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpmp1sdepay.h"
#include "gstrtputils.h"
G_DEFINE_TYPE (GstRtpMP1SDepay, gst_rtp_mp1s_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp1sdepay, "rtpmp1sdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MP1S_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_mp1s_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
return outbuf;
}
-
-gboolean
-gst_rtp_mp1s_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmp1sdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MP1S_DEPAY);
-}
GType gst_rtp_mp1s_depay_get_type (void);
-gboolean gst_rtp_mp1s_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MP1S_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpmp2tdepay.h"
#include "gstrtputils.h"
G_DEFINE_TYPE (GstRtpMP2TDepay, gst_rtp_mp2t_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp2tdepay, "rtpmp2tdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MP2T_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_mp2t_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
break;
}
}
-
-gboolean
-gst_rtp_mp2t_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmp2tdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MP2T_DEPAY);
-}
GType gst_rtp_mp2t_depay_get_type (void);
-gboolean gst_rtp_mp2t_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MP2T_DEPAY_H__ */
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpmp2tpay.h"
#include "gstrtputils.h"
#define gst_rtp_mp2t_pay_parent_class parent_class
G_DEFINE_TYPE (GstRTPMP2TPay, gst_rtp_mp2t_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp2tpay, "rtpmp2tpay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MP2T_PAY, rtp_element_init (plugin));
static void
gst_rtp_mp2t_pay_class_init (GstRTPMP2TPayClass * klass)
return ret;
}
-
-gboolean
-gst_rtp_mp2t_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmp2tpay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MP2T_PAY);
-}
GType gst_rtp_mp2t_pay_get_type (void);
-gboolean gst_rtp_mp2t_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MP2T_PAY_H__ */
#include <gst/audio/audio.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpmp4adepay.h"
#include "gstrtputils.h"
#define gst_rtp_mp4a_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpMP4ADepay, gst_rtp_mp4a_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4adepay, "rtpmp4adepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MP4A_DEPAY, rtp_element_init (plugin));
static void gst_rtp_mp4a_depay_finalize (GObject * object);
}
return ret;
}
-
-gboolean
-gst_rtp_mp4a_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmp4adepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MP4A_DEPAY);
-}
GType gst_rtp_mp4a_depay_get_type (void);
-gboolean gst_rtp_mp4a_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MP4A_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpmp4apay.h"
#include "gstrtputils.h"
#define gst_rtp_mp4a_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpMP4APay, gst_rtp_mp4a_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4apay, "rtpmp4apay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MP4A_PAY, rtp_element_init (plugin));
static void
gst_rtp_mp4a_pay_class_init (GstRtpMP4APayClass * klass)
return ret;
}
-
-gboolean
-gst_rtp_mp4a_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmp4apay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MP4A_PAY);
-}
GType gst_rtp_mp4a_pay_get_type (void);
-gboolean gst_rtp_mp4a_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MP4A_PAY_H__ */
#include <stdlib.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpmp4gdepay.h"
#include "gstrtputils.h"
#define gst_rtp_mp4g_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpMP4GDepay, gst_rtp_mp4g_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4gdepay, "rtpmp4gdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MP4G_DEPAY, rtp_element_init (plugin));
static void gst_rtp_mp4g_depay_finalize (GObject * object);
}
return ret;
}
-
-gboolean
-gst_rtp_mp4g_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmp4gdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MP4G_DEPAY);
-}
GType gst_rtp_mp4g_depay_get_type (void);
-gboolean gst_rtp_mp4g_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MP4G_DEPAY_H__ */
#include <gst/base/gstbitreader.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtpmp4gpay.h"
#include "gstrtputils.h"
#define gst_rtp_mp4g_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpMP4GPay, gst_rtp_mp4g_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4gpay, "rtpmp4gpay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MP4G_PAY, rtp_element_init (plugin));
static void
gst_rtp_mp4g_pay_class_init (GstRtpMP4GPayClass * klass)
return ret;
}
-
-gboolean
-gst_rtp_mp4g_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmp4gpay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MP4G_PAY);
-}
GType gst_rtp_mp4g_pay_get_type (void);
-gboolean gst_rtp_mp4g_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MP4G_PAY_H__ */
#include <gst/video/video.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpmp4vdepay.h"
#include "gstrtputils.h"
#define gst_rtp_mp4v_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpMP4VDepay, gst_rtp_mp4v_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4vdepay, "rtpmp4vdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MP4V_DEPAY, rtp_element_init (plugin));
static void gst_rtp_mp4v_depay_finalize (GObject * object);
}
return ret;
}
-
-gboolean
-gst_rtp_mp4v_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmp4vdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MP4V_DEPAY);
-}
GType gst_rtp_mp4v_depay_get_type (void);
-gboolean gst_rtp_mp4v_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MP4V_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtpmp4vpay.h"
#include "gstrtputils.h"
#define gst_rtp_mp4v_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpMP4VPay, gst_rtp_mp4v_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+/* Note: This element is marked at a "+1" rank to make sure that
+ * auto-plugging of payloaders for MPEG4 elementary streams don't
+ * end up using the 'rtpmp4gpay' element (generic mpeg4) which isn't
+ * as well supported as this RFC */
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp4vpay, "rtpmp4vpay",
+ GST_RANK_SECONDARY + 1, GST_TYPE_RTP_MP4V_PAY, rtp_element_init (plugin));
static void
gst_rtp_mp4v_pay_class_init (GstRtpMP4VPayClass * klass)
break;
}
}
-
-gboolean
-gst_rtp_mp4v_pay_plugin_init (GstPlugin * plugin)
-{
- /* Note: This element is marked at a "+1" rank to make sure that
- * auto-plugging of payloaders for MPEG4 elementary streams don't
- * end up using the 'rtpmp4gpay' element (generic mpeg4) which isn't
- * as well supported as this RFC */
- return gst_element_register (plugin, "rtpmp4vpay",
- GST_RANK_SECONDARY + 1, GST_TYPE_RTP_MP4V_PAY);
-}
GType gst_rtp_mp4v_pay_get_type (void);
-gboolean gst_rtp_mp4v_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MP4V_PAY_H__ */
#include <gst/audio/audio.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpmpadepay.h"
#include "gstrtputils.h"
#define gst_rtp_mpa_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpMPADepay, gst_rtp_mpa_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmpadepay, "rtpmpadepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_mpa_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
return NULL;
}
}
-
-gboolean
-gst_rtp_mpa_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmpadepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_DEPAY);
-}
GType gst_rtp_mpa_depay_get_type (void);
-gboolean gst_rtp_mpa_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MPA_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpmpapay.h"
#include "gstrtputils.h"
#define gst_rtp_mpa_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpMPAPay, gst_rtp_mpa_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmpapay, "rtpmpapay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_PAY, rtp_element_init (plugin));
static void
gst_rtp_mpa_pay_class_init (GstRtpMPAPayClass * klass)
}
return ret;
}
-
-gboolean
-gst_rtp_mpa_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmpapay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_PAY);
-}
GType gst_rtp_mpa_pay_get_type (void);
-gboolean gst_rtp_mpa_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MPA_PAY_H__ */
#include <stdio.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpmparobustdepay.h"
GST_DEBUG_CATEGORY_STATIC (rtpmparobustdepay_debug);
#define gst_rtp_mpa_robust_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpMPARobustDepay, gst_rtp_mpa_robust_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmparobustdepay, "rtpmparobustdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_ROBUST_DEPAY,
+ rtp_element_init (plugin));
static GstStateChangeReturn gst_rtp_mpa_robust_change_state (GstElement *
element, GstStateChange transition);
return ret;
}
-
-gboolean
-gst_rtp_mpa_robust_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmparobustdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MPA_ROBUST_DEPAY);
-}
GType gst_rtp_mpa_robust_depay_get_type (void);
-gboolean gst_rtp_mpa_robust_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MPA_ROBUST_DEPAY_H__ */
#include <gst/video/video.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpmpvdepay.h"
#include "gstrtputils.h"
);
G_DEFINE_TYPE (GstRtpMPVDepay, gst_rtp_mpv_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmpvdepay, "rtpmpvdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MPV_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_mpv_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
return NULL;
}
}
-
-gboolean
-gst_rtp_mpv_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmpvdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MPV_DEPAY);
-}
GType gst_rtp_mpv_depay_get_type (void);
-gboolean gst_rtp_mpv_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MPV_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtpmpvpay.h"
#include "gstrtputils.h"
#define gst_rtp_mpv_pay_parent_class parent_class
G_DEFINE_TYPE (GstRTPMPVPay, gst_rtp_mpv_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmpvpay, "rtpmpvpay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MPV_PAY, rtp_element_init (plugin));
static void
gst_rtp_mpv_pay_class_init (GstRTPMPVPayClass * klass)
}
return ret;
}
-
-
-gboolean
-gst_rtp_mpv_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmpvpay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MPV_PAY);
-}
GType gst_rtp_mpv_pay_get_type (void);
-gboolean gst_rtp_mpv_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_MPV_PAY_H__ */
#include <stdlib.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpopusdepay.h"
#include "gstrtputils.h"
G_DEFINE_TYPE (GstRTPOpusDepay, gst_rtp_opus_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpopusdepay, "rtpopusdepay",
+ GST_RANK_PRIMARY, GST_TYPE_RTP_OPUS_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_opus_depay_class_init (GstRTPOpusDepayClass * klass)
return outbuf;
}
-
-gboolean
-gst_rtp_opus_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpopusdepay",
- GST_RANK_PRIMARY, GST_TYPE_RTP_OPUS_DEPAY);
-}
GType gst_rtp_opus_depay_get_type (void);
-gboolean gst_rtp_opus_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_OPUS_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpopuspay.h"
#include "gstrtputils.h"
payload, GstBuffer * buffer);
G_DEFINE_TYPE (GstRtpOPUSPay, gst_rtp_opus_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpopuspay, "rtpopuspay",
+ GST_RANK_PRIMARY, GST_TYPE_RTP_OPUS_PAY, rtp_element_init (plugin));
static void
gst_rtp_opus_pay_class_init (GstRtpOPUSPayClass * klass)
GST_DEBUG_OBJECT (payload, "Returning caps: %" GST_PTR_FORMAT, caps);
return caps;
}
-
-gboolean
-gst_rtp_opus_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpopuspay",
- GST_RANK_PRIMARY, GST_TYPE_RTP_OPUS_PAY);
-}
GType gst_rtp_opus_pay_get_type (void);
-gboolean gst_rtp_opus_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_OPUS_PAY_H__ */
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtppcmadepay.h"
#include "gstrtputils.h"
#define gst_rtp_pcma_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpPcmaDepay, gst_rtp_pcma_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtppcmadepay, "rtppcmadepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_PCMA_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_pcma_depay_class_init (GstRtpPcmaDepayClass * klass)
return outbuf;
}
-
-gboolean
-gst_rtp_pcma_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtppcmadepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_PCMA_DEPAY);
-}
GType gst_rtp_pcma_depay_get_type (void);
-gboolean gst_rtp_pcma_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_PCMA_DEPAY_H__ */
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtppcmapay.h"
static GstStaticPadTemplate gst_rtp_pcma_pay_sink_template =
#define gst_rtp_pcma_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpPcmaPay, gst_rtp_pcma_pay,
GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtppcmapay, "rtppcmapay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_PCMA_PAY, rtp_element_init (plugin));
static void
gst_rtp_pcma_pay_class_init (GstRtpPcmaPayClass * klass)
return res;
}
-
-gboolean
-gst_rtp_pcma_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtppcmapay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_PCMA_PAY);
-}
GType gst_rtp_pcma_pay_get_type (void);
-gboolean gst_rtp_pcma_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_PCMA_PAY_H__ */
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtppcmudepay.h"
#include "gstrtputils.h"
#define gst_rtp_pcmu_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpPcmuDepay, gst_rtp_pcmu_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtppcmudepay, "rtppcmudepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_PCMU_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_pcmu_depay_class_init (GstRtpPcmuDepayClass * klass)
return outbuf;
}
-
-gboolean
-gst_rtp_pcmu_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtppcmudepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_PCMU_DEPAY);
-}
GType gst_rtp_pcmu_depay_get_type (void);
-gboolean gst_rtp_pcmu_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_PCMU_DEPAY_H__ */
#include <string.h>
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "gstrtppcmupay.h"
static GstStaticPadTemplate gst_rtp_pcmu_pay_sink_template =
#define gst_rtp_pcmu_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpPcmuPay, gst_rtp_pcmu_pay,
GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtppcmupay, "rtppcmupay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_PCMU_PAY, rtp_element_init (plugin));
static void
gst_rtp_pcmu_pay_class_init (GstRtpPcmuPayClass * klass)
return res;
}
-
-gboolean
-gst_rtp_pcmu_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtppcmupay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_PCMU_PAY);
-}
GType gst_rtp_pcmu_pay_get_type (void);
-gboolean gst_rtp_pcmu_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_PCMU_PAY_H__ */
#include <stdlib.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpqcelpdepay.h"
#include "gstrtputils.h"
#define gst_rtp_qcelp_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpQCELPDepay, gst_rtp_qcelp_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpqcelpdepay, "rtpqcelpdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_QCELP_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_qcelp_depay_class_init (GstRtpQCELPDepayClass * klass)
return NULL;
}
}
-
-gboolean
-gst_rtp_qcelp_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpqcelpdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_QCELP_DEPAY);
-}
GType gst_rtp_qcelp_depay_get_type (void);
-gboolean gst_rtp_qcelp_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_QCELP_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpqdmdepay.h"
#include "gstrtputils.h"
#define gst_rtp_qdm2_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpQDM2Depay, gst_rtp_qdm2_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+#define _do_init \
+ GST_DEBUG_CATEGORY_INIT (rtpqdm2depay_debug, "rtpqdm2depay", 0, \
+ "RTP QDM2 depayloader"); \
+ rtp_element_init (plugin)
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpqdm2depay, "rtpqdm2depay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_QDM2_DEPAY, _do_init);
static const guint8 headheader[20] = {
0x0, 0x0, 0x0, 0xc, 0x66, 0x72, 0x6d, 0x61,
}
return ret;
}
-
-gboolean
-gst_rtp_qdm2_depay_plugin_init (GstPlugin * plugin)
-{
- GST_DEBUG_CATEGORY_INIT (rtpqdm2depay_debug, "rtpqdm2depay", 0,
- "RTP QDM2 depayloader");
-
- return gst_element_register (plugin, "rtpqdm2depay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_QDM2_DEPAY);
-}
GType gst_rtp_qdm2_depay_get_type (void);
-gboolean gst_rtp_qdm2_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_QDM2_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
+#include "gstrtpelements.h"
#include "rtpredcommon.h"
#include "gstrtpreddec.h"
#include "rtpulpfeccommon.h"
#define GST_CAT_DEFAULT gst_rtp_red_dec_debug
G_DEFINE_TYPE (GstRtpRedDec, gst_rtp_red_dec, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpreddec, "rtpreddec", GST_RANK_NONE,
+ GST_TYPE_RTP_RED_DEC, rtp_element_init (plugin));
enum
{
#include <string.h>
#include <stdio.h>
+#include "gstrtpelements.h"
#include "rtpredcommon.h"
#include "gstrtpredenc.h"
GST_DEBUG_CATEGORY_STATIC (gst_rtp_red_enc_debug);
#define GST_CAT_DEFAULT (gst_rtp_red_enc_debug)
-
G_DEFINE_TYPE (GstRtpRedEnc, gst_rtp_red_enc, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpredenc, "rtpredenc", GST_RANK_NONE,
+ GST_TYPE_RTP_RED_ENC, rtp_element_init (plugin));
enum
{
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpsbcdepay.h"
#include "gstrtputils.h"
#define gst_rtp_sbc_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpSbcDepay, gst_rtp_sbc_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpsbcdepay, "rtpsbcdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_SBC_DEPAY, rtp_element_init (plugin));
static void gst_rtp_sbc_depay_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec);
("Received invalid RTP payload, dropping"), (NULL));
goto out;
}
-
-gboolean
-gst_rtp_sbc_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpsbcdepay", GST_RANK_SECONDARY,
- GST_TYPE_RTP_SBC_DEPAY);
-}
GType gst_rtp_sbc_depay_get_type (void);
-gboolean gst_rtp_sbc_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif
#endif
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpsbcpay.h"
#include <math.h>
#include <string.h>
#define parent_class gst_rtp_sbc_pay_parent_class
G_DEFINE_TYPE (GstRtpSBCPay, gst_rtp_sbc_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpsbcpay, "rtpsbcpay", GST_RANK_NONE,
+ GST_TYPE_RTP_SBC_PAY, rtp_element_init (plugin));
static GstStaticPadTemplate gst_rtp_sbc_pay_sink_factory =
GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
self->min_frames = DEFAULT_MIN_FRAMES;
}
-
-gboolean
-gst_rtp_sbc_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpsbcpay", GST_RANK_NONE,
- GST_TYPE_RTP_SBC_PAY);
-}
GType gst_rtp_sbc_pay_get_type(void);
-gboolean gst_rtp_sbc_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#include <stdlib.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpsirendepay.h"
#include "gstrtputils.h"
G_DEFINE_TYPE (GstRTPSirenDepay, gst_rtp_siren_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpsirendepay, "rtpsirendepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_SIREN_DEPAY, rtp_element_init (plugin));
static void gst_rtp_siren_depay_class_init (GstRTPSirenDepayClass * klass)
{
return outbuf;
}
-
-gboolean
-gst_rtp_siren_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpsirendepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_SIREN_DEPAY);
-}
GType gst_rtp_siren_depay_get_type (void);
-gboolean gst_rtp_siren_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_SIREN_DEPAY_H__ */
#include "config.h"
#endif
+#include "gstrtpelements.h"
#include "gstrtpsirenpay.h"
#include <gst/rtp/gstrtpbuffer.h>
G_DEFINE_TYPE (GstRTPSirenPay, gst_rtp_siren_pay,
GST_TYPE_RTP_BASE_AUDIO_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpsirenpay, "rtpsirenpay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_SIREN_PAY, rtp_element_init (plugin));
static void
gst_rtp_siren_pay_class_init (GstRTPSirenPayClass * klass)
return FALSE;
}
}
-
-gboolean
-gst_rtp_siren_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpsirenpay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_SIREN_PAY);
-}
GType gst_rtp_siren_pay_get_type (void);
-gboolean gst_rtp_siren_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_SIREN_PAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpspeexdepay.h"
#include "gstrtputils.h"
G_DEFINE_TYPE (GstRtpSPEEXDepay, gst_rtp_speex_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpspeexdepay, "rtpspeexdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_SPEEX_DEPAY, rtp_element_init (plugin));
static void
gst_rtp_speex_depay_class_init (GstRtpSPEEXDepayClass * klass)
return outbuf;
}
-
-gboolean
-gst_rtp_speex_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpspeexdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_SPEEX_DEPAY);
-}
GType gst_rtp_speex_depay_get_type (void);
-gboolean gst_rtp_speex_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_SPEEX_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "gstrtpspeexpay.h"
#include "gstrtputils.h"
#define gst_rtp_speex_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpSPEEXPay, gst_rtp_speex_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpspeexpay, "rtpspeexpay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_SPEEX_PAY, rtp_element_init (plugin));
static void
gst_rtp_speex_pay_class_init (GstRtpSPEEXPayClass * klass)
}
return ret;
}
-
-gboolean
-gst_rtp_speex_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpspeexpay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_SPEEX_PAY);
-}
GType gst_rtp_speex_pay_get_type (void);
-gboolean gst_rtp_speex_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_SPEEX_PAY_H__ */
* Since: 1.14
*/
+#include "gstrtpelements.h"
#include "gstrtpstorage.h"
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
#define GST_CAT_DEFAULT (gst_rtp_storage_debug)
G_DEFINE_TYPE (GstRtpStorage, gst_rtp_storage, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpstorage, "rtpstorage", GST_RANK_NONE,
+ GST_TYPE_RTP_STORAGE, rtp_element_init (plugin));
static GstFlowReturn
gst_rtp_storage_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
#include "config.h"
#endif
+#include "gstrtpelements.h"
#include "gstrtpstreamdepay.h"
GST_DEBUG_CATEGORY (gst_rtp_stream_depay_debug);
#define parent_class gst_rtp_stream_depay_parent_class
G_DEFINE_TYPE (GstRtpStreamDepay, gst_rtp_stream_depay, GST_TYPE_BASE_PARSE);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpstreamdepay, "rtpstreamdepay",
+ GST_RANK_NONE, GST_TYPE_RTP_STREAM_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_stream_depay_set_sink_caps (GstBaseParse * parse,
GstCaps * caps);
{
return gst_pad_activate_mode (pad, GST_PAD_MODE_PUSH, TRUE);
}
-
-gboolean
-gst_rtp_stream_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpstreamdepay",
- GST_RANK_NONE, GST_TYPE_RTP_STREAM_DEPAY);
-}
};
GType gst_rtp_stream_depay_get_type (void);
-gboolean gst_rtp_stream_depay_plugin_init (GstPlugin * plugin);
G_END_DECLS
#include "config.h"
#endif
+#include "gstrtpelements.h"
#include "gstrtpstreampay.h"
#define GST_CAT_DEFAULT gst_rtp_stream_pay_debug
#define parent_class gst_rtp_stream_pay_parent_class
G_DEFINE_TYPE (GstRtpStreamPay, gst_rtp_stream_pay, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpstreampay, "rtpstreampay",
+ GST_RANK_NONE, GST_TYPE_RTP_STREAM_PAY, rtp_element_init (plugin));
static gboolean gst_rtp_stream_pay_sink_query (GstPad * pad, GstObject * parent,
GstQuery * query);
return gst_pad_push (self->srcpad, outbuf);
}
-
-gboolean
-gst_rtp_stream_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpstreampay",
- GST_RANK_NONE, GST_TYPE_RTP_STREAM_PAY);
-}
GType gst_rtp_stream_pay_get_type (void);
-gboolean gst_rtp_stream_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_STREAM_PAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtpsv3vdepay.h"
#include "gstrtputils.h"
#define gst_rtp_sv3v_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpSV3VDepay, gst_rtp_sv3v_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpsv3vdepay, "rtpsv3vdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_SV3V_DEPAY, rtp_element_init (plugin));
static void gst_rtp_sv3v_depay_finalize (GObject * object);
}
return ret;
}
-
-gboolean
-gst_rtp_sv3v_depay_plugin_init (GstPlugin * plugin)
-{
- GST_DEBUG_CATEGORY_INIT (rtpsv3vdepay_debug, "rtpsv3vdepay", 0,
- "RTP SV3V depayloader");
-
- return gst_element_register (plugin, "rtpsv3vdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_SV3V_DEPAY);
-}
GType gst_rtp_sv3v_depay_get_type (void);
-gboolean gst_rtp_sv3v_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_SV3V_DEPAY_H__ */
#include <gst/video/video.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtptheoradepay.h"
#include "gstrtputils.h"
#define gst_rtp_theora_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpTheoraDepay, gst_rtp_theora_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtptheoradepay, "rtptheoradepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_THEORA_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_theora_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
return ret;
}
-gboolean
-gst_rtp_theora_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtptheoradepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_THEORA_DEPAY);
-}
-
static gboolean
gst_rtp_theora_depay_packet_lost (GstRTPBaseDepayload * depayload,
GstEvent * event)
GType gst_rtp_theora_depay_get_type (void);
-gboolean gst_rtp_theora_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_THEORA_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "fnv1hash.h"
#include "gstrtptheorapay.h"
#include "gstrtputils.h"
#define gst_rtp_theora_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpTheoraPay, gst_rtp_theora_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtptheorapay, "rtptheorapay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_THEORA_PAY, rtp_element_init (plugin));
static gboolean gst_rtp_theora_pay_setcaps (GstRTPBasePayload * basepayload,
GstCaps * caps);
break;
}
}
-
-gboolean
-gst_rtp_theora_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtptheorapay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_THEORA_PAY);
-}
GType gst_rtp_theora_pay_get_type (void);
-gboolean gst_rtp_theora_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_THEORA_PAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/rtp/gstrtp-enumtypes.h>
+#include "gstrtpelements.h"
#include "rtpulpfeccommon.h"
#include "gstrtpulpfecdec.h"
#define GST_CAT_DEFAULT (gst_rtp_ulpfec_dec_debug)
G_DEFINE_TYPE (GstRtpUlpFecDec, gst_rtp_ulpfec_dec, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpulpfecdec, "rtpulpfecdec",
+ GST_RANK_NONE, GST_TYPE_RTP_ULPFEC_DEC, rtp_element_init (plugin));
#define RTP_FEC_MAP_INFO_NTH(dec, data) (&g_array_index (\
((GstRtpUlpFecDec *)dec)->info_arr, \
#include <gst/rtp/gstrtpbuffer.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "rtpulpfeccommon.h"
#include "gstrtpulpfecenc.h"
#define GST_CAT_DEFAULT (gst_rtp_ulpfec_enc_debug)
G_DEFINE_TYPE (GstRtpUlpFecEnc, gst_rtp_ulpfec_enc, GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpulpfecenc, "rtpulpfecenc",
+ GST_RANK_NONE, GST_TYPE_RTP_ULPFEC_ENC, rtp_element_init (plugin));
enum
{
#include <gst/audio/audio.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpvorbisdepay.h"
#include "gstrtputils.h"
#define gst_rtp_vorbis_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpVorbisDepay, gst_rtp_vorbis_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvorbisdepay, "rtpvorbisdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_VORBIS_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_vorbis_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
}
return ret;
}
-
-gboolean
-gst_rtp_vorbis_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpvorbisdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_VORBIS_DEPAY);
-}
GType gst_rtp_vorbis_depay_get_type (void);
-gboolean gst_rtp_vorbis_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_VORBIS_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/audio/audio.h>
+#include "gstrtpelements.h"
#include "fnv1hash.h"
#include "gstrtpvorbispay.h"
#include "gstrtputils.h"
#define gst_rtp_vorbis_pay_parent_class parent_class
G_DEFINE_TYPE (GstRtpVorbisPay, gst_rtp_vorbis_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvorbispay, "rtpvorbispay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_VORBIS_PAY, rtp_element_init (plugin));
static gboolean gst_rtp_vorbis_pay_setcaps (GstRTPBasePayload * basepayload,
GstCaps * caps);
break;
}
}
-
-gboolean
-gst_rtp_vorbis_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpvorbispay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_VORBIS_PAY);
-}
GType gst_rtp_vorbis_pay_get_type (void);
-gboolean gst_rtp_vorbis_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_VORBIS_PAY_H__ */
# include "config.h"
#endif
+#include "gstrtpelements.h"
#include "gstrtpvp8depay.h"
#include "gstrtputils.h"
GstEvent * event);
G_DEFINE_TYPE (GstRtpVP8Depay, gst_rtp_vp8_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvp8depay, "rtpvp8depay",
+ GST_RANK_MARGINAL, GST_TYPE_RTP_VP8_DEPAY, rtp_element_init (plugin));
static GstStaticPadTemplate gst_rtp_vp8_depay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
return ret;
}
-
-gboolean
-gst_rtp_vp8_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpvp8depay",
- GST_RANK_MARGINAL, GST_TYPE_RTP_VP8_DEPAY);
-}
GType gst_rtp_vp8_depay_get_type (void);
-gboolean gst_rtp_vp8_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* #ifndef __GST_RTP_VP8_DEPAY_H__ */
#include <gst/rtp/gstrtppayloads.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "dboolhuff.h"
#include "gstrtpvp8pay.h"
#include "gstrtputils.h"
GstCaps * caps);
G_DEFINE_TYPE (GstRtpVP8Pay, gst_rtp_vp8_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvp8pay, "rtpvp8pay",
+ GST_RANK_MARGINAL, GST_TYPE_RTP_VP8_PAY, rtp_element_init (plugin));
static GstStaticPadTemplate gst_rtp_vp8_pay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
return gst_rtp_base_payload_set_outcaps (payload, NULL);
}
-
-gboolean
-gst_rtp_vp8_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpvp8pay",
- GST_RANK_MARGINAL, GST_TYPE_RTP_VP8_PAY);
-}
GType gst_rtp_vp8_pay_get_type (void);
-gboolean gst_rtp_vp8_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* #ifndef __GST_RTP_VP8_PAY_H__ */
# include "config.h"
#endif
+#include "gstrtpelements.h"
#include "gstrtpvp9depay.h"
#include "gstrtputils.h"
GstEvent * event);
G_DEFINE_TYPE (GstRtpVP9Depay, gst_rtp_vp9_depay, GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvp9depay, "rtpvp9depay",
+ GST_RANK_MARGINAL, GST_TYPE_RTP_VP9_DEPAY, rtp_element_init (plugin));
static GstStaticPadTemplate gst_rtp_vp9_depay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_RTP_BASE_DEPAYLOAD_CLASS
(gst_rtp_vp9_depay_parent_class)->packet_lost (depay, event);
}
-
-gboolean
-gst_rtp_vp9_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpvp9depay",
- GST_RANK_MARGINAL, GST_TYPE_RTP_VP9_DEPAY);
-}
GType gst_rtp_vp9_depay_get_type (void);
-gboolean gst_rtp_vp9_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* #ifndef __GST_RTP_VP9_DEPAY_H__ */
#include <gst/rtp/gstrtppayloads.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "dboolhuff.h"
#include "gstrtpvp9pay.h"
#include "gstrtputils.h"
GstCaps * caps);
G_DEFINE_TYPE (GstRtpVP9Pay, gst_rtp_vp9_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvp9pay, "rtpvp9pay",
+ GST_RANK_MARGINAL, GST_TYPE_RTP_VP9_PAY, rtp_element_init (plugin));
static GstStaticPadTemplate gst_rtp_vp9_pay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
return gst_rtp_base_payload_set_outcaps (payload, NULL);
}
-
-gboolean
-gst_rtp_vp9_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpvp9pay",
- GST_RANK_MARGINAL, GST_TYPE_RTP_VP9_PAY);
-}
GType gst_rtp_vp9_pay_get_type (void);
-gboolean gst_rtp_vp9_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* #ifndef __GST_RTP_VP9_PAY_H__ */
#include <string.h>
#include <stdlib.h>
+#include "gstrtpelements.h"
#include "gstrtpvrawdepay.h"
#include "gstrtputils.h"
#define gst_rtp_vraw_depay_parent_class parent_class
G_DEFINE_TYPE (GstRtpVRawDepay, gst_rtp_vraw_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvrawdepay, "rtpvrawdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_VRAW_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_vraw_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
}
return ret;
}
-
-gboolean
-gst_rtp_vraw_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpvrawdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_VRAW_DEPAY);
-}
GType gst_rtp_vraw_depay_get_type (void);
-gboolean gst_rtp_vraw_depay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_VRAW_DEPAY_H__ */
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/video/video.h>
+#include "gstrtpelements.h"
#include "gstrtpvrawpay.h"
#include "gstrtputils.h"
const GValue * value, GParamSpec * pspec);
G_DEFINE_TYPE (GstRtpVRawPay, gst_rtp_vraw_pay, GST_TYPE_RTP_BASE_PAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpvrawpay, "rtpvrawpay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_VRAW_PAY, rtp_element_init (plugin));
static void
gst_rtp_vraw_pay_class_init (GstRtpVRawPayClass * klass)
break;
}
}
-
-gboolean
-gst_rtp_vraw_pay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpvrawpay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_VRAW_PAY);
-}
GType gst_rtp_vraw_pay_get_type (void);
-gboolean gst_rtp_vraw_pay_plugin_init (GstPlugin * plugin);
-
G_END_DECLS
#endif /* __GST_RTP_VRAW_PAY_H__ */
'dboolhuff.c',
'fnv1hash.c',
'gstbuffermemory.c',
+ 'gstrtpelement.c',
'gstrtp.c',
'gstrtpchannels.c',
'gstrtpac3depay.c',
[ 'elements/rtprtx' ],
[ 'elements/rtpsession' ],
[ 'elements/rtpstorage', false, [], ['../../gst/rtp/gstrtpstorage.c',
+ '../../gst/rtp/gstrtpelement.c',
+ '../../gst/rtp/gstrtputils.c',
'../../gst/rtp/rtpstorage.c',
'../../gst/rtp/rtpstoragestream.c']],
[ 'elements/rtpred' ],