Debian Codegraph @

ext/adaptivedemux2/dash/gstmpdrepresentationnode.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 __GSTMPDREPRESENTATIONNODE_H__
22 #define __GSTMPDREPRESENTATIONNODE_H__
23
24 #include <gst/gst.h>
25 #include "gstmpdhelper.h"
26 #include "gstmpdrepresentationbasenode.h"
27 #include "gstmpdsegmentlistnode.h"
28 #include "gstmpdsegmenttemplatenode.h"
29
30 G_BEGIN_DECLS
31
32 #define GST_TYPE_MPD_REPRESENTATION_NODE gst_mpd_representation_node_get_type ()
33 G_DECLARE_FINAL_TYPE (GstMPDRepresentationNode2, gst_mpd_representation_node, GST, MPD_REPRESENTATION_NODE, GstMPDRepresentationBaseNode)
34
35 typedef GstMPDRepresentationNode2 GstMPDRepresentationNode;
36 typedef GstMPDRepresentationNode2Class GstMPDRepresentationNodeClass;
37
38 struct _GstMPDRepresentationNode2
39 {
40 GstMPDRepresentationBaseNode parent_instance;
41 gchar *id;
42 guint bandwidth;
43 guint qualityRanking;
44 gchar **dependencyId; /* StringVectorType */
45 gchar **mediaStreamStructureId; /* StringVectorType */
46 /* list of BaseURL nodes */
47 GList *BaseURLs;
48 /* list of SubRepresentation nodes */
49 GList *SubRepresentations;
50 /* SegmentBase node */
51 GstMPDSegmentBaseNode *SegmentBase;
52 /* SegmentTemplate node */
53 GstMPDSegmentTemplateNode *SegmentTemplate;
54 /* SegmentList node */
55 GstMPDSegmentListNode *SegmentList;
56 };
57
58
59 GstMPDRepresentationNode * gst_mpd_representation_node_new (void);
60 void gst_mpd_representation_node_free (GstMPDRepresentationNode* self);
61
62 G_END_DECLS
63
64 #endif /* __GSTMPDREPRESENTATIONNODE_H__ */