• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) 2020 Matthew Waters <matthew@centricular.com>
3  *
4  * gstrtphdrexttwcc.h: transport-wide-cc RTP header extensions for the
5  *   Audio/Video RTP Profile
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22 
23 #ifndef __GST_RTPHDREXT_TWCC_H__
24 #define __GST_RTPHDREXT_TWCC_H__
25 
26 #include <gst/gst.h>
27 #include <gst/rtp/gstrtphdrext.h>
28 
29 G_BEGIN_DECLS
30 
31 GType gst_rtp_header_extension_twcc_get_type (void);
32 #define GST_TYPE_RTP_HEADER_EXTENSION_TWCC (gst_rtp_header_extension_twcc_get_type())
33 #define GST_RTP_HEADER_EXTENSION_TWCC(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTP_HEADER_EXTENSION_TWCC,GstRTPHeaderExtensionTWCC))
35 #define GST_RTP_HEADER_EXTENSION_TWCC_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTP_HEADER_EXTENSION_TWCC,GstRTPHeaderExtensionTWCCClass))
37 #define GST_RTP_HEADER_EXTENSION_TWCC_GET_CLASS(obj) \
38         (G_TYPE_INSTANCE_GET_CLASS ((obj),GST_TYPE_RTP_HEADER_EXTENSION_TWCC,GstRTPHeaderExtensionTWCCClass))
39 #define GST_IS_RTP_HEADER_EXTENSION_TWCC(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTP_HEADER_EXTENSION_TWCC))
41 #define GST_IS_RTP_HEADER_EXTENSION_TWCC_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_HEADER_EXTENSION_TWCC))
43 #define GST_RTP_HEADER_EXTENSION_TWCC_CAST(obj) ((GstRTPHeaderExtensionTWCC *)(obj))
44 
45 typedef struct _GstRTPHeaderExtensionTWCC      GstRTPHeaderExtensionTWCC;
46 typedef struct _GstRTPHeaderExtensionTWCCClass GstRTPHeaderExtensionTWCCClass;
47 
48 /**
49  * GstRTPHeaderExtensionTWCC:
50  * @parent: the parent #GstRTPHeaderExtension
51  *
52  * Instance struct for a transport-wide-cc RTP Audio/Video header extension.
53  *
54  * http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
55  */
56 struct _GstRTPHeaderExtensionTWCC
57 {
58   GstRTPHeaderExtension parent;
59 
60   guint16 seqnum;
61   guint n_streams;
62 
63   /*< private >*/
64   gpointer _gst_reserved[GST_PADDING];
65 };
66 
67 /**
68  * GstRTPHeaderExtensionTWCCClass:
69  * @parent_class: the parent class
70  */
71 struct _GstRTPHeaderExtensionTWCCClass
72 {
73   GstRTPHeaderExtensionClass parent_class;
74 
75   /*< private >*/
76   gpointer _gst_reserved[GST_PADDING];
77 };
78 
79 GST_ELEMENT_REGISTER_DECLARE (rtphdrexttwcc);
80 
81 G_END_DECLS
82 
83 #endif /* __GST_RTPHDREXT_TWCC_H__ */
84