Debian Codegraph @

ext/adaptivedemux2/dash/gstmpdutctimingnode.h

raw
1 /* GStreamer
2 *
3 * Copyright (C) 2019 Collabora Ltd.
4 * Author: Stéphane Cerveau <[email protected]>
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 (GstMPDUTCTimingNode2, gst_mpd_utctiming_node, GST, MPD_UTCTIMING_NODE, GstMPDNode)
31
32 typedef GstMPDUTCTimingNode2 GstMPDUTCTimingNode;
33 typedef GstMPDUTCTimingNode2Class GstMPDUTCTimingNodeClass;
34
35 typedef enum
36 {
37 GST_MPD_UTCTIMING_TYPE_UNKNOWN = 0x00,
38 GST_MPD_UTCTIMING_TYPE_NTP = 0x01,
39 GST_MPD_UTCTIMING_TYPE_SNTP = 0x02,
40 GST_MPD_UTCTIMING_TYPE_HTTP_HEAD = 0x04,
41 GST_MPD_UTCTIMING_TYPE_HTTP_XSDATE = 0x08,
42 GST_MPD_UTCTIMING_TYPE_HTTP_ISO = 0x10,
43 GST_MPD_UTCTIMING_TYPE_HTTP_NTP = 0x20,
44 GST_MPD_UTCTIMING_TYPE_DIRECT = 0x40
45 } GstMPDUTCTimingType;
46
47 struct GstMPDUTCTimingMethod
48 {
49 const gchar *name;
50 GstMPDUTCTimingType method;
51 };
52
53 struct _GstMPDUTCTimingNode2
54 {
55 GstObject parent_instance;
56 GstMPDUTCTimingType method;
57 /* NULL terminated array of strings */
58 gchar **urls;
59 /* TODO add missing fields such as weight etc.*/
60 };
61
62
63 GstMPDUTCTimingNode * gst_mpd_utctiming_node_new (void);
64 void gst_mpd_utctiming_node_free (GstMPDUTCTimingNode* self);
65
66 const gchar* gst_mpd_utctiming_get_scheme_id_uri (GstMPDUTCTimingType type);
67 GstMPDUTCTimingType gst_mpd_utctiming_get_method (gchar* schemeIDURI);
68
69 G_END_DECLS
70
71 #endif /* __GSTMPDUTCTIMINGNODE_H__ */