Wim Taymans | ff825a2 | 2013-08-12 16:15:54 +0200 | [diff] [blame] | 1 | /* RTP muxer element for GStreamer |
| 2 | * |
| 3 | * gstrtpmux.h: |
| 4 | * |
| 5 | * Copyright (C) <2007> Nokia Corporation. |
| 6 | * Contact: Zeeshan Ali <zeeshan.ali@nokia.com> |
| 7 | * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> |
| 8 | * 2000,2005 Wim Taymans <wim@fluendo.com> |
| 9 | * |
| 10 | * This library is free software; you can redistribute it and/or |
| 11 | * modify it under the terms of the GNU Library General Public |
| 12 | * License as published by the Free Software Foundation; either |
| 13 | * version 2 of the License, or (at your option) any later version. |
| 14 | * |
| 15 | * This library is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18 | * Library General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU Library General Public |
| 21 | * License along with this library; if not, write to the |
| 22 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
| 23 | * Boston, MA 02110-1301, USA. |
| 24 | */ |
| 25 | |
| 26 | #ifndef __GST_RTP_RTX_QUEUE_H__ |
| 27 | #define __GST_RTP_RTX_QUEUE_H__ |
| 28 | |
| 29 | #include <gst/gst.h> |
| 30 | #include <gst/rtp/gstrtpbuffer.h> |
| 31 | |
| 32 | G_BEGIN_DECLS |
| 33 | #define GST_TYPE_RTP_RTX_QUEUE (gst_rtp_rtx_queue_get_type()) |
| 34 | #define GST_RTP_RTX_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_RTX_QUEUE, GstRTPRtxQueue)) |
| 35 | #define GST_RTP_RTX_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_RTX_QUEUE, GstRTPRtxQueueClass)) |
| 36 | #define GST_RTP_RTX_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_RTP_RTX_QUEUE, GstRTPRtxQueueClass)) |
| 37 | #define GST_IS_RTP_RTX_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_RTX_QUEUE)) |
| 38 | #define GST_IS_RTP_RTX_QUEUE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_RTX_QUEUE)) |
| 39 | typedef struct _GstRTPRtxQueue GstRTPRtxQueue; |
| 40 | typedef struct _GstRTPRtxQueueClass GstRTPRtxQueueClass; |
| 41 | |
| 42 | /** |
| 43 | * GstRTPRtxQueue: |
| 44 | * |
| 45 | * The opaque #GstRTPRtxQueue structure. |
| 46 | */ |
| 47 | struct _GstRTPRtxQueue |
| 48 | { |
| 49 | GstElement element; |
| 50 | |
| 51 | /* pad */ |
| 52 | GstPad *sinkpad; |
| 53 | GstPad *srcpad; |
| 54 | |
Wim Taymans | 89b9019 | 2013-08-21 16:53:59 +0200 | [diff] [blame] | 55 | GMutex lock; |
Wim Taymans | ff825a2 | 2013-08-12 16:15:54 +0200 | [diff] [blame] | 56 | GQueue *queue; |
Wim Taymans | 89b9019 | 2013-08-21 16:53:59 +0200 | [diff] [blame] | 57 | GList *pending; |
Wim Taymans | 54e7e75 | 2013-08-23 15:47:25 +0200 | [diff] [blame] | 58 | |
| 59 | guint max_size_time; |
| 60 | guint max_size_packets; |
Mathieu Duponchelle | 191330c | 2017-01-11 18:52:28 +0100 | [diff] [blame] | 61 | |
George Kiagiadakis | 7f6c783 | 2017-04-04 17:33:31 +0300 | [diff] [blame] | 62 | GstSegment head_segment; |
| 63 | GstSegment tail_segment; |
| 64 | |
Mathieu Duponchelle | 191330c | 2017-01-11 18:52:28 +0100 | [diff] [blame] | 65 | /* Statistics */ |
| 66 | guint n_requests; |
| 67 | guint n_fulfilled_requests; |
Wim Taymans | ff825a2 | 2013-08-12 16:15:54 +0200 | [diff] [blame] | 68 | }; |
| 69 | |
| 70 | struct _GstRTPRtxQueueClass |
| 71 | { |
| 72 | GstElementClass parent_class; |
| 73 | }; |
| 74 | |
| 75 | |
| 76 | GType gst_rtp_rtx_queue_get_type (void); |
| 77 | gboolean gst_rtp_rtx_queue_plugin_init (GstPlugin * plugin); |
| 78 | |
| 79 | G_END_DECLS |
| 80 | #endif /* __GST_RTP_RTX_QUEUE_H__ */ |