Debian Codegraph @

ext/adaptivedemux2/dash/gstmpdperiodnode.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 __GSTMPDPERIODNODE_H__
22 #define __GSTMPDPERIODNODE_H__
23
24 #include <gst/gst.h>
25 #include "gstmpdhelper.h"
26 #include "gstmpdsegmentlistnode.h"
27 #include "gstmpdsegmenttemplatenode.h"
28
29 G_BEGIN_DECLS
30
31 struct _GstSegmentTemplateNode;
32
33 #define GST_TYPE_MPD_PERIOD_NODE gst_mpd_period_node_get_type ()
34 G_DECLARE_FINAL_TYPE (GstMPDPeriodNode2, gst_mpd_period_node, GST, MPD_PERIOD_NODE, GstMPDNode)
35
36 typedef GstMPDPeriodNode2 GstMPDPeriodNode;
37 typedef GstMPDPeriodNode2Class GstMPDPeriodNodeClass;
38
39 struct _GstMPDPeriodNode2
40 {
41 GstObject parent_instance;
42 gchar *id;
43 guint64 start; /* [ms] */
44 guint64 duration; /* [ms] */
45 gboolean bitstreamSwitching;
46 /* SegmentBase node */
47 GstMPDSegmentBaseNode *SegmentBase;
48 /* SegmentList node */
49 GstMPDSegmentListNode *SegmentList;
50 /* SegmentTemplate node */
51 GstMPDSegmentTemplateNode *SegmentTemplate;
52 /* list of Adaptation Set nodes */
53 GList *AdaptationSets;
54 /* list of Representation nodes */
55 GList *Subsets;
56 /* list of BaseURL nodes */
57 GList *BaseURLs;
58
59 gchar *xlink_href;
60 int actuate;
61 };
62
63 GstMPDPeriodNode * gst_mpd_period_node_new (void);
64 void gst_mpd_period_node_free (GstMPDPeriodNode* self);
65
66 G_END_DECLS
67
68 #endif /* __GSTMPDPERIODNODE_H__ */