From fc158bc3c2739eabfb092f7a45f6656ac8c96e25 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 15 Sep 2005 13:57:56 +0000 Subject: Updates to payloader/depayloaders, make payloaders use the base classes. Original commit message from CVS: Updates to payloader/depayloaders, make payloaders use the base classes. Updated README with suggested RTP caps and how to convert to/from SDP. Added config descriptor in mp4v payloader. --- gst/rtp/gstrtpgsmdepay.h | 42 ++++++++++++++++-------------------------- 1 file changed, 16 insertions(+), 26 deletions(-) (limited to 'gst/rtp/gstrtpgsmdepay.h') diff --git a/gst/rtp/gstrtpgsmdepay.h b/gst/rtp/gstrtpgsmdepay.h index 0a006e70..19bd5b28 100644 --- a/gst/rtp/gstrtpgsmdepay.h +++ b/gst/rtp/gstrtpgsmdepay.h @@ -21,16 +21,23 @@ #define __GST_RTP_GSM_PARSE_H__ #include -#include "rtp-packet.h" -#include "gstrtp-common.h" -#ifdef __cplusplus -extern "C" -{ -#endif /* __cplusplus */ +G_BEGIN_DECLS -/* Definition of structure storing data for this element. */ typedef struct _GstRtpGSMParse GstRtpGSMParse; +typedef struct _GstRtpGSMParseClass GstRtpGSMParseClass; + +#define GST_TYPE_RTP_GSM_PARSE \ + (gst_rtpgsmparse_get_type()) +#define GST_RTP_GSM_PARSE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_GSM_PARSE,GstRtpGSMParse)) +#define GST_RTP_GSM_PARSE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_GSM_PARSE,GstRtpGSMParse)) +#define GST_IS_RTP_GSM_PARSE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_GSM_PARSE)) +#define GST_IS_RTP_GSM_PARSE_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_GSM_PARSE)) + struct _GstRtpGSMParse { GstElement element; @@ -41,30 +48,13 @@ struct _GstRtpGSMParse guint frequency; }; -/* Standard definition defining a class for this element. */ -typedef struct _GstRtpGSMParseClass GstRtpGSMParseClass; struct _GstRtpGSMParseClass { GstElementClass parent_class; }; -/* Standard macros for defining types for this element. */ -#define GST_TYPE_RTP_GSM_PARSE \ - (gst_rtpgsmparse_get_type()) -#define GST_RTP_GSM_PARSE(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_GSM_PARSE,GstRtpGSMParse)) -#define GST_RTP_GSM_PARSE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_GSM_PARSE,GstRtpGSMParse)) -#define GST_IS_RTP_GSM_PARSE(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_GSM_PARSE)) -#define GST_IS_RTP_GSM_PARSE_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_GSM_PARSE)) - gboolean gst_rtpgsmparse_plugin_init (GstPlugin * plugin); -#ifdef __cplusplus -} -#endif /* __cplusplus */ - +G_END_DECLS -#endif /* __GST_RTP_GSM_PARSE_H__ */ +#endif /* __GST_RTP_GSM_PARSE_H__ */ -- cgit