• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer RIST plugin
2  * Copyright (C) 2019 Net Insight AB
3  *     Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #include <gst/gst.h>
22 
23 #ifndef __GST_RIST_H__
24 #define __GST_RIST_H__
25 
26 #define GST_TYPE_RIST_RTX_RECEIVE (gst_rist_rtx_receive_get_type())
27 #define GST_RIST_RTX_RECEIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RIST_RTX_RECEIVE, GstRistRtxReceive))
28 typedef struct _GstRistRtxReceive GstRistRtxReceive;
29 typedef struct {
30   GstElementClass parent_class;
31 } GstRistRtxReceiveClass;
32 GType gst_rist_rtx_receive_get_type (void);
33 GST_ELEMENT_REGISTER_DECLARE (ristrtxreceive);
34 
35 #define GST_TYPE_RIST_RTX_SEND (gst_rist_rtx_send_get_type())
36 #define GST_RIST_RTX_SEND(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RIST_RTX_SEND, GstRistRtxSend))
37 typedef struct _GstRistRtxSend GstRistRtxSend;
38 typedef struct {
39   GstElementClass parent_class;
40 } GstRistRtxSendClass;
41 GType gst_rist_rtx_send_get_type (void);
42 GST_ELEMENT_REGISTER_DECLARE (ristrtxsend);
43 
44 #define GST_TYPE_RIST_SRC          (gst_rist_src_get_type())
45 #define GST_RIST_SRC(obj)          (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RIST_SRC,GstRistSrc))
46 typedef struct _GstRistSrc GstRistSrc;
47 typedef struct {
48   GstBinClass parent;
49 } GstRistSrcClass;
50 GType gst_rist_src_get_type (void);
51 GST_ELEMENT_REGISTER_DECLARE (ristsrc);
52 
53 #define GST_TYPE_RIST_SINK          (gst_rist_sink_get_type())
54 #define GST_RIST_SINK(obj)          (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RIST_SINK,GstRistSink))
55 typedef struct _GstRistSink GstRistSink;
56 typedef struct {
57   GstBinClass parent;
58 } GstRistSinkClass;
59 GType gst_rist_sink_get_type (void);
60 GST_ELEMENT_REGISTER_DECLARE (ristsink);
61 
62 #define GST_TYPE_RIST_RTP_EXT      (gst_rist_rtp_ext_get_type())
63 #define GST_RIST_RTP_EXT(obj)      (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RIST_RTP_EXT,GstRistRtpExt))
64 typedef struct _GstRistRtpExt GstRistRtpExt;
65 typedef struct {
66   GstElementClass parent;
67 } GstRistRtpExtClass;
68 GType gst_rist_rtp_ext_get_type (void);
69 GST_ELEMENT_REGISTER_DECLARE (ristrtpext);
70 
71 #define GST_TYPE_RIST_RTP_DEEXT      (gst_rist_rtp_deext_get_type())
72 #define GST_RIST_RTP_DEEXT(obj)      (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RIST_RTP_DEEXT,GstRistRtpDeext))
73 typedef struct _GstRistRtpDeext GstRistRtpDeext;
74 typedef struct {
75   GstElementClass parent;
76 } GstRistRtpDeextClass;
77 GType gst_rist_rtp_deext_get_type (void);
78 GST_ELEMENT_REGISTER_DECLARE (ristrtpdeext);
79 
80 guint32 gst_rist_rtp_ext_seq (guint32 * extseqnum, guint16 seqnum);
81 
82 void gst_rist_rtx_send_set_extseqnum (GstRistRtxSend *self, guint32 ssrc,
83     guint16 seqnum_ext);
84 void gst_rist_rtx_send_clear_extseqnum (GstRistRtxSend *self, guint32 ssrc);
85 
86 #endif
87