1 /* GStreamer plugin for forward error correction
2 * Copyright (C) 2017 Pexip
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 * Author: Mikhail Fludkov <misha@pexip.com>
21 #ifndef __GST_RTP_STORAGE_ITEM_H__
22 #define __GST_RTP_STORAGE_ITEM_H__
24 #include <gst/rtp/gstrtpbuffer.h>
26 GST_DEBUG_CATEGORY_EXTERN (gst_rtp_storage_debug);
38 GstClockTime max_arrival_time;
41 #define STREAM_LOCK(s) g_mutex_lock (&(s)->stream_lock)
42 #define STREAM_UNLOCK(s) g_mutex_unlock (&(s)->stream_lock)
44 RtpStorageStream * rtp_storage_stream_new (guint32 ssrc);
45 void rtp_storage_stream_free (RtpStorageStream * stream);
46 void rtp_storage_stream_resize_and_add_item (RtpStorageStream * stream,
47 GstClockTime size_time,
51 void rtp_storage_stream_add_item (RtpStorageStream * stream,
55 GstBufferList * rtp_storage_stream_get_packets_for_recovery (RtpStorageStream *stream,
58 GstBuffer * rtp_storage_stream_get_redundant_packet (RtpStorageStream *stream,
61 #endif /* __GST_RTP_STORAGE_ITEM_H__ */