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_ULPFEC_DEC_H__
22 #define __GST_RTP_ULPFEC_DEC_H__
26 #include "rtpstorage.h"
30 #define GST_TYPE_RTP_ULPFEC_DEC \
31 (gst_rtp_ulpfec_dec_get_type())
32 #define GST_RTP_ULPFEC_DEC(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_ULPFEC_DEC,GstRtpUlpFecDec))
34 #define GST_RTP_ULPFEC_DEC_CLASS(klass) \
35 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_ULPFEC_DEC,GstRtpUlpFecDecClass))
36 #define GST_IS_RTP_ULPFEC_DEC(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_ULPFEC_DEC))
38 #define GST_IS_RTP_ULPFEC_DEC_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_ULPFEC_DEC))
41 typedef struct _GstRtpUlpFecDec GstRtpUlpFecDec;
42 typedef struct _GstRtpUlpFecDecClass GstRtpUlpFecDecClass;
44 struct _GstRtpUlpFecDecClass {
45 GstElementClass parent_class;
48 struct _GstRtpUlpFecDec {
56 gsize packets_recovered;
57 gsize packets_unrecovered;
61 GstFlowReturn chain_return_val;
62 gboolean unset_discont_flag;
63 gboolean needs_discont;
64 gboolean have_caps_ssrc;
65 gboolean have_caps_pt;
72 gboolean lost_packet_from_storage;
73 gboolean lost_packet_returned;
77 gsize fec_packets_received;
78 gsize fec_packets_rejected;
79 gsize packets_rejected;
82 GType gst_rtp_ulpfec_dec_get_type (void);
86 #endif /* __GST_RTP_ULPFEC_DEC_H__ */