• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  *
3  * Copyright (C) 2019 Collabora Ltd.
4  *   Author: Stéphane Cerveau <scerveau@collabora.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library (COPYING); if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 #ifndef __GSTMPDUTCTIMINGNODE_H__
22 #define __GSTMPDUTCTIMINGNODE_H__
23 
24 #include <gst/gst.h>
25 #include "gstmpdnode.h"
26 
27 G_BEGIN_DECLS
28 
29 #define GST_TYPE_MPD_UTCTIMING_NODE gst_mpd_utctiming_node_get_type ()
30 G_DECLARE_FINAL_TYPE (GstMPDUTCTimingNode, gst_mpd_utctiming_node, GST, MPD_UTCTIMING_NODE, GstMPDNode)
31 
32 typedef enum
33 {
34   GST_MPD_UTCTIMING_TYPE_UNKNOWN     = 0x00,
35   GST_MPD_UTCTIMING_TYPE_NTP         = 0x01,
36   GST_MPD_UTCTIMING_TYPE_SNTP        = 0x02,
37   GST_MPD_UTCTIMING_TYPE_HTTP_HEAD   = 0x04,
38   GST_MPD_UTCTIMING_TYPE_HTTP_XSDATE = 0x08,
39   GST_MPD_UTCTIMING_TYPE_HTTP_ISO    = 0x10,
40   GST_MPD_UTCTIMING_TYPE_HTTP_NTP    = 0x20,
41   GST_MPD_UTCTIMING_TYPE_DIRECT      = 0x40
42 } GstMPDUTCTimingType;
43 
44 struct GstMPDUTCTimingMethod
45 {
46   const gchar *name;
47   GstMPDUTCTimingType method;
48 };
49 
50 struct _GstMPDUTCTimingNode
51 {
52   GstObject parent_instance;
53   GstMPDUTCTimingType method;
54   /* NULL terminated array of strings */
55   gchar **urls;
56   /* TODO add missing fields such as weight etc.*/
57 };
58 
59 
60 GstMPDUTCTimingNode * gst_mpd_utctiming_node_new (void);
61 void gst_mpd_utctiming_node_free (GstMPDUTCTimingNode* self);
62 
63 const gchar* gst_mpd_utctiming_get_scheme_id_uri (GstMPDUTCTimingType type);
64 GstMPDUTCTimingType gst_mpd_utctiming_get_method (gchar* schemeIDURI);
65 
66 G_END_DECLS
67 
68 #endif /* __GSTMPDUTCTIMINGNODE_H__ */
69