summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtpL16pay.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-01-24 18:20:14 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-01-24 18:20:14 +0000
commit85420195b22b54f306833be2d4ba66fd2ff6b6e8 (patch)
treea6100c8b69d0291ae4e2e694121b34cab2fc37a0 /gst/rtp/gstrtpL16pay.h
parenta6a9207c4298081d2af237edd04e337e5d175e0d (diff)
gst/rtp/: Port and enable raw audio payloader/depayloader. Needs a bit more work on the payloader side.
Original commit message from CVS: * gst/rtp/Makefile.am: * gst/rtp/gstrtp.c: (plugin_init): * gst/rtp/gstrtpL16depay.c: (gst_rtp_L16_depay_base_init), (gst_rtp_L16_depay_class_init), (gst_rtp_L16_depay_init), (gst_rtp_L16_depay_parse_int), (gst_rtp_L16_depay_setcaps), (gst_rtp_L16_depay_process), (gst_rtp_L16_depay_set_property), (gst_rtp_L16_depay_get_property), (gst_rtp_L16_depay_change_state), (gst_rtp_L16_depay_plugin_init): * gst/rtp/gstrtpL16depay.h: * gst/rtp/gstrtpL16pay.c: (gst_rtp_L16_pay_get_type), (gst_rtp_L16_pay_base_init), (gst_rtp_L16_pay_class_init), (gst_rtp_L16_pay_init), (gst_rtp_L16_pay_finalize), (gst_rtp_L16_pay_setcaps), (gst_rtp_L16_pay_handle_buffer), (gst_rtp_L16_pay_plugin_init): * gst/rtp/gstrtpL16pay.h: Port and enable raw audio payloader/depayloader. Needs a bit more work on the payloader side.
Diffstat (limited to 'gst/rtp/gstrtpL16pay.h')
-rw-r--r--gst/rtp/gstrtpL16pay.h56
1 files changed, 23 insertions, 33 deletions
diff --git a/gst/rtp/gstrtpL16pay.h b/gst/rtp/gstrtpL16pay.h
index 8c44f81d..ac1c2de3 100644
--- a/gst/rtp/gstrtpL16pay.h
+++ b/gst/rtp/gstrtpL16pay.h
@@ -1,5 +1,5 @@
/* GStreamer
- * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
+ * Copyright (C) <2005> Wim Taymans <wim@fluendo.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -17,56 +17,46 @@
* Boston, MA 02111-1307, USA.
*/
-
#ifndef __GST_RTP_L16_PAY_H__
#define __GST_RTP_L16_PAY_H__
#include <gst/gst.h>
+#include <gst/rtp/gstbasertppayload.h>
+#include <gst/base/gstadapter.h>
G_BEGIN_DECLS
-/* Definition of structure storing data for this element. */
+#define GST_TYPE_RTP_L16_PAY \
+ (gst_rtp_L16_pay_get_type())
+#define GST_RTP_L16_PAY(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_L16_PAY,GstRtpL16Pay))
+#define GST_RTP_L16_PAY_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_L16_PAY,GstRtpL16PayClass))
+#define GST_IS_RTP_L16_PAY(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_L16_PAY))
+#define GST_IS_RTP_L16_PAY_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_L16_PAY))
+
typedef struct _GstRtpL16Pay GstRtpL16Pay;
+typedef struct _GstRtpL16PayClass GstRtpL16PayClass;
+
struct _GstRtpL16Pay
{
- GstElement element;
+ GstBaseRTPPayload payload;
- GstPad *sinkpad;
- GstPad *srcpad;
+ GstAdapter *adapter;
- guint frequency;
- guint channels;
-
- /* the timestamp of the next frame */
- guint64 next_time;
- /* the interval between frames */
- guint64 time_interval;
-
- guint32 ssrc;
- guint16 seq;
+ gint rate;
+ gint channels;
};
-/* Standard definition defining a class for this element. */
-typedef struct _GstRtpL16PayClass GstRtpL16PayClass;
struct _GstRtpL16PayClass
{
- GstElementClass parent_class;
+ GstBaseRTPPayloadClass parent_class;
};
-/* Standard macros for defining types for this element. */
-#define GST_TYPE_RTP_L16_PAY \
- (gst_rtpL16pay_get_type())
-#define GST_RTP_L16_PAY(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_L16_PAY,GstRtpL16Pay))
-#define GST_RTP_L16_PAY_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_L16_PAY,GstRtpL16PayClass))
-#define GST_IS_RTP_L16_PAY(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_L16_PAY))
-#define GST_IS_RTP_L16_PAY_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_L16_PAY))
-
-gboolean gst_rtpL16pay_plugin_init (GstPlugin * plugin);
+gboolean gst_rtp_L16_pay_plugin_init (GstPlugin * plugin);
G_END_DECLS
-#endif /* __GST_RTP_L16_PAY_H__ */
+#endif /* __GST_RTP_L16_PAY_H__ */