webrtc/nice: support consent-freshness RFC7675
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-good / gst / rtp / gstrtpsbcdepay.h
1 /*
2  *
3  *  BlueZ - Bluetooth protocol stack for Linux
4  *
5  *  Copyright (C) 2012  Collabora Ltd.
6  *
7  *
8  *  This library is free software; you can redistribute it and/or
9  *  modify it under the terms of the GNU Lesser General Public
10  *  License as published by the Free Software Foundation; either
11  *  version 2.1 of the License, or (at your option) any later version.
12  *
13  *  This library is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  *  Lesser General Public License for more details.
17  *
18  *  You should have received a copy of the GNU Lesser General Public
19  *  License along with this library; if not, write to the Free Software
20  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21  *
22  */
23
24 #ifndef __GST_RTP_SBC_DEPAY_H
25 #define __GST_RTP_SBC_DEPAY_H
26
27 #include <gst/gst.h>
28 #include <gst/base/gstadapter.h>
29 #include <gst/rtp/gstrtpbasedepayload.h>
30 #include <gst/audio/audio.h>
31
32 G_BEGIN_DECLS
33 #define GST_TYPE_RTP_SBC_DEPAY \
34         (gst_rtp_sbc_depay_get_type())
35 #define GST_RTP_SBC_DEPAY(obj) \
36         (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_SBC_DEPAY,\
37                 GstRtpSbcDepay))
38 #define GST_RTP_SBC_DEPAY_CLASS(klass) \
39         (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_SBC_DEPAY,\
40                 GstRtpSbcDepayClass))
41 #define GST_IS_RTP_SBC_DEPAY(obj) \
42         (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_SBC_DEPAY))
43 #define GST_IS_RTP_SBC_DEPAY_CLASS(obj) \
44         (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_SBC_DEPAY))
45 typedef struct _GstRtpSbcDepay GstRtpSbcDepay;
46 typedef struct _GstRtpSbcDepayClass GstRtpSbcDepayClass;
47
48 struct _GstRtpSbcDepay
49 {
50   GstRTPBaseDepayload base;
51
52   int rate;
53   GstAdapter *adapter;
54   gboolean ignore_timestamps;
55
56   /* Timestamp tracking when ignoring input timestamps */
57   GstAudioStreamAlign *stream_align;
58 };
59
60 struct _GstRtpSbcDepayClass
61 {
62   GstRTPBaseDepayloadClass parent_class;
63 };
64
65 GType gst_rtp_sbc_depay_get_type (void);
66
67 G_END_DECLS
68 #endif