summaryrefslogtreecommitdiff
path: root/gst/rtpmanager/rtpsource.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-12-10 11:08:11 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-11 02:30:32 +0100
commit1971ae0d82153aa2d1cc65c68f1fcd4538fcaf70 (patch)
tree4767b586f3dc6e467bc57997adcfd521070b77cc /gst/rtpmanager/rtpsource.h
parent1a8f489093c80935c4d9fc253ae8c50079d04380 (diff)
gst/rtpmanager/: Update comment.
Original commit message from CVS: * gst/rtpmanager/gstrtpbin.c: (create_session): * gst/rtpmanager/rtpjitterbuffer.c: Update comment. * gst/rtpmanager/gstrtpsession.c: (gst_rtp_session_class_init), (gst_rtp_session_set_property), (gst_rtp_session_get_property): Define some GObject properties to set SDES and other configuration. * gst/rtpmanager/rtpsession.c: (rtp_session_class_init), (rtp_session_init), (rtp_session_finalize), (rtp_session_set_property), (rtp_session_get_property), (on_ssrc_sdes), (rtp_session_set_bandwidth), (rtp_session_get_bandwidth), (rtp_session_set_rtcp_fraction), (rtp_session_get_rtcp_fraction), (rtp_session_set_sdes_string), (rtp_session_get_sdes_string), (obtain_source), (rtp_session_get_internal_source), (rtp_session_process_sdes), (rtp_session_send_rtp), (rtp_session_next_timeout), (session_sdes), (is_rtcp_time): * gst/rtpmanager/rtpsession.h: Add signal when new SDES infor has been found for a source. Create properties for SDES and other info. Simplify the SDES API. Add method for getting the internal source object of the session. * gst/rtpmanager/rtpsource.c: (rtp_source_class_init), (rtp_source_finalize), (rtp_source_set_property), (rtp_source_get_property), (rtp_source_set_callbacks), (rtp_source_get_ssrc), (rtp_source_set_as_csrc), (rtp_source_is_as_csrc), (rtp_source_is_active), (rtp_source_is_validated), (rtp_source_is_sender), (rtp_source_received_bye), (rtp_source_get_bye_reason), (rtp_source_set_sdes), (rtp_source_set_sdes_string), (rtp_source_get_sdes), (rtp_source_get_sdes_string), (rtp_source_get_new_sr), (rtp_source_get_new_rb): * gst/rtpmanager/rtpsource.h: Add GObject properties for various things. Don't leak the bye reason.
Diffstat (limited to 'gst/rtpmanager/rtpsource.h')
-rw-r--r--gst/rtpmanager/rtpsource.h86
1 files changed, 53 insertions, 33 deletions
diff --git a/gst/rtpmanager/rtpsource.h b/gst/rtpmanager/rtpsource.h
index 1952a4c24..0a744dfbb 100644
--- a/gst/rtpmanager/rtpsource.h
+++ b/gst/rtpmanager/rtpsource.h
@@ -118,13 +118,9 @@ struct _RTPSource {
gboolean is_csrc;
gboolean is_sender;
- gchar *cname;
- gchar *name;
- gchar *email;
- gchar *phone;
- gchar *location;
- gchar *tool;
- gchar *note;
+ guint8 *sdes[9];
+ guint sdes_len[9];
+
gboolean received_bye;
gchar *bye_reason;
@@ -161,38 +157,62 @@ struct _RTPSourceClass {
GType rtp_source_get_type (void);
/* managing lifetime of sources */
-RTPSource* rtp_source_new (guint32 ssrc);
-void rtp_source_update_caps (RTPSource *src, GstCaps *caps);
+RTPSource* rtp_source_new (guint32 ssrc);
+void rtp_source_set_callbacks (RTPSource *src, RTPSourceCallbacks *cb, gpointer data);
+
+/* properties */
+guint32 rtp_source_get_ssrc (RTPSource *src);
+
+void rtp_source_set_as_csrc (RTPSource *src);
+gboolean rtp_source_is_as_csrc (RTPSource *src);
+
+gboolean rtp_source_is_active (RTPSource *src);
+gboolean rtp_source_is_validated (RTPSource *src);
+gboolean rtp_source_is_sender (RTPSource *src);
+
+gboolean rtp_source_received_bye (RTPSource *src);
+gchar * rtp_source_get_bye_reason (RTPSource *src);
+
+void rtp_source_update_caps (RTPSource *src, GstCaps *caps);
-void rtp_source_set_callbacks (RTPSource *src, RTPSourceCallbacks *cb, gpointer data);
-void rtp_source_set_as_csrc (RTPSource *src);
+/* SDES info */
+gboolean rtp_source_set_sdes (RTPSource *src, GstRTCPSDESType type,
+ const guint8 *data, guint len);
+gboolean rtp_source_set_sdes_string (RTPSource *src, GstRTCPSDESType type,
+ const gchar *data);
+gboolean rtp_source_get_sdes (RTPSource *src, GstRTCPSDESType type,
+ guint8 **data, guint *len);
+gchar* rtp_source_get_sdes_string (RTPSource *src, GstRTCPSDESType type);
-void rtp_source_set_rtp_from (RTPSource *src, GstNetAddress *address);
-void rtp_source_set_rtcp_from (RTPSource *src, GstNetAddress *address);
+/* handling network address */
+void rtp_source_set_rtp_from (RTPSource *src, GstNetAddress *address);
+void rtp_source_set_rtcp_from (RTPSource *src, GstNetAddress *address);
/* handling RTP */
-GstFlowReturn rtp_source_process_rtp (RTPSource *src, GstBuffer *buffer, RTPArrivalStats *arrival);
+GstFlowReturn rtp_source_process_rtp (RTPSource *src, GstBuffer *buffer, RTPArrivalStats *arrival);
-GstFlowReturn rtp_source_send_rtp (RTPSource *src, GstBuffer *buffer, guint64 ntpnstime);
+GstFlowReturn rtp_source_send_rtp (RTPSource *src, GstBuffer *buffer, guint64 ntpnstime);
/* RTCP messages */
-void rtp_source_process_bye (RTPSource *src, const gchar *reason);
-void rtp_source_process_sr (RTPSource *src, GstClockTime time, guint64 ntptime,
- guint32 rtptime, guint32 packet_count, guint32 octet_count);
-void rtp_source_process_rb (RTPSource *src, GstClockTime time, guint8 fractionlost,
- gint32 packetslost, guint32 exthighestseq, guint32 jitter,
- guint32 lsr, guint32 dlsr);
-
-gboolean rtp_source_get_new_sr (RTPSource *src, GstClockTime time, guint64 *ntptime,
- guint32 *rtptime, guint32 *packet_count, guint32 *octet_count);
-gboolean rtp_source_get_new_rb (RTPSource *src, GstClockTime time, guint8 *fractionlost,
- gint32 *packetslost, guint32 *exthighestseq, guint32 *jitter,
- guint32 *lsr, guint32 *dlsr);
-
-gboolean rtp_source_get_last_sr (RTPSource *src, GstClockTime *time, guint64 *ntptime,
- guint32 *rtptime, guint32 *packet_count, guint32 *octet_count);
-gboolean rtp_source_get_last_rb (RTPSource *src, guint8 *fractionlost, gint32 *packetslost,
- guint32 *exthighestseq, guint32 *jitter,
- guint32 *lsr, guint32 *dlsr);
+void rtp_source_process_bye (RTPSource *src, const gchar *reason);
+void rtp_source_process_sr (RTPSource *src, GstClockTime time, guint64 ntptime,
+ guint32 rtptime, guint32 packet_count, guint32 octet_count);
+void rtp_source_process_rb (RTPSource *src, GstClockTime time, guint8 fractionlost,
+ gint32 packetslost, guint32 exthighestseq, guint32 jitter,
+ guint32 lsr, guint32 dlsr);
+
+gboolean rtp_source_get_new_sr (RTPSource *src, GstClockTime time, guint64 *ntptime,
+ guint32 *rtptime, guint32 *packet_count,
+ guint32 *octet_count);
+gboolean rtp_source_get_new_rb (RTPSource *src, GstClockTime time, guint8 *fractionlost,
+ gint32 *packetslost, guint32 *exthighestseq, guint32 *jitter,
+ guint32 *lsr, guint32 *dlsr);
+
+gboolean rtp_source_get_last_sr (RTPSource *src, GstClockTime *time, guint64 *ntptime,
+ guint32 *rtptime, guint32 *packet_count,
+ guint32 *octet_count);
+gboolean rtp_source_get_last_rb (RTPSource *src, guint8 *fractionlost, gint32 *packetslost,
+ guint32 *exthighestseq, guint32 *jitter,
+ guint32 *lsr, guint32 *dlsr);
#endif /* __RTP_SOURCE_H__ */